remove-device red on drive 20260901T205618Z is already fixed on main — the drive ran a commit that predates its own fix #1133

Closed
opened 2026-09-01 22:27:43 +00:00 by matou-build-agent · 1 comment

Failure

Drive 20260901T205618Z (target device) reached 29/30 green and red at remove-device:

locator.click: Timeout 300000ms exceeded.
  - waiting for locator('[data-action="tab-fleet"]')

Signature 0be66b4eb38d. artifacts/verdict.json records firstRedLeg: remove-device, commit: b0d402bcf4f211d02ceb5af200e7ef06746c53ee.

Diagnosis (confirmed against the trace, not just the code)

The leg opened on a Nextcloud page. The oidc-login leg immediately above drives the shared dash page to the files door and never navigates back:

  • app/tests/e2e/journey.device.spec.ts:873 — await dash.goto(doorPath(door, '/login'), ...)
  • app/tests/e2e/journey.device.spec.ts:874 — oidcSignInAsOperator(dash, door, ...)
  • app/tests/e2e/journey.device.spec.ts:875 — assertOperatorIsAdmin(dash, door)

remove-device then inherited that surface and clicked for the dashboard's Fleet tab there until the 300s action ceiling.

Decisive evidence — the dash context's final actions in artifacts/journey.device-device-add--809eb-e-standing-rented-community/trace.zip, 1-trace.trace:

trace t (ms) action
2319364 goto https://files.rehearsal-e.idss.nz/login
2337222 goto https://files.rehearsal-e.idss.nz/settings/admin
2344118 click [data-action="tab-fleet"], timeout 300000
2644370 timed out (delta 300252 ms, matching the leg's recorded 300447 ms)

The product is fine: oidc-login went green — the operator really is a Nextcloud admin through the community IdP.

Caveat for whoever reads this next: error-context.md's "Page snapshot" shows the operator ceremony window ("Rehearsal E is alive.", "Save your recovery kit"), not the Nextcloud page dash was actually on. It snapshots a different page in the context. Diagnosing from error-context.md alone points at the wrong surface; the trace is the reliable record.

Suspected layer

Drive harness (the Playwright journey spec), not product code. No IDSS service, no droplet state, no infra fault is implicated. All box-side evidence is clean: no failed units of note in logs/device-units.txt, logs/device-stall.txt shows an idle healthy box (load 0.00, 70G free), and logs/device-do-forensics.txt shows a single create action with no DO-side power_cycle/resize.

What plugging it needs — nothing; re-drive

The fix is already on main. Commit bb99c596 ("drive: #1132 — remove-device opens its own surface: come back from Nextcloud, and drill in the PROVISIONED way") landed after the drive's commit b0d402bc and addresses exactly this. The healer verified each element of it at HEAD rather than trusting the commit message:

  1. app/tests/e2e/journey.device.spec.ts:897-899 — the leg now does dash.goto(portalAddress, { waitUntil: 'domcontentloaded' }) and waits for [data-status="dashboard-chrome"], establishing its own starting surface instead of inheriting the previous leg's. This is the same pattern the standing leg already uses at :420-422.
  2. app/tests/e2e/journey.device.spec.ts:906 — openNodeSurface(dash, { deviceId, provisioned: true }) replaces openDeviceSetup. This is correct: nodeSurfaceRoute (dashboard/src/lib/fleet.ts:136) returns change-node-<id> for a provisioned node and set-up-<id> otherwise, and by this leg the device is provisioned — deploy-takeover and files-door were both green, and the trace shows [data-field="active"] >> [data-service="files"] resolving at t=2315730.

Symbols the fix depends on all resolve at HEAD: portalAddress (:211), CEILING.standing (:96), openNodeSurface imported (:22).

Checks run on this machine at HEAD bb99c596:

  • pnpm --filter app exec vitest run tests/e2e/fixtures — 244 passed (15 files)
  • pnpm exec tsc -p tsconfig.json --noEmit — no errors in journey.device.spec.ts (the only two diagnostics are pre-existing AppUpdateSurface .vue-import errors in src/bootstrap.ts:40 and tests/unit/appShell.test.ts:5, unrelated to this spec)

Action: re-drive at current main. No code change is required, and no new commit should be made for this signature — a healer that "fixes" it again would duplicate bb99c596.

Secondary observation (not the red, no change made)

app/tests/e2e/journey.device.spec.ts:909 clicks [data-action="remove-device"] with no explicit timeout, so it inherits the 300s action ceiling. The equivalent call in walkOffNode at :1024 passes { timeout: CEILING.assess } precisely so a missing surface control fails fast rather than burning five minutes. Worth aligning opportunistically, but it is a fast-fail nit, not a cause of any observed red — filed here only so it is not rediscovered.

Evidence absent from the run directory

  • droplet-journal.txt — not written; this drive harvests logs/device-journal.txt and logs/gateway-journal.txt instead.
  • state/logs — absent; logs/state-logs.log records the ENOENT.
  • logs/broker-journal.txt — harvest failed (dev@100.98.48.68: Permission denied (publickey)), documented as off-mesh and not affecting the verdict (#681).
  • The unreaped member droplet is expected: remove-device threw before the reap leg, and the afterAll teardown fallback (app/tests/e2e/journey.device.spec.ts:245-269) covers it. Not a fault.

drive 20260901T205618Z red at remove-device: locator.click: Timeout 300000ms exceeded. Call log: - waiting for locator('[data-action="tab-fleet"]')
evidence: /home/swarm/swarm/Matou/idss/test-results/drive-device/20260901T205618Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## Failure Drive `20260901T205618Z` (target `device`) reached 29/30 green and red at `remove-device`: ``` locator.click: Timeout 300000ms exceeded. - waiting for locator('[data-action="tab-fleet"]') ``` Signature `0be66b4eb38d`. `artifacts/verdict.json` records `firstRedLeg: remove-device`, `commit: b0d402bcf4f211d02ceb5af200e7ef06746c53ee`. ## Diagnosis (confirmed against the trace, not just the code) The leg opened on a **Nextcloud** page. The `oidc-login` leg immediately above drives the *shared* `dash` page to the files door and never navigates back: - `app/tests/e2e/journey.device.spec.ts:873` — `await dash.goto(doorPath(door, '/login'), ...)` - `app/tests/e2e/journey.device.spec.ts:874` — `oidcSignInAsOperator(dash, door, ...)` - `app/tests/e2e/journey.device.spec.ts:875` — `assertOperatorIsAdmin(dash, door)` `remove-device` then inherited that surface and clicked for the dashboard's Fleet tab there until the 300s action ceiling. Decisive evidence — the `dash` context's final actions in `artifacts/journey.device-device-add--809eb-e-standing-rented-community/trace.zip`, `1-trace.trace`: | trace t (ms) | action | | --- | --- | | 2319364 | `goto https://files.rehearsal-e.idss.nz/login` | | 2337222 | `goto https://files.rehearsal-e.idss.nz/settings/admin` | | 2344118 | `click [data-action="tab-fleet"]`, timeout 300000 | | 2644370 | timed out (delta 300252 ms, matching the leg's recorded 300447 ms) | The product is fine: `oidc-login` went green — the operator really is a Nextcloud admin through the community IdP. **Caveat for whoever reads this next:** `error-context.md`'s "Page snapshot" shows the *operator ceremony window* ("Rehearsal E is alive.", "Save your recovery kit"), not the Nextcloud page `dash` was actually on. It snapshots a different page in the context. Diagnosing from `error-context.md` alone points at the wrong surface; the trace is the reliable record. ## Suspected layer Drive harness (the Playwright journey spec), not product code. No IDSS service, no droplet state, no infra fault is implicated. All box-side evidence is clean: no failed units of note in `logs/device-units.txt`, `logs/device-stall.txt` shows an idle healthy box (load 0.00, 70G free), and `logs/device-do-forensics.txt` shows a single `create` action with no DO-side power_cycle/resize. ## What plugging it needs — nothing; re-drive **The fix is already on `main`.** Commit `bb99c596` ("drive: #1132 — remove-device opens its own surface: come back from Nextcloud, and drill in the PROVISIONED way") landed *after* the drive's commit `b0d402bc` and addresses exactly this. The healer verified each element of it at HEAD rather than trusting the commit message: 1. `app/tests/e2e/journey.device.spec.ts:897-899` — the leg now does `dash.goto(portalAddress, { waitUntil: 'domcontentloaded' })` and waits for `[data-status="dashboard-chrome"]`, establishing its own starting surface instead of inheriting the previous leg's. This is the same pattern the `standing` leg already uses at `:420-422`. 2. `app/tests/e2e/journey.device.spec.ts:906` — `openNodeSurface(dash, { deviceId, provisioned: true })` replaces `openDeviceSetup`. This is correct: `nodeSurfaceRoute` (`dashboard/src/lib/fleet.ts:136`) returns `change-node-<id>` for a provisioned node and `set-up-<id>` otherwise, and by this leg the device is provisioned — `deploy-takeover` and `files-door` were both green, and the trace shows `[data-field="active"] >> [data-service="files"]` resolving at t=2315730. Symbols the fix depends on all resolve at HEAD: `portalAddress` (`:211`), `CEILING.standing` (`:96`), `openNodeSurface` imported (`:22`). Checks run on this machine at HEAD `bb99c596`: - `pnpm --filter app exec vitest run tests/e2e/fixtures` — **244 passed (15 files)** - `pnpm exec tsc -p tsconfig.json --noEmit` — no errors in `journey.device.spec.ts` (the only two diagnostics are pre-existing `AppUpdateSurface` `.vue`-import errors in `src/bootstrap.ts:40` and `tests/unit/appShell.test.ts:5`, unrelated to this spec) **Action: re-drive at current `main`. No code change is required, and no new commit should be made for this signature** — a healer that "fixes" it again would duplicate `bb99c596`. ## Secondary observation (not the red, no change made) `app/tests/e2e/journey.device.spec.ts:909` clicks `[data-action="remove-device"]` with no explicit timeout, so it inherits the 300s action ceiling. The equivalent call in `walkOffNode` at `:1024` passes `{ timeout: CEILING.assess }` precisely so a missing surface control fails fast rather than burning five minutes. Worth aligning opportunistically, but it is a fast-fail nit, not a cause of any observed red — filed here only so it is not rediscovered. ## Evidence absent from the run directory - `droplet-journal.txt` — not written; this drive harvests `logs/device-journal.txt` and `logs/gateway-journal.txt` instead. - `state/logs` — absent; `logs/state-logs.log` records the `ENOENT`. - `logs/broker-journal.txt` — harvest failed (`dev@100.98.48.68: Permission denied (publickey)`), documented as off-mesh and not affecting the verdict (#681). - The unreaped member droplet is expected: `remove-device` threw before the `reap` leg, and the `afterAll` teardown fallback (`app/tests/e2e/journey.device.spec.ts:245-269`) covers it. Not a fault. drive `20260901T205618Z` red at `remove-device`: `locator.click: Timeout 300000ms exceeded. Call log: - waiting for locator('[data-action="tab-fleet"]')` evidence: `/home/swarm/swarm/Matou/idss/test-results/drive-device/20260901T205618Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 0be66b4eb38d -->
Owner

Confirmed — closing, nothing to implement.

The remove-device red on drive 20260901T205618Z is bb99c596 (#1132), which landed while that drive was mid-flight: the cycle had synced main about a minute before the push, so it drove one commit behind and hit the same wall.

For the record, that run is the arc's deepest — 29 of 30 green, with deploy-takeover, files-door and oidc-login all green, the last two for the first time. The red was a leg-boundary fault, not a product one: oidc-login drives the shared dash page to Nextcloud (deliberately — it needs the live kanidm session) and never navigates back, so remove-device hunted the dashboard's Fleet tab on a Nextcloud page until the 300s ceiling. #1132 has the leg open its own surface, and drill in the provisioned way (change-node-<id>, not the set-up-<id> a provisioned row never offers — the #1043/#1044 lesson).

The drive host is now on bb99c596. Closing so #854 unparks; the next cycle runs remove-device and reap for the first time.

Confirmed — closing, nothing to implement. The `remove-device` red on drive `20260901T205618Z` is `bb99c596` (#1132), which landed while that drive was mid-flight: the cycle had synced main about a minute before the push, so it drove one commit behind and hit the same wall. For the record, that run is the arc's deepest — **29 of 30 green**, with `deploy-takeover`, `files-door` and `oidc-login` all green, the last two for the first time. The red was a leg-boundary fault, not a product one: `oidc-login` drives the shared `dash` page to Nextcloud (deliberately — it needs the live kanidm session) and never navigates back, so `remove-device` hunted the dashboard's Fleet tab on a Nextcloud page until the 300s ceiling. #1132 has the leg open its own surface, and drill in the provisioned way (`change-node-<id>`, not the `set-up-<id>` a provisioned row never offers — the #1043/#1044 lesson). The drive host is now on `bb99c596`. Closing so #854 unparks; the next cycle runs `remove-device` and `reap` for the first time.
ben closed this issue 2026-09-01 22:28:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1133
No description provided.