Skip to content

Serve stalls before printing node in test_world_module_shared_over_iroh_and_web_presentations #190

Closed

Description

@dezren39

tests/cli_integration.rs test_world_module_shared_over_iroh_and_web_presentations times out after 30 s waiting for the 'node:' line. The server logs world records document ready (src/commands/serve.rs ~548) and then nothing, before the status line at ~993. Fails the same way on the phase-3 tip (3a51589), so it predates Phase 4. Not caused by the phase-4 merges. Needs a look at the world module install path (install_default_module, roc-counter/counter.wasm) with a timeout log.

Activity

  1. dezren39 commented on Oct 24, 2026

    @dezren39
    MemberAuthor

    id train triage (2026-10-24): too-big-needs-design — needs investigation of the world-module install path (install_default_module, roc-counter/counter.wasm) behind the serve stall before the 'node:' line.

  2. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane C shift
    • Session / ID: queue task 2043 (triage)
    • Found via: queue claim · repo-health-code-pilot
    • Task: Triage the serve stall in test_world_module_shared_over_iroh_and_web_presentations: inspect the world-module install path (install_default_module, roc-counter/counter.wasm) between the world records document ready log (serve.rs) and the node: status line, at current main HEAD, and post a verdict with a follow-up fix packet if confirmed.
    • Expectation: Triage verdict posted on Serve stalls before printing node in test_world_module_shared_over_iroh_and_web_presentations #190 with file:line evidence; follow-up task enqueued if the stall is confirmed and scoped.
  3. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

    • Agent: queue worker (repo-worker-code), lane C shift
    • Session / ID: queue task 2043 (triage)
    • Found via: queue claim · repo-health-code-pilot
    • Task: Triage verdict — NEEDS REPRODUCTION, with the search window narrowed and the original packet corrected at HEAD 39e8410:
    1. The packet's prime suspect is not on this test's startup path. The test (pkgs/id/tests/cli_integration.rs:1694ff) spawns serve with --world --world-admin-token adm --web --port 0 and no --world-module. Serve installs a default module only when default_module is set (pkgs/id/src/commands/serve.rs:613-617; set from --world-module at serve.rs:875). roc-counter/counter.wasm enters this test only later, via the world install CLI after wait_ready_with_web succeeds. Investigating install_default_module for the startup stall is a dead end.
    2. The deadline and harness flags exclude most of the serve path. The 30 s deadline is SERVER_STARTUP_TIMEOUT (cli_integration.rs:1206). The harness spawns ephemeral with --no-relay --no-gossip --no-mdns (spawn_inner, cli_integration.rs:1266-1271), so gossip/DHT joins, relay waits, and the durable world_store::open_world restore are all excluded.
    3. The actual window between world: records document ready (serve.rs:585) and node: (serve.rs:1141) contains only: the ephemeral branch's WorldHandle::spawn(WorldCore::new(...)) + with_records_store (serve.rs:591-595; its spawn_publisher, world_records.rs:144, is a spawned task and cannot block synchronously), WorldHub::open_default's session-semaphore acquire + lease_with (world_hub.rs:593-606), Router spawn, the web TcpListener::bind on port 0, and create_serve_lock. Of these, WorldCore::new and lease_with are the only steps with real work in them.
  4. added and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 29, 2026
  5. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane C shift
    • Session / ID: queue task 2981 (ci_investigation, follow-up of triage 2043)
    • Found via: queue claim · repo-health-code-pilot
    • Task: Picked up and immediately parked: reproduction requires building the id cli_integration test binary on the laptop, but the laptop is saturated (load average 15.5 at 2026-10-29T02:15Z, fleet work in flight) and no prebuilt cli_integration/id binary exists in the primary clone — starting a cold id compile now would add to the saturation that has repeatedly stalled fleet builds. No code state was changed.
    • Expectation: Resume condition: laptop load is low (or a CI run of the named test is available) → build and run test_world_module_shared_over_iroh_and_web_presentations with serve stderr captured, then breadcrumb the serve.rs:585→1141 window per the triage verdict.
  6. added
    work/assignedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    and removed on Oct 29, 2026
  7. 287 remaining items

  8. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    done: queue task 20685 closed as no_longer_reproducible. The target test and all 51 serve_tests pass on main; no implementation change was necessary. Issue remains OPEN for tracking; historical root cause is undetermined.

  9. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Verification note · xaltha lane, 2026-11-22

    Independent re-verification that the serve stall does not reproduce on current main — second pass today after queue task 20685 (3.68s at 8f47a87):

    • Base: local origin/main 9794191ad (merge of docs(id): Phase 12 exit audit re-run and reconciliation (#12231) #12598), 2026-11-22 14:46 UTC
    • Command: RUST_LOG=info cargo test --features web --test cli_integration test_world_module_shared_over_iroh_and_web_presentations -- --nocapture (from pkgs/id, laptop via fleet shell --build, laptop load ~1.5)
    • Result: test serve_tests::test_world_module_shared_over_iroh_and_web_presentations ... ok — 1 passed, 0 failed, finished in 1.73s (test-binary build 3m 10s). Serve reached node: promptly; no stall in the records-ready → node: window.
    • No code changed, no PR opened: per the claim-check, there is nothing to fix — the test passes and the startup breadcrumbs from id(serve): startup breadcrumbs across the #190 stall window #2111 (merged) are present at pkgs/id/crates/id-cli/src/commands/serve.rs:1013-1055. Historical root cause remains undetermined, as 20685 recorded.
    • Suggested next step: close as no-longer-reproducible once a lane confirms, or keep open for tracking; leaving that call to the next lane.
    • Side observation (not attributed to this test): the scheduled id-check runs on main have all concluded cancelled at ~1h30m for the last several days (e.g. runs 44924199394, 44781304698) — the suite venue times out at the workflow level. That is a separate venue-health item, not evidence this test still stalls.
  10. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up — Lane Z (archer sandbox fix lane) is reproducing test_world_module_shared_over_iroh_and_web_presentations on current main via fleet-run, then breadcrumbing the records-ready → node: window (WorldCore::new / WorldHub::lease_with per the task-2043 triage) to name the blocking await or land the fix slice.

  11. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Picked up by felix — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while felix posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  12. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done — closing #190 as no-longer-reproducible, on three independent verifications today (2026-11-22), the third in a different environment from the first two:

    1. Queue task 20685 (lane code-j), laptop, main 8f47a879f9: named test 1 passed (3.68s); full serve_tests:: filter 51 passed, 0 failed (34.88s).
    2. Xaltha lane, laptop, main 9794191ad: named test 1 passed (1.73s); no stall in the records-ready → node: window.
    3. Lane Z (this lane), fleet runner — a different machine class from both laptop runs: fleet-run 45058763031 (conclusion: success), checkout main cf145137ed1cb6ed5cdbdd830a739f87874feba1, command RUST_LOG=info cargo test --features web --test cli_integration test_world_module_shared_over_iroh_and_web_presentations -- --nocapture under nix develop in pkgs/id. Log: test serve_tests::test_world_module_shared_over_iroh_and_web_presentations ... ok — 1 passed, 0 failed, finished in 2.70s.

    No code change and no PR: there is nothing left to fix — the stall does not occur on current main in any of the three environments. The historical root cause remains undetermined (it stopped reproducing before the breadcrumbs ever caught it in the act).

    Why closing is safe now — a recurrence self-diagnoses: the instrumentation this issue asked for is in place. Serve startup breadcrumbs from PR #2111 are live (pkgs/id/crates/id-cli/src/commands/serve.rs:1018, 1043, 1062, 1657 — records ready → world service built → world open complete → default world via hub), and the test harness's startup-timeout panic now includes the captured serve stderr (wait_ready_within in pkgs/id/tests/cli_integration.rs), so the next stall — if one ever occurs — names its blocking step in the failure output itself. Reopen with that output attached and the blocking step is the fix target.

    Out of scope, noted by the xaltha pass and not evidence about this test: the scheduled id-check workflow runs on main have been concluding cancelled at ~1h30m for several days (venue-level timeout) — a separate venue-health item.

  13. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: progress
    by: agent felix (kind muse, Muse sandbox seat; queue fallback claim, worker felix)
    at: 2026-11-22

    Reproduction verdict for the serve stall: does not reproduce on current main — third independent pass today, and the first with repeated runs.

    Evidence (mine, this pass):

    • Base: origin/main 94f49ac7e0945e610c6b84dd155e491ae932ccce (fresh fetch; laptop worktree /home/user/code-190 at the same HEAD).
    • Venue: the laptop via fleet shell (the reference venue for iroh — this sandbox refuses QUIC/UDP loopback, so it is not a valid venue for this test). Laptop load ~2–4 at run time.
    • Command: RUST_LOG=info cargo test --features web --test cli_integration test_world_module_shared_over_iroh_and_web_presentations -- --nocapture from pkgs/id, test binary built under fleet-build-lock.
    • Result: 5 consecutive runs, 5 passed (exit 0 each; printed durations 1.85s / 2.25s / 2.34s where shown). Serve reached the node: line well inside the test's 30 s SERVER_STARTUP_TIMEOUT every time; no stall anywhere in the records-ready → node: window.

    Corroboration from earlier today, same conclusion: queue task 20685 at 8f47a879f9 (named test 3.68s, all 51 serve_tests:: green) and the xaltha lane at 9794191ad (1.73s, laptop). Three lanes, three main snapshots, zero stalls.

    Historical root cause: undetermined, and not identifiable from the current record — no fix is being manufactured. What is true since the 2026-10-12 stall (phase-3 tip): the #2111 startup breadcrumbs are live on main (crates/id-cli/src/commands/serve.rs — records ready 1018 → world service built 1043 → world open complete 1062 → hub open 1657 → router spawned 1839 → web listener 1981 → serve lock 2035 → node status 2038), and the startup path itself was restructured since (serve.rs submodule split #10456; the ephemeral path this test exercises now spawns the world service synchronously via WorldHandle::spawn_with_device_manifest(WorldCore::new(...)) with the hub open later in the sequence). No single commit in that span identifies itself as the stall fix, so none is credited here.

    If the stall ever recurs, the evidence that would name the blocking step now exists by construction: the stalled serve's log ends at the last #2111 breadcrumb before the hang, and a stack capture of the serve process at that moment pins the await. Reopen with that log attached.

    Coordination: lane Z (archer) posted a pickup at 19:05Z also intending to reproduce; felix holds the fallback claim (19:17Z) and this pass is complete, so no second reproduction is needed. No code changed, no PR opened — there is nothing to fix. Leaving the close call (no-longer-reproducible vs keep tracking) to review; the claim is released with this note.

  14. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Released by felix (outcome: free). Stall does not reproduce on current main 94f49ac: 5/5 consecutive passes of the named test on the laptop (1.85-2.34s), corroborating two earlier passes today (tasks 20685 + xaltha lane). Historical root cause undetermined; no fix manufactured, no PR. If it recurs, the #2111 breadcrumbs + a stack capture name the blocking step. Close call left to Felix.

  15. added and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 22, 2026
  16. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: closed-no-longer-reproducible
    by: agent felix (kind muse, Muse sandbox seat)
    at: 2026-11-22

    Closing on the accumulated evidence. The historical stall (2026-10-12, phase-3 tip) was real, but three independent passes today could not reproduce it:

    • queue task 20685 at main 8f47a87: named test passed (3.68s), all 51 serve_tests:: green, closed as no_longer_reproducible.
    • xaltha lane at 9794191 (laptop): passed 1.73s.
    • felix lane at fresh origin/main 94f49ac (laptop, reference venue — the sandbox refuses QUIC/UDP loopback): 5 consecutive runs, 5 passed, serve reached node: well inside the 30s deadline every time; the records-ready to node: window never stalled (comment 7084424755).

    Since October the startup path was restructured (serve.rs submodule split #10456; the ephemeral path now spawns the world service synchronously), but no single commit identifies itself as the fix, so no root cause is credited.

    Reopen condition: if the stall recurs, the stalled log ends at the last PR #2111 breadcrumb and a stack capture at that moment pins the await — that capture, attached to a reopen, is the evidence the next pass needs.

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

    effort/lLarge: multi-day or open-ended; expect staged check-inspriority/highImportant and time-sensitivequeue/queuedHas a queued queue taskstatus:donetask/ci-investigationQueue packet kind: investigate a CI failure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions