You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1fb01bb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/hub/src/integrations/app.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -744,7 +744,7 @@ export function createIntegrationsApp(guards: IntegrationGuards, handlers: Integ
744
744
`${WORKFLOW_VERSIONS_PATH}/:tenantId`,
745
745
describeRoute({
746
746
summary: "Package versions of the workspace's live workflow deployments and the hub's last roll of each host",
747
-
description: "Each live deployment, newest first, with the workflow package it pinned and the packages its frozen closure carries. `package` is null for a deployment without a frozen closure; `source` is the asset and commit a source-format deployment runs, else null. `rollouts` holds each host the hub rolled onto its build's release since it started: when that roll ended and, when it failed, the error; a failed roll leaves the host's previous listener running. `stalled` is present while the workspace's pull requests have waited past the hub's alarm age (`TRIAGE_STALLED_AFTER_MS`) for a manager to take them: `since` is when the oldest still waiting was queued, `lastTakeAt` when a manager last took one.",
747
+
description: "Each live deployment, newest first, with the workflow package it pinned and the packages its frozen closure carries. `package` is null for a deployment without a frozen closure; `source` is the asset and commit a source-format deployment runs, else null. `rollouts` holds each host the hub rolled onto its build's release since it started: when that roll ended and, when it failed, the error; a failed roll leaves the host's previous listener running. `stalled` is present while the workspace's pull requests have waited past the hub's alarm age (`TRIAGE_STALLED_AFTER_MS`) for a manager to take them: `since` is when the oldest still waiting was queued, `pull` which pull request it is, `count` how many wait, `reason` why if known, and `lastTakeAt` when a manager last took one.",
748
748
tags: TAGS,
749
749
responses: {200: json("Live deployments and their versions",DeployedVersions),401: failures[401],403: failures[403]},
@@ -265,3 +266,22 @@ test("a hub that sends no email says so once and still raises and clears the ala
265
266
expect(hub.logged.filter((entry)=>entry["msg"]==="triage_stall_not_emailed").map((entry)=>entry["reason"])).toEqual(["SMTP_URL is not set"]);
266
267
});
267
268
},60_000);
269
+
270
+
test("a raised alarm clears without a newer take once its pull request is no longer waiting in the store, and ignores disabled repositories",async()=>{
/** A stalled host: since when its oldest waiting pull request waits, which pull request it is, how many wait, why if known, and when one of its managers last took one. */
expect(status?.textContent).toContain(`Pull requests on Bitbucket Data Center have waited since ${since.toLocaleTimeString([],{hour: "2-digit",minute: "2-digit"})} for Triage to start.`);
26
+
expect(status?.textContent).toContain(`Pull requests on Bitbucket Data Center have waited since ${at} for Triage to start.`);
act(()=>root?.render(<MemoryRouter><TriageStalledNoticestalled={[{source: "github",since: since.toISOString(),pull: "acme/widgets#7",count: 3,reason: "run never started"}]}/></MemoryRouter>));
30
+
expect(status?.textContent).toContain(`acme/widgets#7 and 2 other pull requests on GitHub have waited since ${at} for Triage to start: run never started.`);
exportfunctionstalledText({ source, since }: Stalled): string{
9
-
return`Pull requests on ${hostFullName(source)} have waited since ${newDate(since).toLocaleTimeString([],{hour: "2-digit",minute: "2-digit"})} for Triage to start.`;
/** Each host whose pull requests have waited for a manager past the hub's alarm age: since when the oldest waits, and when a manager of that host last took one. */
/** Each host whose pull requests have waited for a manager past the hub's alarm age: since when the oldest waits, which pull request it is, how many wait, why if known, and when a manager of that host last took one. */
0 commit comments