Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/gc/dashboard/web/src/generated/index.ts

Large diffs are not rendered by default.

63 changes: 60 additions & 3 deletions cmd/gc/dashboard/web/src/generated/schema.d.ts

Large diffs are not rendered by default.

54 changes: 53 additions & 1 deletion cmd/gc/dashboard/web/src/generated/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ export type EventEmitRequest = {
type: string;
};

export type EventPayload = AdapterEventPayload | BeadEventPayload | BoundEventPayload | CityCreateSucceededPayload | CityLifecyclePayload | CityUnregisterSucceededPayload | GroupCreatedEventPayload | InboundEventPayload | MailEventPayload | NoPayload | OutboundEventPayload | ProjectIdentityStampedPayload | RequestFailedPayload | RotatedPayload | SessionCreateSucceededPayload | SessionDrainAckedWithAssignedWorkPayload | SessionLifecyclePayload | SessionMessageSucceededPayload | SessionSubmitSucceededPayload | StoreMaintenanceDonePayload | StoreMaintenanceFailedPayload | SupervisorFsPressureSkippedTickPayload | SupervisorShutdownPayload | UnboundEventPayload | WorkerOperationEventPayload;
export type EventPayload = AdapterEventPayload | BeadEventPayload | BoundEventPayload | CityCreateSucceededPayload | CityLifecyclePayload | CityUnregisterSucceededPayload | GroupCreatedEventPayload | InboundEventPayload | MailEventPayload | NoPayload | OutboundEventPayload | ProjectIdentityStampedPayload | RequestFailedPayload | RotatedPayload | SessionCreateSucceededPayload | SessionDrainAckedWithAssignedWorkPayload | SessionLifecyclePayload | SessionMessageSucceededPayload | SessionSubmitSucceededPayload | StoreBackstopLeakDetectedPayload | StoreMaintenanceDonePayload | StoreMaintenanceFailedPayload | SupervisorFsPressureSkippedTickPayload | SupervisorShutdownPayload | UnboundEventPayload | WorkerOperationEventPayload;

export type EventRotateAnchor = {
/**
Expand Down Expand Up @@ -3002,6 +3002,25 @@ export type StatusWorkCounts = {
ready: number;
};

export type StoreBackstopLeakDetectedPayload = {
/**
* Closed ephemeral beads reclaimed by the backstop sweep.
*/
ephemeral_count: number;
/**
* Closed main-tier beads reclaimed by the backstop sweep.
*/
main_count: number;
/**
* Configured leak threshold that the total reclaim count exceeded.
*/
threshold: number;
/**
* Total closed beads reclaimed by the backstop sweep.
*/
total_count: number;
};

export type StoreMaintenanceDonePayload = {
after_bytes: number;
before_bytes: number;
Expand Down Expand Up @@ -3204,6 +3223,8 @@ export type TypedEventStreamEnvelope = ({
} & TypedEventStreamEnvelopeExtmsgOutbound) | ({
type: 'extmsg.unbound';
} & TypedEventStreamEnvelopeExtmsgUnbound) | ({
type: 'gc.store.backstop_leak.detected';
} & TypedEventStreamEnvelopeGcStoreBackstopLeakDetected) | ({
type: 'gc.store.maintenance.done';
} & TypedEventStreamEnvelopeGcStoreMaintenanceDone) | ({
type: 'gc.store.maintenance.failed';
Expand Down Expand Up @@ -3559,6 +3580,20 @@ export type TypedEventStreamEnvelopeExtmsgUnbound = {
workflow?: WorkflowEventProjection;
};

/**
* TypedEventStreamEnvelope gc.store.backstop_leak.detected
*/
export type TypedEventStreamEnvelopeGcStoreBackstopLeakDetected = {
actor: string;
message?: string;
payload: StoreBackstopLeakDetectedPayload;
seq: number;
subject?: string;
ts: string;
type: 'gc.store.backstop_leak.detected';
workflow?: WorkflowEventProjection;
};

/**
* TypedEventStreamEnvelope gc.store.maintenance.done
*/
Expand Down Expand Up @@ -4107,6 +4142,8 @@ export type TypedTaggedEventStreamEnvelope = ({
} & TypedTaggedEventStreamEnvelopeExtmsgOutbound) | ({
type: 'extmsg.unbound';
} & TypedTaggedEventStreamEnvelopeExtmsgUnbound) | ({
type: 'gc.store.backstop_leak.detected';
} & TypedTaggedEventStreamEnvelopeGcStoreBackstopLeakDetected) | ({
type: 'gc.store.maintenance.done';
} & TypedTaggedEventStreamEnvelopeGcStoreMaintenanceDone) | ({
type: 'gc.store.maintenance.failed';
Expand Down Expand Up @@ -4482,6 +4519,21 @@ export type TypedTaggedEventStreamEnvelopeExtmsgUnbound = {
workflow?: WorkflowEventProjection;
};

/**
* TypedTaggedEventStreamEnvelope gc.store.backstop_leak.detected
*/
export type TypedTaggedEventStreamEnvelopeGcStoreBackstopLeakDetected = {
actor: string;
city: string;
message?: string;
payload: StoreBackstopLeakDetectedPayload;
seq: number;
subject?: string;
ts: string;
type: 'gc.store.backstop_leak.detected';
workflow?: WorkflowEventProjection;
};

/**
* TypedTaggedEventStreamEnvelope gc.store.maintenance.done
*/
Expand Down
137 changes: 135 additions & 2 deletions docs/schema/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2075,6 +2075,9 @@
{
"$ref": "#/components/schemas/SessionSubmitSucceededPayload"
},
{
"$ref": "#/components/schemas/StoreBackstopLeakDetectedPayload"
},
{
"$ref": "#/components/schemas/StoreMaintenanceDonePayload"
},
Expand Down Expand Up @@ -6957,6 +6960,38 @@
],
"type": "object"
},
"StoreBackstopLeakDetectedPayload": {
"additionalProperties": false,
"properties": {
"ephemeral_count": {
"description": "Closed ephemeral beads reclaimed by the backstop sweep.",
"format": "int64",
"type": "integer"
},
"main_count": {
"description": "Closed main-tier beads reclaimed by the backstop sweep.",
"format": "int64",
"type": "integer"
},
"threshold": {
"description": "Configured leak threshold that the total reclaim count exceeded.",
"format": "int64",
"type": "integer"
},
"total_count": {
"description": "Total closed beads reclaimed by the backstop sweep.",
"format": "int64",
"type": "integer"
}
},
"required": [
"main_count",
"ephemeral_count",
"total_count",
"threshold"
],
"type": "object"
},
"StoreMaintenanceDonePayload": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -7315,6 +7350,7 @@
"extmsg.inbound": "#/components/schemas/TypedEventStreamEnvelopeExtmsgInbound",
"extmsg.outbound": "#/components/schemas/TypedEventStreamEnvelopeExtmsgOutbound",
"extmsg.unbound": "#/components/schemas/TypedEventStreamEnvelopeExtmsgUnbound",
"gc.store.backstop_leak.detected": "#/components/schemas/TypedEventStreamEnvelopeGcStoreBackstopLeakDetected",
"gc.store.maintenance.done": "#/components/schemas/TypedEventStreamEnvelopeGcStoreMaintenanceDone",
"gc.store.maintenance.failed": "#/components/schemas/TypedEventStreamEnvelopeGcStoreMaintenanceFailed",
"mail.archived": "#/components/schemas/TypedEventStreamEnvelopeMailArchived",
Expand Down Expand Up @@ -7412,6 +7448,9 @@
{
"$ref": "#/components/schemas/TypedEventStreamEnvelopeExtmsgUnbound"
},
{
"$ref": "#/components/schemas/TypedEventStreamEnvelopeGcStoreBackstopLeakDetected"
},
{
"$ref": "#/components/schemas/TypedEventStreamEnvelopeGcStoreMaintenanceDone"
},
Expand Down Expand Up @@ -8067,7 +8106,8 @@
"extmsg.outbound",
"events.rotated",
"gc.store.maintenance.done",
"gc.store.maintenance.failed"
"gc.store.maintenance.failed",
"gc.store.backstop_leak.detected"
]
},
"type": "string"
Expand Down Expand Up @@ -8422,6 +8462,48 @@
"title": "TypedEventStreamEnvelope extmsg.unbound",
"type": "object"
},
"TypedEventStreamEnvelopeGcStoreBackstopLeakDetected": {
"additionalProperties": false,
"properties": {
"actor": {
"type": "string"
},
"message": {
"type": "string"
},
"payload": {
"$ref": "#/components/schemas/StoreBackstopLeakDetectedPayload"
},
"seq": {
"format": "int64",
"minimum": 0,
"type": "integer"
},
"subject": {
"type": "string"
},
"ts": {
"format": "date-time",
"type": "string"
},
"type": {
"const": "gc.store.backstop_leak.detected",
"type": "string"
},
"workflow": {
"$ref": "#/components/schemas/WorkflowEventProjection"
}
},
"required": [
"seq",
"type",
"ts",
"actor",
"payload"
],
"title": "TypedEventStreamEnvelope gc.store.backstop_leak.detected",
"type": "object"
},
"TypedEventStreamEnvelopeGcStoreMaintenanceDone": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -9957,6 +10039,7 @@
"extmsg.inbound": "#/components/schemas/TypedTaggedEventStreamEnvelopeExtmsgInbound",
"extmsg.outbound": "#/components/schemas/TypedTaggedEventStreamEnvelopeExtmsgOutbound",
"extmsg.unbound": "#/components/schemas/TypedTaggedEventStreamEnvelopeExtmsgUnbound",
"gc.store.backstop_leak.detected": "#/components/schemas/TypedTaggedEventStreamEnvelopeGcStoreBackstopLeakDetected",
"gc.store.maintenance.done": "#/components/schemas/TypedTaggedEventStreamEnvelopeGcStoreMaintenanceDone",
"gc.store.maintenance.failed": "#/components/schemas/TypedTaggedEventStreamEnvelopeGcStoreMaintenanceFailed",
"mail.archived": "#/components/schemas/TypedTaggedEventStreamEnvelopeMailArchived",
Expand Down Expand Up @@ -10054,6 +10137,9 @@
{
"$ref": "#/components/schemas/TypedTaggedEventStreamEnvelopeExtmsgUnbound"
},
{
"$ref": "#/components/schemas/TypedTaggedEventStreamEnvelopeGcStoreBackstopLeakDetected"
},
{
"$ref": "#/components/schemas/TypedTaggedEventStreamEnvelopeGcStoreMaintenanceDone"
},
Expand Down Expand Up @@ -10756,7 +10842,8 @@
"extmsg.outbound",
"events.rotated",
"gc.store.maintenance.done",
"gc.store.maintenance.failed"
"gc.store.maintenance.failed",
"gc.store.backstop_leak.detected"
]
},
"type": "string"
Expand Down Expand Up @@ -11144,6 +11231,52 @@
"title": "TypedTaggedEventStreamEnvelope extmsg.unbound",
"type": "object"
},
"TypedTaggedEventStreamEnvelopeGcStoreBackstopLeakDetected": {
"additionalProperties": false,
"properties": {
"actor": {
"type": "string"
},
"city": {
"type": "string"
},
"message": {
"type": "string"
},
"payload": {
"$ref": "#/components/schemas/StoreBackstopLeakDetectedPayload"
},
"seq": {
"format": "int64",
"minimum": 0,
"type": "integer"
},
"subject": {
"type": "string"
},
"ts": {
"format": "date-time",
"type": "string"
},
"type": {
"const": "gc.store.backstop_leak.detected",
"type": "string"
},
"workflow": {
"$ref": "#/components/schemas/WorkflowEventProjection"
}
},
"required": [
"seq",
"type",
"ts",
"actor",
"payload",
"city"
],
"title": "TypedTaggedEventStreamEnvelope gc.store.backstop_leak.detected",
"type": "object"
},
"TypedTaggedEventStreamEnvelopeGcStoreMaintenanceDone": {
"additionalProperties": false,
"properties": {
Expand Down
Loading
Loading