Skip to content

Nix Playwright E2E suite fails after vendoring dependencies #176

Open

Description

@dezren39

Summary

After the test-e2e derivation was made offline-reproducible and Playwright was aligned with the Nix-provided browser, the Firefox suite launches but the Nix check still fails: 113 passed, 17 failed.

Reproduced locally with:

nix build ./pkgs/id#checks.x86_64-linux.test-e2e -L

Failures span autosave, the empty-home state, editor/image features, rename/delete/search, and WebSocket save tests. Examples include:

  • Expected saved content but received the autosave retry… state; some later API reads ended with socket hang up.
  • File list/search/rename assertions could not find files created by their tests.
  • /hash/{hash} redirected to a different test's alt-text-test-… file rather than the expected redirect-test-… name.

The Playwright config runs one worker against a single ephemeral server. Investigate test-state isolation, repeated-content/hash alias behavior, and server lifecycle under the Nix sandbox. This surfaced once the missing Cargo Git dependencies could be built; PR #175 does not fix these failures yet.

Related follow-up: #175

Acceptance criteria

  • nix build ./pkgs/id#checks.x86_64-linux.test-e2e -L passes with 0 failed tests (baseline at filing: 113 passed, 17 failed).
  • The failure causes — test-state isolation, repeated-content/hash alias behaviour, and server lifecycle under the Nix sandbox — are investigated and the findings recorded on this issue.
  • No assertions are weakened and no tests are deleted to reach green without a recorded justification.

Activity

  1. dezren39 commented on Oct 24, 2026

    @dezren39
    MemberAuthor

    id train triage (2026-10-24): too-big-needs-design — Nix Playwright E2E stabilization after vendoring (113 passed / 17 failed).

  2. added
    work/assigned
    queue/claimed
    status/in-progress
    on Oct 29, 2026
  3. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), Lane A shift
    • Session / ID: queue task 2020
    • Found via: queue claim · repo-health-code-pilot
    • Task: Triage Nix Playwright E2E suite fails after vendoring dependencies #176 — verify whether the Nix Playwright test-e2e suite still fails at current main (17 failures at filing: autosave, empty-home, editor/image, rename/delete/search, WebSocket save), or whether later work fixed/superseded it; route a scoped fix or close with evidence.
    • Expectation: effort s — done = triage verdict posted, follow-up enqueued or issue closed with evidence, task 2020 completed.
    • Links: issue Nix Playwright E2E suite fails after vendoring dependencies #176
  4. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (triage verdict: CONFIRMED — still red at HEAD, narrowed since filing)

    • Agent: queue worker (repo-worker-code), Lane A shift
    • Session / ID: queue task 2020 (triage)
    • Found via: queue claim · repo-health-code-pilot
    • Task: Triage complete — the suite still does not pass at current main, but the problem has narrowed since filing; routed to a scoped follow-up (queue task 2965).
    • Evidence:
    • Expectation: follow-up task 2965 (small_fix, dedupe repo-health:v1:fix:developing-today/code:issue:176) — done = fresh per-spec inventory posted here, residual failing specs fixed (or proven infra-only with re-run evidence), test-e2e green.
    • Links: follow-up task 2965 · nightly run https://github.com/developing-today/code/actions/runs/40511024415
  5. added
    queue/queued
    and removed
    status/in-progress
    queue/claimed
    work/assigned
    on Oct 29, 2026
  6. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane A shift
    • Session / ID: queue task 2965
    • Found via: queue claim
    • Task: Nix Playwright E2E suite fails after vendoring dependencies #176 residual test-e2e failures — step 1 (fresh per-spec inventory at HEAD) is running in CI; task parked on that run, resume = read its per-spec results and fix the failing specs.
    • Expectation: on resume: extract the per-spec pass/fail inventory from run 40850100317, post it here replacing the stale filing numbers, fix each failing spec (or prove infra-only with re-run evidence), PR + green test-e2e.
    • Links: fresh inventory run (workflow_dispatch on main, 2026-10-29): https://github.com/developing-today/code/actions/runs/40850100317 · prior triage: task 2020 verdict on this issue

    Progress — inventory run dispatched

    Revalidated fresh: #176 is OPEN, no hard-stop labels; the packet's evidence holds — last scheduled nightly on main 2026-10-27 (run 40511024415) failed, 2026-10-28 nightly (40702501780) was cancelled in the runner stall, and no green nightly exists since the per-spec isolation fix (#229/PR #987) merged.

    Step 1 of the packet is a fresh per-spec inventory at HEAD. That run takes ~2h in CI (recent nightlies: 1h57m–3h00m), far beyond a worker shift's CI-wait limit, so instead of waiting: I dispatched id e2e nightly on main — run 40850100317 (queued at dispatch) — and parked this task on it. The per-spec runner reports every failing file, which is exactly the inventory the resumed worker needs; infra noise (FlakeHub auth / Magic Nix Cache rate limits seen in earlier logs) must be separated from real spec failures when reading it.

  7. added
    queue/parked
    work/assigned
    status/parked
    and removed
    queue/queued
    on Oct 29, 2026
  8. 96 remaining items

  9. added
    stray-work
    stray/needs-parent
    on Nov 27, 2026
  10. added
    priority/high
    on Nov 29, 2026
  11. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Census 2026-11-29 (lane CEN-C01) — full re-read of body + all 37 comments; current state consolidated here so a pickup lane does not have to archaeology through a month of triage notes.

    Where this actually stands:

    Acceptance for closing: a per-spec run at current main with autosave, websocket, and world-surface green (or each residual failure proven infra-only with re-run evidence), and the file-operations flakies either fixed or quarantined with a named follow-up.

    Blockers: none external and not a Drew host-activation item (that premise was disproven on 2026-11-03 — this reproduces from any checkout). It sat parked behind a runner stall (#1599) and a missing fresh inventory; both have since cleared. The work/assigned label is stale — no live holder; the last real work was task 25518 on 2026-11-27.

    Priority: none was set; added priority/high — this is the id package's E2E suite staying red on main, and it gates the #1372/#8465 close conditions.

  12. added
    kind/bug
    app/id
    effort/m
    on Nov 29, 2026
  13. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: No kind/*, no app/*/area/*, and no effort/* label; no ## Acceptance criteria section. Two status labels (status/parked + status/triaged) coexist — left as-is because lifecycle/queue/* state is owned by the queue flow, not hand-edited.

    Strengths: A model bug report: exact repro command, pass/fail counts (113 passed, 17 failed), named failing areas (autosave, empty-home, editor/image, rename/delete/search, WebSocket save), concrete symptom examples, and a linked related PR (#175). A picker-up can start immediately.

    Actions taken by this census: Labels added: kind/bug, app/id, effort/m. Appended a ## Acceptance criteria section to the body (original text untouched), converting the issue's own acceptance wording into checkable items.

  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full re-read (body, labels, all comments, edges) in the CODE-6 recovery pass, concurring with the parallel census note (lane CEN-C01) already on this thread, whose claims I verified against live state in this pass. STRENGTHS: the stale filing numbers (113 passed / 17 failed) are superseded — a fresh per-spec inventory exists (2026-11-25, run 45535874984: autosave 4 failures + 1 flaky, navigation 1, websocket 6, world-surface 4), and fixes have landed since (per-spec server isolation #229/PR #987; the navigation selector fix verified 2026-11-27). PRIORITY VALIDATION: priority/high kept — a failing E2E suite is a CI-track bug, "important and time-sensitive" while the suite is red; the user/review label is noted and the band is NOT changed by this lane. FIXES I APPLIED: none needed — status/parked + status/triaged reflect the recorded state. REMAINS: the remaining per-spec failures from the 2026-11-25 inventory, worked spec by spec; no Drewry decision needed.

  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found: No kind/*, no app/*/area/*, and no effort/* label; no ## Acceptance criteria section. Two status labels (status/parked + status/triaged) coexist — left as-is because lifecycle/queue/* state is owned by the queue flow, not hand-edited.

    Strengths: A model bug report: exact repro command, pass/fail counts (113 passed, 17 failed), named failing areas (autosave, empty-home, editor/image, rename/delete/search, WebSocket save), concrete symptom examples, and a linked related PR (#175). A picker-up can start immediately.

    Actions taken by this census: Verified complete — no changes needed.

  16. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29 (correction note)

    This issue received two census comments from this census pass (15:59Z and 16:38Z) after a worker restart duplicated the posting step. The first comment is the accurate one: this census added the labels kind/bug, app/id, effort/m and appended the ## Acceptance criteria section; the second comment's 'no changes needed' line is superseded by the first. Each edit itself was applied once.

  17. dezren39 commented on Nov 30, 2026

    @dezren39
    MemberAuthor

    Agent-note claim — lane 0322-W (delta PRESS discovery 2nd wave, 2026-11-30): claiming this issue for premise-check + fix work toward the lane bar. Found in the 2026-11-29 pre-outage tail scan (unlisted in next-issues.json). If a live lane is already mid-flight here, say so and I stand down.

  18. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Agent note — lane 0322-W premise check (2026-11-30): the queue task 2965 park (2026-10-29) is stale (>24h, no PR), so this lane takes over under the work-loop core stale-claim rule. State confirmed live today: issue OPEN; last per-spec inventory 118 passed / 13 failed, all [firefox] (2026-10-29, run 40850100317). Next step: fresh per-spec test-e2e inventory at current HEAD (id e2e nightly / flake check), then fix the failing firefox specs (autosave retry/socket hang up, file list/search/rename, hash-alias redirect). Wake: that run's conclusion — inventory posted here on completion. No assertions to be weakened, per acceptance criteria.

  19. removed
    status/triaged
    on Nov 30, 2026
  20. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    P3.2 collision adjudication — Felix lane 0640-WH (claim 7283792252 on #17071): this issue carried two status labels, status/parked + status/triaged. Kept status/parked — status/parked was the final status act on the timeline (2026-11-08T21:24:59Z, replacing in-progress); status/triaged predates it (2026-11-08T10:58:36Z) and the 2026-11-17 in-progress label/unlabel pair nets out. Removed status/triaged. No other labels touched; priority band unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/ideffort/mkind/bugpriority/highqueue/parkedsource/creatorstatus/parkedstray-workstray/needs-parenttask/triageuser/reviewwork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions