Skip to content
Merged
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
6 changes: 3 additions & 3 deletions dashboard/e2e/audit-runs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ test("a finished run shows its pull request, steps, documents and tasks without
const outcome = page.getByTestId("run-outcome");
await expect(outcome).toContainText("Pull request #101 is ready for review");
await expect(page.getByTestId("run-who")).toHaveText("Needs a person");
await expect(page.getByTestId("run-next")).toContainText("Someone on your team reviews and merges it.");
await expect(page.getByTestId("run-next")).toContainText("Merging it is your team's call: review it and merge.");
await expect(outcome.getByRole("link", { name: /Open pull request #101/ })).toHaveAttribute("href", "https://github.com/your-team/web/pull/101");
// The steps read as what Coderhelm did, in words, not the worker's ids, ending on where the run is.
const steps = page.getByRole("list", { name: "Steps" });
Expand Down Expand Up @@ -521,7 +521,7 @@ test("a failed run shows what went wrong with one retry, and a refused retry say
await page.goto("/runs/detail/?id=01RUNDONE000000000000000A");
// A plain headline and the next step; the raw error waits behind Technical details.
const outcome = page.getByTestId("run-outcome");
await expect(outcome).toContainText("Coderhelm stopped before it finished");
await expect(outcome).toContainText("Coderhelm couldn't ship this run");
await expect(outcome).toContainText("test step");
await expect(outcome.getByText(/ci\.example\.com/)).toBeHidden();
await outcome.getByText("Technical details").click();
Expand Down Expand Up @@ -660,7 +660,7 @@ test("a finished run with an old error says it's done; the old error waits in Ac
await page.goto("/runs/detail/?id=01RUNDONE000000000000000A");
await expect(page.getByTestId("run-outcome")).toContainText("Pull request #101 is ready for review");
await expect(page.getByText(/TypeError/)).toHaveCount(0);
await expect(page.getByText("Coderhelm stopped before it finished")).toHaveCount(0);
await expect(page.getByText("Coderhelm couldn't ship this run")).toHaveCount(0);
await openTab(page, "Activity");
await expect(page.getByText("A problem earlier in this run")).toBeVisible();
});
Expand Down
4 changes: 2 additions & 2 deletions dashboard/e2e/run-draft-hold.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ test("a run whose pull request's CI fails reads CI failing, with the check and t
await shot(page, "run-ci-failing");
});

test("a run stopped with planned work left reads Stopped, not finished", async ({ page }) => {
test("a run with planned work left reads Finished, work deferred", async ({ page }) => {
await mockApi(page, run({
waiting_on: {
action: "Review pull request #318",
Expand All @@ -184,7 +184,7 @@ test("a run stopped with planned work left reads Stopped, not finished", async (
draft_hold: null,
}));
await page.goto("/runs/detail?id=01RUNHOLD");
await expect(page.getByTestId("page-header").getByText("Stopped, not finished", { exact: true })).toBeVisible();
await expect(page.getByTestId("page-header").getByText("Finished, work deferred", { exact: true })).toBeVisible();
});

test("a run with no hold still reads as before", async ({ page }) => {
Expand Down
8 changes: 4 additions & 4 deletions dashboard/src/app/runs/detail/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@
if (idx > max) max = idx;
});
return max;
}, [run?.current_pass, run?.pass_history]);

Check warning on line 308 in dashboard/src/app/runs/detail/page.tsx

View workflow job for this annotation

GitHub Actions / Lint & Build

React Hook useMemo has a missing dependency: 'run'. Either include it or remove the dependency array

if (!runId) {
return (
Expand Down Expand Up @@ -801,7 +801,7 @@
outcome = (
<Problem
testId="run-outcome"
title="Coderhelm stopped before it finished"
title="Coderhelm couldn't ship this run"
details={run.error ? sanitizeError(run.error) : undefined}
action={
<>
Expand All @@ -812,7 +812,7 @@
}
>
{currentStep ? `It hit a problem during the ${currentStep.toLowerCase()} step. ` : ""}
{canAct && canRetry ? "Retry to run it again, or get help if it keeps happening." : "Ask someone with member access to retry it, or get help."}
{canAct && canRetry ? "The reason above says what stopped it. Retry to run it again, or get help if it keeps happening." : "Ask someone with member access to retry it, or get help."}
</Problem>
);
} else if (run.status === "closed") {
Expand Down Expand Up @@ -917,9 +917,9 @@
? {
tone: "success",
title: prLinks.length ? `${prWords} is ready for review` : "Done.",
body: prLinks.length ? "Coderhelm finished its work on it and handed it over." : "Coderhelm finished this work.",
body: prLinks.length ? "Coderhelm finished the work on it, checked it, and named anything it deferred and why." : "Coderhelm finished this work.",
who: prLinks.length ? "you" : "none",
next: prLinks.length ? "Someone on your team reviews and merges it." : undefined,
next: prLinks.length ? "Merging it is your team's call: review it and merge." : undefined,
actions: (
<>
{openPrButtons("primary")}
Expand Down
4 changes: 2 additions & 2 deletions dashboard/src/components/run-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ const DRAFT_HELD: RunLook = { label: "PR held", tone: "waiting", group: "waiting
const DRAFT_NOT_MARKED: RunLook = { label: "PR held", tone: "attention", group: "waiting" };
/** The pull request is held because its CI fails: named so, never "Done". */
const CI_FAILING: RunLook = { label: "CI failing", tone: "attention", group: "waiting" };
/** The run stopped before its planned work was done; its draft says what is left. */
const STOPPED_UNFINISHED: RunLook = { label: "Stopped, not finished", tone: "attention", group: "waiting" };
/** Planned work is left on the run's pull request; its draft names each item with why it was deferred. */
const STOPPED_UNFINISHED: RunLook = { label: "Finished, work deferred", tone: "attention", group: "waiting" };
/** Waiting on a person for something that isn't a question (`waiting_on`): reviewing the pull request, say. */
const WAITING_ON_YOU: RunLook = { label: "Waiting on you", tone: "waiting", group: "waiting" };

Expand Down
Loading