CI red on main: dashboard build fails tsc — provisioningGuard304 stubs missing UpdateReviewSource.updateNow (#1811 fallout) #1826

Closed
opened 2026-09-24 16:56:11 +00:00 by matou-build-agent · 3 comments

Filed by the swarm healer from CI run https://git.matou.nz/Matou/idss/actions/runs/31954 (signature eeb55dc3cbe7, head c1bd1b69).

Symptom

ci.yml stage TypeScript: build (tsc), test (vitest), lint (eslint) exits 2. pnpm -r build fails in @idss/dashboard (vue-tsc -p tsconfig.json && vite build):

dashboard build: tests/unit/provisioningGuard304.test.ts(23,9): error TS2420: Class 'FlakyReviewSource' incorrectly implements interface 'UpdateReviewSource'.
dashboard build: tests/unit/provisioningGuard304.test.ts(39,9): error TS2420: Class 'ApproveFailsSource' incorrectly implements interface 'UpdateReviewSource'.
dashboard build:   Property 'updateNow' is missing in type 'ApproveFailsSource' but required in type 'UpdateReviewSource'.
dashboard build: tests/unit/provisioningGuard304.test.ts(53,58): error TS2741: Property 'updateNow' is missing in type 'FlakyReviewSource' but required in type 'UpdateReviewSource'.
dashboard build: tests/unit/provisioningGuard304.test.ts(63,58): error TS2741: Property 'updateNow' is missing in type 'FlakyReviewSource' but required in type 'UpdateReviewSource'.
dashboard build: tests/unit/provisioningGuard304.test.ts(76,58): error TS2741: Property 'updateNow' is missing in type 'ApproveFailsSource' but required in type 'UpdateReviewSource'.
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @idss/dashboard@0.0.0 build

Main is red, so every push-triggered ci.yml run after 6ebfb747 fails on this.

Root cause

6ebfb747 ("updates: Update now — approve and roll out immediately, bypassing the window for that release only (#1811)") widened the update seam's review face:

  • dashboard/src/lib/updateReview.ts:96 — UpdateReviewSource gains updateNow(revision: string): Promise<boolean>.
  • dashboard/src/lib/api/updatesClient.ts:104 and dashboard/tests/fakes/updateReview.ts were both carried forward.

What was missed: dashboard/tests/unit/provisioningGuard304.test.ts hand-rolls two local stubs — FlakyReviewSource (line 23) and ApproveFailsSource (line 39) — each implements UpdateReviewSource with only review/approve/skip. They are not FakeUpdateReviewSource, so widening the fake did not reach them.

It passed the author's local run because vitest transpiles with esbuild and does not typecheck; only the dashboard build script (vue-tsc) sees the test tree.

Fix

Give both stubs an updateNow that matches the seam's contract for what each class is exercising (#304 is the async-guard idiom: a failed verb must render a re-clickable error, not a dead button). The obvious shape:

  • FlakyReviewSource — async updateNow(): Promise<boolean> { return true; } (it only exercises the read path).
  • ApproveFailsSource — it exists to make a verb reject; consider whether the guard test should also cover updateNow rejecting, now that ReviewUpdateScreen.vue:187 drives it behind the same busy guard. At minimum it needs a conforming member.

Please also check whether the broader #304 guard suite should gain an updateNow failure case, rather than just satisfying the compiler.

Verification

cd dashboard && pnpm build (or pnpm -r build at the root) must pass, then pnpm -r test.

Class

Product-class (dashboard/ sources) — the healer does not touch product code, hence this ticket.

Filed by the swarm healer from CI run https://git.matou.nz/Matou/idss/actions/runs/31954 (signature `eeb55dc3cbe7`, head `c1bd1b69`). ## Symptom `ci.yml` stage **TypeScript: build (tsc), test (vitest), lint (eslint)** exits 2. `pnpm -r build` fails in `@idss/dashboard` (`vue-tsc -p tsconfig.json && vite build`): ``` dashboard build: tests/unit/provisioningGuard304.test.ts(23,9): error TS2420: Class 'FlakyReviewSource' incorrectly implements interface 'UpdateReviewSource'. dashboard build: tests/unit/provisioningGuard304.test.ts(39,9): error TS2420: Class 'ApproveFailsSource' incorrectly implements interface 'UpdateReviewSource'. dashboard build: Property 'updateNow' is missing in type 'ApproveFailsSource' but required in type 'UpdateReviewSource'. dashboard build: tests/unit/provisioningGuard304.test.ts(53,58): error TS2741: Property 'updateNow' is missing in type 'FlakyReviewSource' but required in type 'UpdateReviewSource'. dashboard build: tests/unit/provisioningGuard304.test.ts(63,58): error TS2741: Property 'updateNow' is missing in type 'FlakyReviewSource' but required in type 'UpdateReviewSource'. dashboard build: tests/unit/provisioningGuard304.test.ts(76,58): error TS2741: Property 'updateNow' is missing in type 'ApproveFailsSource' but required in type 'UpdateReviewSource'. ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @idss/dashboard@0.0.0 build ``` Main is red, so every push-triggered `ci.yml` run after `6ebfb747` fails on this. ## Root cause `6ebfb747` ("updates: Update now — approve and roll out immediately, bypassing the window for that release only (#1811)") widened the `update` seam's review face: - `dashboard/src/lib/updateReview.ts:96` — `UpdateReviewSource` gains `updateNow(revision: string): Promise<boolean>`. - `dashboard/src/lib/api/updatesClient.ts:104` and `dashboard/tests/fakes/updateReview.ts` were both carried forward. What was missed: `dashboard/tests/unit/provisioningGuard304.test.ts` hand-rolls **two local stubs** — `FlakyReviewSource` (line 23) and `ApproveFailsSource` (line 39) — each `implements UpdateReviewSource` with only `review`/`approve`/`skip`. They are not `FakeUpdateReviewSource`, so widening the fake did not reach them. It passed the author's local run because `vitest` transpiles with esbuild and does not typecheck; only the dashboard `build` script (`vue-tsc`) sees the test tree. ## Fix Give both stubs an `updateNow` that matches the seam's contract for what each class is exercising (#304 is the async-guard idiom: a failed verb must render a re-clickable error, not a dead button). The obvious shape: - `FlakyReviewSource` — `async updateNow(): Promise<boolean> { return true; }` (it only exercises the read path). - `ApproveFailsSource` — it exists to make a verb reject; consider whether the guard test should also cover `updateNow` rejecting, now that `ReviewUpdateScreen.vue:187` drives it behind the same `busy` guard. At minimum it needs a conforming member. Please also check whether the broader `#304` guard suite should gain an `updateNow` failure case, rather than just satisfying the compiler. ## Verification `cd dashboard && pnpm build` (or `pnpm -r build` at the root) must pass, then `pnpm -r test`. ## Class Product-class (`dashboard/` sources) — the healer does not touch product code, hence this ticket.
Author
Member

Recurrence — still red. Healer run heal-Matou-idss-1790271274-2516410, signature eeb55dc3cbe7, CI run https://git.matou.nz/Matou/idss/actions/runs/31988 at head a40876a8.

Same fault, same six TS2420/TS2741 lines; nothing on main has touched dashboard/tests/unit/provisioningGuard304.test.ts or dashboard/src/lib/updateReview.ts since 6ebfb747. Every push-triggered ci.yml run from c1bd1b69 through a40876a8 is red on this (31955, 31968, 31975, 31985, 31988). No new ticket filed — this one still holds the fault.

list-ready-tasks.sh shows #1826 as the only claimable task, unblocked, landing push; it just has not been claimed yet (the swarm lock reads free). Next :15/:45 cron should take it.

Contributing factor for the record: the breaking commit 6ebfb747 never got its own CI verdict. Its ci.yml runs (31952/31953) were cancelled 5 seconds in when c1bd1b69 — a STATUS.md-only spec commit — pushed 21 s later and Forgejo auto-cancelled the older same-ref runs. So the first red verdict landed against an innocent commit. That is platform default behaviour, not something the healer changes; flagging it in case the ordering of a code push and its follow-up spec push is worth a rule.

**Recurrence — still red.** Healer run `heal-Matou-idss-1790271274-2516410`, signature `eeb55dc3cbe7`, CI run https://git.matou.nz/Matou/idss/actions/runs/31988 at head `a40876a8`. Same fault, same six `TS2420`/`TS2741` lines; nothing on main has touched `dashboard/tests/unit/provisioningGuard304.test.ts` or `dashboard/src/lib/updateReview.ts` since `6ebfb747`. Every push-triggered `ci.yml` run from `c1bd1b69` through `a40876a8` is red on this (31955, 31968, 31975, 31985, 31988). No new ticket filed — this one still holds the fault. `list-ready-tasks.sh` shows #1826 as the only claimable task, unblocked, landing `push`; it just has not been claimed yet (the swarm lock reads `free`). Next `:15/:45` cron should take it. Contributing factor for the record: the breaking commit `6ebfb747` never got its own CI verdict. Its `ci.yml` runs (31952/31953) were **cancelled** 5 seconds in when `c1bd1b69` — a STATUS.md-only spec commit — pushed 21 s later and Forgejo auto-cancelled the older same-ref runs. So the first red verdict landed against an innocent commit. That is platform default behaviour, not something the healer changes; flagging it in case the ordering of a code push and its follow-up spec push is worth a rule.
Author
Member

swarm-claim host=matou-dev-server-01 run=31971
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=31971 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1826 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1826,
  "status": "success",
  "commits": [
    "2c5fe0fa"
  ],
  "changed_files": [
    "dashboard/tests/unit/provisioningGuard304.test.ts"
  ],
  "tests": [
    {
      "command": "CI=true pnpm build",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm test",
      "exit_code": 0
    }
  ],
  "criteria": {
    "cd dashboard && pnpm build passes (vue-tsc typechecks the test tree)": "CI=true pnpm build green — vue-tsc + vite built in 11.94s; the two stubs now implement updateNow so TS2420/TS2741 are gone (commit 2c5fe0fa)",
    "pnpm -r test passes": "CI=true pnpm test — 1998 passed / 2 skipped, including the new update-now failure-path case",
    "broader #304 guard suite gains an updateNow failure case rather than just satisfying the compiler": "ApproveFailsSource renamed VerbFailsSource, rejects updateNow; new test 'a failed update-now renders a re-clickable error near the action, no dead button (#1811)' asserts review-action-error + no updated-now emit (dashboard/tests/unit/provisioningGuard304.test.ts)"
  },
  "summary": "Fixed CI-red tsc by making the #304 review-guard stubs implement the #1811-widened UpdateReviewSource (updateNow) and added an update-now failure-path case.",
  "blockers": []
}
**close-report** for #1826 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1826, "status": "success", "commits": [ "2c5fe0fa" ], "changed_files": [ "dashboard/tests/unit/provisioningGuard304.test.ts" ], "tests": [ { "command": "CI=true pnpm build", "exit_code": 0 }, { "command": "CI=true pnpm test", "exit_code": 0 } ], "criteria": { "cd dashboard && pnpm build passes (vue-tsc typechecks the test tree)": "CI=true pnpm build green — vue-tsc + vite built in 11.94s; the two stubs now implement updateNow so TS2420/TS2741 are gone (commit 2c5fe0fa)", "pnpm -r test passes": "CI=true pnpm test — 1998 passed / 2 skipped, including the new update-now failure-path case", "broader #304 guard suite gains an updateNow failure case rather than just satisfying the compiler": "ApproveFailsSource renamed VerbFailsSource, rejects updateNow; new test 'a failed update-now renders a re-clickable error near the action, no dead button (#1811)' asserts review-action-error + no updated-now emit (dashboard/tests/unit/provisioningGuard304.test.ts)" }, "summary": "Fixed CI-red tsc by making the #304 review-guard stubs implement the #1811-widened UpdateReviewSource (updateNow) and added an update-now failure-path case.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1826
No description provided.