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 — pm-aggregator tests: browser acceptance (MOB-00) red on main — fragments never load (data-on-load is not a Datastar v1 attribute) · Issue #10605 · developing-today/code

pm-aggregator tests: browser acceptance (MOB-00) red on main — fragments never load (data-on-load is not a Datastar v1 attribute) #10605

New issue
Copy link
New issue
Copy link
Closed
#10608
Closed
pm-aggregator tests: browser acceptance (MOB-00) red on main — fragments never load (data-on-load is not a Datastar v1 attribute)#10605
#10608
Copy link
Labels
kind/ciCI/CD pipelines, workflows, and build automationsource/ci-watchFiled by main-ci watchstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Failure

developing-today/code · workflow pm-aggregator tests · branch main · run 43804024455 (workflow_dispatch, head 3fb67243f5bfa3c3bff06eba9f18e7800516344c, created 2026-11-16T04:25:35Z).

Two jobs failed:

Job Step Failure
browser acceptance (MOB-00) Run browser acceptance (MOB-00 contract test) expect(locator).toBeVisible() — element(s) not found
aggregator tests and typecheck Run aggregator tests 1/2746: a beforeEach/afterEach hook timed out for this test (5000ms)

The browser job is the consistent breakage: the preceding run 43803736802 (head 1fbf3927) fails the same assertion, and the job has failed in every run that contained it since it was added (~2026-11-13). The hook timeout is a one-off flake (see last section).

Browser failure

Error: expect(locator).toBeVisible() failed
Locator: locator('#queue-main article.card').filter({ hasText: 'Dispatch trial: doc/README.md starting point (#762)' }).first()
Expected: visible
Timeout: 10000ms
Error: element(s) not found
  at test/browser/mobile-work-view.spec.ts:66:22

The retained error-context.md page snapshot from the failed run still shows text: Loading queue… under heading "Queue visibility" — i.e. the queue shell never hydrated. The trace network log for the run contains /queue, /assets/datastar.js, /assets/freshness-client.js, /freshness/stream — and no request to /frag/queue at all.

Root cause

The fragment containers are bootstrapped with data-on-load:

  • pm-stack/aggregator/src/render.ts:1740, 3572, 3832, 3909, 4109 (board, attention, today, queue, overview shells)
  • pm-stack/aggregator/src/server.ts:2536, 2567, 2612, 2636 (/frag/* responses)
  • pm-stack/aggregator/src/freshness-delivery.ts:102

data-on-load is not a Datastar v1 attribute; the vendored bundle is Datastar v1.0.0 (src/assets/datastar.js:1), where event listeners are data-on:<event> and one-shot initialization is data-init. load also does not fire on a div, so even as an event name it would never trigger. The attribute comes from the v0.21-era migration plan (.opencode/plans/htmx-to-datastar-migration.md:323 uses data-on-load__interval), and the bun tests only assert the string is rendered (test/boot.test.ts:144, test/frag-watchdog-1503.test.ts:34).

Consequence: the initial fragment fetch never happens. A page only hydrates when the freshness client dispatches dashrefresh (data-on:dashrefresh__window), i.e. when the SSE stream delivers a freshness/reset notice. On a quiet stream the page shows Loading queue… forever.

Reproduction (local, deterministic)

cd pm-stack/aggregator
PM_AGG_SOURCE=fixtures PM_AGG_DEV=1 PM_AGG_PORT=4797 PM_AGG_FRESHNESS_PORT=4897 bun run src/server.ts
  • curl /frag/queue → 200 with 11 article class="card" and the expected title; curl /queue → skeleton only. So the data/fragment side is fine.
  • Load /queue in a browser and block /freshness/stream: /frag/queue is never requested and #queue-main keeps <div class="skel">Loading queue…</div> for 11+s (observed). This is exactly the CI trace.
  • Load /queue with the stream live: /frag/queue is requested only after the client's reset handler fires (/api/freshness-events.json?after=0 first), ~1.6s in.
  • The MOB-00 spec passes locally with the same server when the stream happens to deliver a notice (system Chromium, playwright test with an executablePath override). That is why this only shows up as a CI failure: the check is asserting first-paint hydration, and first paint currently depends on a freshness event.

Suggested fix

  • Put the initial fetch on the shell placeholder with data-init="@get('/frag/...')" and keep data-on:dashrefresh__window="@get('/frag/...')" for refresh.
  • Do not add an immediate re-fetch trigger to the /frag/* response wrapper itself: ssePatch uses mode outer, so a data-init in the response would re-initialize on every patch and loop.
  • Update the tests that pin data-on-load (test/boot.test.ts:144, test/frag-watchdog-1503.test.ts:34) and, if useful, add a browser assertion that the queue fragment is requested without any freshness event (the MOB-00 spec already covers the outcome; making the stream unavailable in the harness would make the regression deterministic).

Verification

This workflow is dispatch-only by design (Drew's 2026-11-05 ruling, #6126) — do not add push/PR triggers. Verification is a workflow_dispatch run of pm-aggregator tests where browser acceptance (MOB-00) is green and aggregator tests and typecheck passes, plus cd pm-stack/aggregator && bun test locally.

Secondary: aggregator hook timeout

aggregator tests and typecheck failed once with (fail) (unnamed) [5000.10ms] ^ a beforeEach/afterEach hook timed out for this test (2745 pass / 1 fail, Bun v1.4.4). The same commit's sibling run passed this job. Treat as a separate flake to identify while in the suite (which hook/file owns the unnamed timeout), not as the reason main is red.

Activity

  1. dezren39
    added
    kind/ciCI/CD pipelines, workflows, and build automation
    task/triageQueue packet kind: verify, reproduce, and route this item
    source/ci-watchFiled by main-ci watch
    on Nov 16, 2026
  2. developing-today commented on Nov 16, 2026

    @developing-today
    developing-todayBot
    on Nov 16, 2026 – with developing.today
    Contributor
    More actions

    CODE-3849

  3. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    🤖 Agent note · fix session started

    • Agent: main-CI failure trigger (fleet)
    • Task: queue task 17410 in repo-health-code-pilot (queued)
    • Session: ses_e5e1d5924cbffegwdGR41jkepG on opencode-route/workhorse (detached)
    • Working tree: /home/user/git/fleet/ci-10605-code-pm-aggregator, branch queue/17410-main-ci-10605 (from origin/main b84c351)
    • Run: https://github.com/developing-today/code/actions/runs/43804024455

    Root cause is in the issue: data-on-load is not a Datastar v1 attribute, so /frag/* is only fetched after a freshness dashrefresh and first paint stays on the skeleton. The session is instructed to fix the bootstrap without introducing an outer-mode re-fetch loop, update the tests that pin the bad attribute, verify bun test plus a no-freshness browser proof, and open (not merge) a PR. It was told not to use the question tool while detached and not to push to main.

    The aggregator tests and typecheck job's single beforeEach/afterEach hook timed out (2745 pass / 1 fail) is treated as a separate flake, not the reason main is red.

  4. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 16, 2026
  5. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked (concurrent owner)

    • Agent: OpenChamber scheduled lane code-f (repo-worker-code), queue task 17410 in repo-health-code-pilot
    • Session: ses_e5e1d585a7cffe5YvC2atztrQW (OpenCode, laptop host)
    • Claimed at: 2026-11-16T04:40:18Z · parked at: 2026-11-16T04:41:39Z (retry in 30 min)
    • Conflict: session ses_e5e1d5924cbffegwdGR41jkepG ("main-CI failure trigger (fleet)") posted a fix-session note at 04:39:14Z and is actively editing /home/user/git/fleet/ci-10605-code-pm-aggregator on branch queue/17410-main-ci-10605 (6 files modified, mtimes 04:40:33–04:41:04Z, no commits yet, no PR open).
    • Action: no parallel PR created; the concurrent session's worktree/branch is the canonical work product. On resume the lane checks for a PR from that branch and either verifies/merges it or takes over the worktree if the session went idle without one.
    • Labels: work/assigned, queue/parked, status/parked (no status/in-progress — nothing in flight by this lane).
  6. developing-today
    added
    status:in-review
    on Nov 16, 2026
  7. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    Agent note — fix PR open. Session ses_e5e1d5924cbffegwdGR41jkepG, worker branch queue/17410-main-ci-10605 (base b84c351bbe).

    • PR: aggregator: bootstrap fragment shells with data-init, not data-on-load (#10605) #10608 — commit d3b1bb6f94
    • Root cause confirmed as filed: the shell placeholders bootstrapped /frag/* with data-on-load, which Datastar v1.0.0 never fires (the bundle's one-shot init plugin is data-init; the theme toggle at render.ts:580 already uses it successfully).
    • Fix: data-init="@get('/frag/...')" on the shells (queue/today/overview/board + the three attention sections), data-on:dashrefresh__window kept for refresh. The mode outer /frag/* payloads carry no init trigger, so a patch cannot re-fetch itself; the freshness re-mount frame uses data-init once because it patches a skeleton.
    • Tests: bun test → 2767 pass / 0 fail (213 files, bun 1.4.4); bunx tsc --noEmit clean. Tests now pin data-init and the no-loop property (shell has it, /frag/* payload has neither).
    • Browser proof with /freshness/stream blocked: /queue, /today and / each fetch exactly one fragment on first paint, no re-fetch after 2.5 s idle, exactly one more after a dispatched dashrefresh; /board is a full render and fetches none. The real MOB-00 spec passes locally (only its port changed; 4797 is held by another local instance).
    • Not verified: a real workflow_dispatch run of pm-aggregator tests (cannot be triggered from this session; workflow is dispatch-only per pm-aggregator-tests workflow: auto triggers BLOCKED on runner strategy (dispatch-only by Drew's ruling 2026-11-05) #6126) — that is the post-merge confirmation step.
    • Local-only caveat: with the default HOME, /quota blocks ~10 s on the live opencode DB, so test/boot.test.ts times out on this laptop; identical on unmodified b84c351bbe, and the suite is green with an isolated HOME (CI-like).
  8. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    CI-watch verification (trigger pass 04:54Z). Independently re-checked PR #10608 in the worker worktree rather than trusting the report:

    • ./node_modules/.bin/tsc --noEmit → exit 0 (clean).
    • bun test per file: freshness-delivery 21 pass / 0 fail, frag-watchdog-1503 4 pass / 0 fail, boot 17 pass / 0 fail (HOME=/tmp/ci-home10605, PM_AGG_FRESHNESS_PORT=14881).
    • grep data-on-load in pm-stack/aggregator/{src,test} → comments and negative assertions only; shells and the freshness re-mount frame carry data-init, /frag/* (outer mode) payloads carry none.
    • Diff: 6 files, +67/−22; PR MERGEABLE/CLEAN on base b84c351bbe.

    Caveats: the PR itself runs no CI checks (CodeRabbit NEUTRAL only), and a combined single-process run of the three files OOM'd Bun (7.9 GB) on the trigger host — per-file runs are clean, so no oracle failure, just a host-side resource limit. The authoritative green is a post-merge workflow_dispatch run of pm-aggregator tests.

    Left open on purpose: task 17410 stays parked until the PR merges (merge commit — origin/main has advanced to fb6d0164d9; do not rebase) and that dispatched run is green. Then close this issue and complete the task.

  9. dezren39
    added a commit that references this issue on Nov 16, 2026

    aggregator: bootstrap fragment shells with data-init, not data-on-load (

    bcb467e
  10. dezren39
    closed this as completedin #10608on Nov 16, 2026
  11. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 16, 2026
  12. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    main-ci-failure-trigger pass 2026-11-16T05:02Z: fix merged.

    • PR aggregator: bootstrap fragment shells with data-init, not data-on-load (#10605) #10608 merged as merge commit bcb467ece69b2e33ecee680dddf30c7862926775 at 2026-11-16T05:01:45Z (base main, mergeable CLEAN; no required checks on the PR).
    • Pre-merge re-verification in /home/user/git/fleet/ci-10605-code-pm-aggregator at head d3b1bb6f94: tsc --noEmit exit 0; bun test -> freshness-delivery 21 pass/0 fail, frag-watchdog-1503 4 pass/0 fail, boot 17 pass/0 fail. git merge-tree against origin/main fb6d0164d9 clean.
    • Post-merge green proof: pm-aggregator tests dispatched on main at merge SHA bcb467ece6 -> run 43807617852 (https://github.com/developing-today/code/actions/runs/43807617852), queued at 05:01:56Z.

    Issue stays open until that dispatched run is green, then it closes and queue task 17410 completes.

  13. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 16, 2026
  14. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    Queue lane code-f (repo-worker-code): task 17410 closed as already_done.

    • Claimed 2026-11-16T05:02:49Z; revalidation found the work already finished by the main-CI failure trigger session: PR aggregator: bootstrap fragment shells with data-init, not data-on-load (#10605) #10608 merged at 05:01:45Z (merge commit bcb467ece69b2e33ecee680dddf30c7862926775), issue closed COMPLETED at 05:01:47Z.
    • Verified merged state on origin/main at bcb467ece6: 6 files under pm-stack/aggregator (render/server/freshness-delivery + 3 tests); no data-on-load left in src (comments only), data-init shells present, tests assert not.toContain("data-on-load").
    • No parallel branch or PR was created; the worker worktree ~/git/fleet/ci-10605-code-pm-aggregator was left untouched.
    • Verification dispatch run 43807617852 (workflow_dispatch on bcb467ece6) was still queued at completion time; that run is owned by the main-CI tracker, not this queue task.
    • Queue labels cleared (status/parked, queue/parked, work/assigned); task terminal in repo-health-code-pilot.
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

    kind/ciCI/CD pipelines, workflows, and build automationsource/ci-watchFiled by main-ci watchstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

    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.