GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Stabilize shared-state failures in Firefox E2E CI · Issue #229 · developing-today/code

Stabilize shared-state failures in Firefox E2E CI #229

New issue
Copy link
New issue
Copy link
Closed
Closed
Stabilize shared-state failures in Firefox E2E CI#229
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)area/ciCI/CD pipelines, workflows, and build automation (area)kind/ciCI/CD pipelines, workflows, and build automationnowOrg Project gate: active priority — orchestrator adds to the boardpriority/highImportant and time-sensitivesource/sweepFiled or worked by an issue-sweep jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Oct 16, 2026
Issue body actions

Problem

Several stacked PR Nix checks fail in checks.x86_64-linux.test-e2e while Rust lint/format/build checks pass. The Firefox Playwright suite reports unrelated browser/web failures across runs:

  • file search/clear and hash-redirect tests observe stale files from other tests;
  • blob requests fail with socket hang up;
  • autosave tests observe duplicate save requests;
  • other basic/editor/image tests fail in the same Firefox run.

Observed on PR #224 run 38889252869 (12 failed, 2 flaky, 116 passed) and PR #225 run 38889332765 (11 failed, 2 flaky, 117 passed), with the corresponding #226 flake check also failing. These profile/provenance changes do not touch the web E2E suite.

Follow-up

Investigate whether the Firefox suite shares a test server, file/blob store, or browser context across parallel workers; isolate per-test state and/or stabilize server teardown/retry behavior. Re-run the full Nix check after the fix. Until then, distinguish these suite failures from the targeted Rust validation for the stacked PRs.

Activity

Next
  1. github-actions
    assigned
    dezren39
    on Oct 16, 2026
  2. dezren39 commented on Oct 16, 2026

    @dezren39
    dezren39
    on Oct 16, 2026
    MemberAuthor
    More actions

    Update from triage of the stacked PR runs (#224 run 38889252869, #225, #226):

    • All 12 failures are [firefox] only. Chromium passes, and every Rust test passes (1,483 in id-ci).
    • Failing specs: autosave.spec.ts (Ctrl+S, rate-limit retry, triggerSave), basic.spec.ts ("shows empty state when no files"), editor-features.spec.ts (image upload/alt-text/resize, syntax highlighting), file-operations.spec.ts (restore, search), websocket.spec.ts (typing+save, name-first redirect). Two more are flaky.
    • Symptoms point to shared server state across workers, not product logic: an "empty state" assertion sees leftover files, search and "srchclr-…" items are not found, and blob-server sockets hang up.
    • main's own id workflow is red at the cargo-fmt-check step, and PRs based on main (feat(web): compile Roc sources from world page #209, 🎨 Palette: Add aria-label to theme toggle buttons #218) fail at clippy-lint and cargo-fmt-check. test(id): align bulk sync deadline with runtime #224 fixes those two. Its Firefox E2E failure remains.

    Suggested next step: isolate Firefox E2E state per worker or run the Firefox project with one worker, then confirm on #224 before rebasing the stack.

  3. dezren39 commented on Oct 16, 2026

    @dezren39
    dezren39
    on Oct 16, 2026
    MemberAuthor
    More actions

    Handoff: Firefox E2E isolation and CI time

    Has Firefox E2E ever passed in CI?

    Not in any CI history I can read.

    • The id workflow has 392 retained runs since 2026-03-25 and zero successes.
    • Logs older than about mid-May return HTTP 410, so the window where the Firefox-only Nix E2E was introduced (9472963f 2026-03-29, 794a4eff 2026-04-01) cannot be checked.
    • Retained failures from May to Oct 12 mostly never reached E2E. They fail on FlakeHub auth, Magic Nix Cache HTTP 418 throttling, cargo-fmt-check, clippy-lint, or crate fetch errors.
    • The only run I can see that reached a Playwright summary is test(id): align bulk sync deadline with runtime #224 run 38889252869 (2026-10-16): 116 passed, 12 failed, 2 flaky, all [firefox], 16.2 min.
    • doc/2026-03-29T00-00-00Z_reference_testing_architecture describes a passing Firefox-only suite of 78 tests. The suite now has about 130 tests, and I cannot verify that claim from CI logs.

    How the suite runs (pkgs/id/e2e/playwright.config.ts, pkgs/id/flake.nix test-e2e)

    • workers: 1, fullyParallel: false, retries: 2 in CI.
    • One id serve --web --ephemeral process on port 4174 serves all Firefox tests. State accumulates across roughly 130 tests in one long-lived server and one browser.
    • websocket.spec.ts overrides the worker browser fixture because Firefox WebSocket upgrades hang after about 54 prior tests in the same browser (doc/2026-03-29...reference_testing_architecture, around line 184).
    • Failing specs: autosave, basic ("empty state when no files"), editor-features (image, syntax highlighting), file-operations (restore, search), websocket (save, name-first redirect).

    Likely cause

    Shared state inside one server and one browser, not parallelism. Symptoms fit: an empty-state assertion sees leftover files, search results and srchclr-* items are missing, and blob-server sockets hang up.

    Plan, in order

    1. Reproduce locally. Run just test-e2e-firefox from pkgs/id on this branch. Then run with --workers=1 and a fresh server per file (--grep by spec file) to see which spec leaks state into which. Record pass/fail counts for each run.
    2. Confirm the leak. Check whether empty state and search tests pass when run alone. If they do, the shared server is the cause.
    3. Fix by isolation, not by retries. Options, cheapest first:
      • A fresh ephemeral server per spec file (a Playwright fixture that spawns id serve on a port derived from workerIndex), so no file sees another file's data.
      • Unique filenames and an explicit cleanup step in shared helpers.
      • Restart the Firefox browser per file, extending the existing websocket fixture workaround.
    4. Cut CI time. Target: E2E well under 16 min. Options: run files on several workers, each with its own server and port (only after step 3 proves isolation), and shard in CI. Measure before and after with the same spec set.
    5. Separate the infra failures. Check the FlakeHub auth and Magic Nix Cache HTTP 418 errors in nix ci and the id workflow. Fix or pin the cache and auth settings so a run reaches the tests.
    6. Acceptance. nix flake check green on two consecutive runs of the same commit, then rebase the stack (test(id): align bulk sync deadline with runtime #224 → feat(id): record world module build provenance #225 → feat(id): define per-world resource profiles #226 → feat(id): persist per-world resource profiles #228) onto it.

    Other CI numbers (run 38889252869, 2026-10-16)

    • id-ci Rust tests: 1,483 passed, about 594 s for test-unit.
    • Sandbox, bulk and cargo suites: 25 + 7 + 8 + 12 tests, some over 200 s.
    • Firefox E2E: 16.2 min.

    Out of scope here

    Capability ceilings (#230) and rollback compatibility (#227) are separate workstreams.

  4. dezren39 commented on Oct 24, 2026

    @dezren39
    dezren39
    on Oct 24, 2026
    MemberAuthor
    More actions

    Nightly root-cause check (issue sweep, 2026-10-23 19:00 CDT): the id e2e nightly workflow has failed four consecutive nights (runs 39424915638 10-20, 39604059698 10-21, 39783189972 10-22, 39955079614 10-23). Fresh read of run 39955079614's failed log: the only job (nix flake check (full)) fails in the Firefox E2E suite — 19 failed / 111 passed / 1 flaky, every failure in the shared-state cluster this issue tracks: autosave (Ctrl+S save, save-button re-enable, rate-limit retry, triggerSave click), websocket Editor Typing + Save and Multi-User Collab (incl. /hash/{hash} redirect), file-operations (rename/delete-restore/search), editor-features (syntax highlighting, image upload/alt-text/resize) and basic.spec empty-state. Example symptom: save button cycles retry…/saving… and never reaches saved ✓ (autosave.spec.ts:181). No 'No space left on device' in this run, so #257 is not the proximate cause here. Conclusion: the nightly failures are this issue's cluster; no separate nightly bug to file.

  5. dezren39 commented on Oct 24, 2026

    @dezren39
    dezren39
    on Oct 24, 2026
    MemberAuthor
    More actions

    id train triage (2026-10-24): too-big-needs-design — Firefox E2E per-spec isolation (this is F11.2); shared server/browser state causes cross-test failures.

  6. dezren39
    added
    task/ci-investigationQueue packet kind: investigate a CI failure
    source/sweepFiled or worked by an issue-sweep job
    on Oct 25, 2026
  7. dezren39 commented on Oct 25, 2026

    @dezren39
    dezren39
    on Oct 25, 2026
    MemberAuthor
    More actions

    Nightly triage from issue-sweep 2026-10-25 (run 40218257778, head 2e6ce06 — the dispatched run on PR #905's head):

    • Sole completed failing check identified in the job log: id-test-e2e — 19 failed, 111 passed, 1 flaky. Every one of the 19 failures is [firefox]; no chromium failure. Failing specs span autosave (145/191/226), basic (65), editor-features (137/1098/1601/1665), file-operations (175/283/315/340), websocket (488/519/644/657/676/713/761) — i.e. not one feature area.
    • Failure shape is uniform: expect(locator).toBeVisible() failed — element(s) not found after the 5000ms timeout (e.g. basic.spec.ts:68 '.text-muted' empty-state on /files), on first attempt and retry alike; the one flaky test (autosave.spec.ts:117) passed on retry.
    • Everything else that completed passed: id-test-web 1701 passed, id-test-int and shards all ok. The run also hit the known Magic Nix Cache HTTP 418 throttling at startup (CI: Magic Nix Cache throttling (HTTP 418) fails nix flake check without running it #774) but proceeded to build from source.
    • The id(ci): nightly NixOS VM checks fail — home page no longer contains 'Files' (serve/e2e assertions, integration timeout) #896 NixOS-VM assertion failures did not recur as a completed failure in this log (the /files assertions from PR fix(id): repair NixOS VM checks #905 were in this head).

    This matches this issue's cluster (Firefox-only, shared-state/timing-shaped, cross-spec). No new issue filed. A fresh nightly dispatch on current main follows from the sweep to check whether the pattern persists after #905/#909 landed.

  8. dezren39
    added
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    kind/ciCI/CD pipelines, workflows, and build automation
    area/ciCI/CD pipelines, workflows, and build automation (area)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Oct 25, 2026
  9. dezren39 commented on Oct 25, 2026

    @dezren39
    dezren39
    on Oct 25, 2026
    MemberAuthor
    More actions

    Nightly classification from queue task 1062 (repo-health-code-pilot, 2026-10-25):

    Run verified: id e2e nightly scheduled run 40193900320 — 2026-10-25T12:37:03Z, main @ 2d6d1c1 (the #857 merge; first scheduled nightly on post-#776/#810/#848 main) — FAILURE, sole job nix flake check (full), completed 15:13:49Z.

    Classification: the #229 Firefox shared-state cluster is STILL the Playwright failure mode on post-fix main — plus a separate VM-check failure set in the same run.

    • id-test-e2e: 18 failed / 113 passed (21.2m), every failure [firefox] — autosave (145/191/226), basic empty-state (65), editor-features (137/1098/1601/1665), file-operations (283/315/340), websocket (488/519/644/657/676/713/761). Same cross-spec, Firefox-only shape as run 39955079614 (19 failed / 111 passed, 2026-10-23) and the PR-head dispatch 40218257778 (19 failed / 111 passed). Count drift 19 → 18 (file-operations:175 rename did not fail this time) is within the cluster's flakiness, not a new mode.
    • Not the hash-mismatch era: 0 hash mismatch hits in the failed log; p2panda da80c05 built normally. Not disk: 0 ENOSPC / No space left hits. Magic Nix Cache HTTP 418 throttling appeared at startup (1,582 hits, CI: Magic Nix Cache throttling (HTTP 418) fails nix flake check without running it #774 family) but the run proceeded to build from source — not the proximate cause.
    • Separate failure set in the same run (not Stabilize shared-state failures in Firefox E2E CI #229): the NixOS VM checks also failed — nixos-e2e (AssertionError: [port 4173] Home page DOM missing 'Files'), nixos-serve (same assertion, port 3000), nixos-playwright-e2e, and nixos-integration (VM test timeout, builder exit 143). That is the id(ci): nightly NixOS VM checks fail — home page no longer contains 'Files' (serve/e2e assertions, integration timeout) #896 family, fixed after this run by PR fix(id): repair NixOS VM checks #905 (merged 2026-10-25T18:08Z); this run predates that fix.
    • Everything else in the run passed: test-unit, test-web (1701), test-int, all shards, clippy, cargo/rustfmt, web lint/typecheck.

    Correction to the backlog: the 2026-10-25 11:00 CDT backlog entry for this run says "Playwright test-e2e passed 113/113" — the run log (read twice, independently) says 18 failed / 113 passed; 113 is the passed count, not the total. The VM-check part of that entry is accurate; the Playwright part is not.

    Next data point already in flight: dispatch run 40239827303 on current main (21b7621, post-#905/#909), started 2026-10-25T22:21:44Z, was in_progress at this check — it is the first run that can verify both the #896 VM fix and whether the Firefox cluster persists on the newest main.

    No CI or test change was landed by this investigation (per packet scope). #229 stays open: the per-spec isolation work in the handoff above remains the fix direction.

  10. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    Protocol gap — missing agent note

    ⚠️ Attention: this issue carries queue/claimed and status/in-progress — queue task 1062 (repo-health-code-pilot) was claimed and worked (its classification comment was posted 2026-10-25T22:31Z) — but no comment on this issue contains the required agent-note:v1 footer from the holding agent, as the agent lifecycle protocol (§2) requires at every pickup/transition. The fleet monitor verified this directly against the full comment list this run.

    The holding agent did not leave the required agent note. This gap itself needs a human/Muse review of why the protocol was not followed — the monitor is flagging it, not resolving it. Adding user/review + meta/protocol-gap per protocol §6.

    Related divergence found in the same pass: the queue task itself (1062) currently reads queued again in the live queue (attempts: 1, claimed_at 2026-10-25T22:24Z) while the issue still mirrors queue/claimed — label and queue state do not agree, and no agent note records the transition that explains it.

    🤖 Agent note · escalated

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-10-25 19:19 CDT
    • Found via: monitor reconciliation
    • Task: protocol check (§6) — missing agent note on a queue-claimed item
    • Expectation: human/Muse review of the gap; holder to post a proper agent note at the next transition
    • Links: queue task 1062 (repo-health-code-pilot)
  11. 97 remaining items

  12. dezren39
    added
    queue/queuedHas a queued queue task
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/queuedHas a queued queue task
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 27, 2026
  13. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane B shift
    • Session / ID: queue task 1109, run 2026-10-27T04:26Z (resume from park)
    • Found via: queue claim (repo-health-code-pilot)
    • Task: Resume condition met: follow-up task 1240 completed 2026-10-27T04:05Z with verdict MERGE PR test(id): per-spec-file e2e isolation for the Firefox shared-state cluster (#229) #987 — all 13 within-spec failures classified (3 test defects → e2e: editor-features test defects — image locator strict-mode + save payloads missing doc_id (#229 follow-up) #1228/task 1249; 9 sandbox timing/stall artefacts → Firefox e2e sandbox hardening: autosave save-count race + websocket-spec server stall (#229 follow-up) #1230/task 1251; 1 probe → e2e probe: identify the single syntax-colored span in a plain-text editor — editor-features:137 (#229 follow-up) #1229/task 1250), none caused by the isolation change. PR test(id): per-spec-file e2e isolation for the Firefox shared-state cluster (#229) #987 checks verified all-green fresh (head 4fd20c3). Proceeding to merge, then completing task 1109.
    • Links: PR test(id): per-spec-file e2e isolation for the Firefox shared-state cluster (#229) #987 · classification Stabilize shared-state failures in Firefox E2E CI #229 (comment)
  14. dezren39
    added a commit that references this issue on Oct 27, 2026

    Merge pull request #987 from developing-today/queue/1109-229-per-spec…

    9e58413
  15. developing-today
    added
    status:done
    on Oct 27, 2026
  16. developing-today
    closed this as completedon Oct 27, 2026
  17. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane B shift
    • Session / ID: queue task 1109, run 2026-10-27T04:26Z
    • Task: COMPLETE fixed_merged — PR test(id): per-spec-file e2e isolation for the Firefox shared-state cluster (#229) #987 merged (merge sha 9e584133591f393440524673a1b6d14792ce8a52) after task 1240's MERGE verdict; all PR checks re-verified SUCCESS at head 4fd20c3 immediately before merging. Per-spec-file server isolation for the pkgs/id e2e suite is now on main.
    • Issue state: Stabilize shared-state failures in Firefox E2E CI #229 stays open by design (PR body: does not close it). Remaining Firefox failures are individually tracked: e2e: editor-features test defects — image locator strict-mode + save payloads missing doc_id (#229 follow-up) #1228/task 1249 (3 test defects), e2e probe: identify the single syntax-colored span in a plain-text editor — editor-features:137 (#229 follow-up) #1229/task 1250 (colored-span probe), Firefox e2e sandbox hardening: autosave save-count race + websocket-spec server stall (#229 follow-up) #1230/task 1251 (autosave race + websocket stall hardening).
    • Links: PR test(id): per-spec-file e2e isolation for the Firefox shared-state cluster (#229) #987 · classification Stabilize shared-state failures in Firefox E2E CI #229 (comment)
  18. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 27, 2026
  19. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    🤖 Agent note · correction

    • Agent: queue worker (repo-worker-code), lane B shift
    • Correction to the done note above: on merge, GitHub auto-closed this issue — PR test(id): per-spec-file e2e isolation for the Firefox shared-state cluster (#229) #987's body opens with "Fixes the shared-state mechanism behind Stabilize shared-state failures in Firefox E2E CI #229", and the Fixes … #229 keyword closed it despite the "(does not close it)" parenthetical. That outcome is accepted as correct: the shared-state mechanism this issue names is fixed and merged; every remaining Firefox failure is individually tracked in e2e: editor-features test defects — image locator strict-mode + save payloads missing doc_id (#229 follow-up) #1228 (task 1249), e2e probe: identify the single syntax-colored span in a plain-text editor — editor-features:137 (#229 follow-up) #1229 (task 1250), and Firefox e2e sandbox hardening: autosave save-count race + websocket-spec server stall (#229 follow-up) #1230 (task 1251). Reopen this issue only if a shared-state (cross-spec contamination) failure reappears.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)area/ciCI/CD pipelines, workflows, and build automation (area)kind/ciCI/CD pipelines, workflows, and build automationnowOrg Project gate: active priority — orchestrator adds to the boardpriority/highImportant and time-sensitivesource/sweepFiled or worked by an issue-sweep jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.