Skip to content

[Performance] Measure remaining pkgs/id test runtime targets after nextest #15079

Done

Description

@dezren39

Follow-up to the incomplete performance work on #6378. PR #8032 adopted cargo-nextest for pkgs/id recipes and shards, but the original issue was closed before its timing targets were measured.

Evidence

Scope

Measure current-main pkgs/id test and CI legs on remote Fleet runners with production-equivalent web assets. Record the exact command, commit SHA, run handle/URL, elapsed time and result for unit, integration, E2E and NixOS VM tests, plus the PR CI path. Compare each result with #6378's thresholds and separate build/setup time from test execution time.

For each missed target, file and enqueue a separately scoped implementation issue with the measured bottleneck and a runnable done check. Preserve full test coverage; do not remove or weaken tests to meet a timing target.

Acceptance

  • Remote run evidence is recorded for every available test class and the CI path; an unavailable leg has its exact blocker recorded.
  • The results state whether the [Performance] Reduce Test Execution Time #6378 targets pass or miss on current main.
  • Every missed target has a scoped follow-up issue and live queue task, or the evidence proves all targets are already met.

Acceptance criteria

  • Remote Fleet-runner evidence is recorded for every available test class (unit, integration, E2E, NixOS VM) and the PR CI path: exact command, commit SHA, run handle/URL, elapsed time and result, with build/setup time separated from test execution time.
  • The results state explicitly whether each [Performance] Reduce Test Execution Time #6378 target passes or misses on current main (unit under 2 minutes, integration under 5 minutes, E2E under 10 minutes).
  • Any unavailable leg has its exact blocker recorded on this issue.
  • Every missed target has a separately scoped implementation issue and a live queue task, with the measured bottleneck and a runnable done check — or the evidence proves all targets are already met.
  • Full test coverage is preserved: no test is removed or weakened to meet a timing target.

Activity

  1. added
    kind/performance
    priority/normal
    effort/m
    meta/enriched
    on Nov 25, 2026
  2. dezren39 commented on Nov 25, 2026

    @dezren39
    MemberAuthor

    AUDIT-7 follow-up disposition: this issue tracks the unmeasured unit/integration/E2E/NixOS VM targets left after #8032. The audit measured the existing evidence and filed the follow-up; live queue task #23801 is enqueued for remote measurement and routing. No source issue was reopened.

  3. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    Claimed by felix lane (Muse sandbox seat, shortlist draw, 2026-11-25). Queue task 23801 noted; the broker tunnel is down so this proceeds as a direct shortlist slice. Plan: remote fleet-command timing runs on current main (51dd929) for unit (cargo nextest run --all-features --lib), integration (--tests), E2E (Playwright chromium) and the NixOS VM flake checks, with real web assets built first (web/dist is .gitkeep-only in the repo), build/setup time separated from test execution, each leg compared with #6378's targets (unit <120s, integration <300s, E2E <600s). Missed targets get scoped follow-up issues. Refs #15079

  4. added
    status/in-progress
    user/review
    queue/claimed
    work/assigned
    meta/protocol-gap
    on Nov 25, 2026
  5. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    ⚠️ Protocol gap — missing agent note. Task 23801 (repo-worker-code) holds a live claim on this issue, but no comment on the issue contains the required agent-note:v1 footer (protocol §2/§6). The holding agent did not leave the required agent note. Labels synced to the claim (queue/claimed + work/assigned + status/in-progress) and user/review + meta/protocol-gap applied — this gap needs a human/Muse review of why the protocol was not followed.

    🤖 Agent note · <state: picked up>

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-25 08:14 CST
    • Found via: monitor reconciliation
    • Task: Protocol-gap attention + label reconciliation for task 23801 (claimed, no agent note found).
  6. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    Measurement record — felix lane, 2026-11-25

    All legs measured remotely via fleet-command dispatches (developing-today/fleet) against developing-today/code main. Main moved during the pass; each leg's exact HEAD is listed. Real web assets were built before every Rust/E2E leg (scripts/build.sh assets debug, rc=0, ~17s, 6 dist files — web/dist is .gitkeep-only in the repo). Build/setup time is separated from test execution throughout. Executor facts: 4 cores, 16 GB RAM; cargo-nextest is NOT installed on the executor (supplied via nix shell nixpkgs#cargo-nextest); bun 1.4.5 is native.

    Leg Command Run HEAD Result vs #6378 target
    Unit (<120s) cargo nextest run --all-features --lib 45627992299 7103c55 MISS — 6129 passed / 0 failed / 19 skipped; nextest execution 358.03s (cold build + execution wall 759s)
    Integration (<300s) cargo nextest run --all-features --tests 45634325634 (also 45627992299, 45632134321) 2c81665 BLOCKED — does not compile on main: tests/dht_testnet.rs:32 E0308, dual n0_mainline versions (0.7.2 via iroh-mainline-address-lookup 0.6.1 vs 0.8.0 direct). Walls to failure 278–671s
    E2E (<600s) Playwright chromium, 8 specs, per-spec invocations 45636554405 d57bda6 MISS — VM-mode wiring (see blockers): 118 passed / 22 failed of 140; summed per-spec wall 1072s. Dominated by websocket (451s, 7 failed) and world-surface (239s, 0/5 passed)
    NixOS VM nix build .#checks.x86_64-linux.nixos-serve 45632121421 (also 45627185179, 45628440886, 45630006827) f78253f BLOCKED — build fails before any VM starts: fetchgit hash mismatch on the p2panda source (pin specifies sha256-yq+ySfo14ucU1BWOUdJM0n7/FL3+Ria3Z+MxMHFa4Ls=, got sha256-9QbbXbjFMwsGKCYV6BIPOnOqLegGFexDvoph79yNpOQ=; the fetched branch agent-next-24/delegated-auth-basis-071 moved). Walls to failure 84–354s. Note: /dev/kvm is also absent on this venue
    CI path — — — developing-today/code has no Actions workflow that runs the pkgs/id suite (13 workflows; none invoke nextest or the id tests). The operative gate is the fleet-command dispatch used here: unit leg end-to-end ≈ 759s command wall + ~2 min dispatch/prep on a cold cache

    E2E blockers found en route (both recorded with evidence in the runs above)

    1. Local mode cannot start (run 45631587542): playwright.config.ts starts two id servers (ports 4173/4174) sharing one data dir; server A answers HTTP 200, server B dies with Error: events.redb is open in another process. So the standard just test-e2e path is broken on current main independent of venue. The 1072s figure above used the config's VM-test wiring against one manually started server; specs shared that server, so failure counts are an upper bound (config note Stabilize shared-state failures in Firefox E2E CI #229: shared servers leak state between specs).
    2. The executor image lacks Chromium's system libraries (libglib-2.0.so.0 missing, run 45634707668); playwright install --with-deps fixes it in-place (the step runs as root, 16s) — no defect filed, noted here for future E2E dispatches.

    Verdict

    None of #6378's four timing targets is met on current main: unit misses ~3×, integration and VM legs are blocked by build breakage, E2E misses ~1.8× with failures. Scoped follow-up issues for each miss/blocker are filed and linked in the next comment; their queue enqueues are owed while the queue broker tunnel to amd-6 is down (same outage recorded across today's lanes) — task 23801 already covers this measurement slice. No tests were removed or weakened. Refs #15079

  7. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    Follow-ups filed from the measurement record

    One scoped issue per missed/blocked #6378 target:

    Queue enqueues for #15142–#15146 are owed: the queue broker tunnel to amd-6 (100.99.113.103:4801) is still down — a dry-run enqueue attempt for #15143 failed with 'tunnel to 100.99.113.103:4801: Resource temporarily unavailable (os error 11)'. Enqueue all five when the broker recovers.

    Task 23801 disposition: acceptance is met except the live-enqueue leg above, which is outage-blocked; leaving the task claimed for Felix to complete once the enqueues land. The duplicate twin #15078 can be closed as a duplicate of this issue. Refs #15079

  8. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    Contributor

    Update from the #15144 slice (felix lane, 2026-11-25): the p2panda fetch blocker is fixed by PR #15165 (stale outputHash from the pre-fork upstream source; remote run 45653278114 shows zero hash-mismatch lines and the nixos-serve build now progresses into compiling the id package). The VM leg is still not green: the build now reaches and fails on #15149's E0063 (writer_set_expansion authorization_actor), so the first VM-test timing for the #6378 target can only be recorded after #15149 lands and nixos-serve is re-run. Refs #15144 #15149

  9. 4 remaining items

  10. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Measurement reconciliation — oc-code-03, task 23801 (2026-11-26): corrected current-main retries are terminal on pinned SHA fec5b21. The three workflow runs check out this exact code SHA (not the Fleet runner repo HEAD).

    • Unit run 45904848768, command cd pkgs/id && nix shell nixpkgs#cargo-nextest -c bash -lc "time cargo nextest run --all-features --lib": failed before test execution after 3m53s command wall; compile error E0063, missing thread in id_store::chain::ChainExt at crates/id-events/src/event_store/persistence_tests.rs:95. Thus this attempt yielded no new unit runtime; previous measured unit result remains 298.311s, over the 120s target.
    • Full integration run 45904846100, cargo nextest run --all-features --tests: same E0063 compile blocker, failed before test execution after 5m38s command wall. No new integration runtime; prior complete run measured 714.4s, over the 300s target.
    • Crate-integration run 45904847093 completed successfully. Five selected just test-crate-integration recipes passed (1, 7, 1, 12, and 1 tests); per-recipe command wall times were 59s, 2m47s, 58s, 2m00s, and 1m55s (about 8m39s total). These selected recipe times are not a full integration-suite substitute; the prior full integration result remains the target comparison.

    The E0063 blocker is distinct from #15149, which is closed; #15079 records the exact reproducer and SHA here. No coverage was removed or weakened. Existing scoped follow-up coverage remains live: #15142 has task #24173 and #15146 has task #24174; #15143, #15144, and #15145 are closed. Prior E2E/VM/CI findings remain as recorded above; this pass adds no new VM/E2E timing.

    }
  11. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Triage verdict — any-o, 2026-11-26

    Valid, open, and already routed; no small fix or duplicate follow-up is needed. The current-main measurement ledger is complete for this pass (task 23801 is DONE). The performance targets remain unmet or blocked, so #15079 stays open as the umbrella evidence record while its scoped implementation slices finish.

    Fresh routing check:

    No extra issue/task was created: the remaining misses already have live implementation coverage.

  12. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    🤖 Triage verdict — oc-code-03, task 24921 (2026-11-26)

    Valid, open, and already routed; no duplicate issue or task needed. I checked the measurement ledger and current queue state. The latest record on #15079 says the prior runs either missed the targets or were blocked before producing a new runtime; it also records the remaining misses against #15142 (unit suite) and #15146 (E2E). Fresh queue reads show both implementation tasks are now CLAIMED and actively progressing (24173 and 24174). The other listed follow-ups (#15143, #15144, #15145) are closed.

    Keep #15079 open as the umbrella evidence ledger until the remaining performance work is resolved. The existing triage note remains accurate; this adds a current queue-state check. No new follow-up was filed, and no implementation or issue/PR state was changed.

  13. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · done (triaged) — 1837-A / task 25479

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

    @developing-today-fleet
    Contributor

    Picked up by repo-worker-code — 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 repo-worker-code posts progress markers; after 30 minutes of silence any other worker may pick this up.)

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

    @developing-today-fleet
    Contributor

    Completed by repo-worker-code (outcome: done). Triage complete: #15079 remains the measurement umbrella; existing active child tasks #24173/#24174 cover the remaining work. No duplicate task.

    Disposition: verdict invalid_no_work, checked_at 2026-11-27T01:50:06Z -- the record below passed the broker's offline disposition gate at completion time. The record's follow_up names task 24173: only the broker can check it against the queue, so it is recorded here UNCHECKED -- the broker runs check_successor_task on it when it returns.

    {
      "checked_at": "2026-11-27T01:50:06Z",
      "source": "fleet gh readback",
      "issue": {
        "number": 15079,
        "state": "open",
        "state_reason": null,
        "closed_at": null,
        "closed_by": null
      },
      "pulls": [
        {
          "number": 15185,
          "state": "closed",
          "is_draft": false,
          "merged_at": null
        }
      ],
      "verdict": "invalid_no_work",
      "follow_up": {
        "task_id": 24173,
        "reason": "#15079 is the performance evidence umbrella. Fresh read confirms #15142 (task 24173) and #15146 (task 24174) remain claimed with concrete next actions; #15143-#15145 are closed. Prior current triage records this routing; no duplicate follow-up."
      }
    }
    
  16. removed
    queue/claimed
    work/assigned
    on Nov 27, 2026
  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Enqueue leg closed out (Felix lane, 2026-11-29): the five follow-ups from this record were re-checked against the live queue and GitHub.

    Task 23801 itself completed 2026-11-26T23:00:08Z. The 'enqueues owed' note in comment 7166397661 is discharged — please do not re-owe it. Refs #15079

  18. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Census — lane CEN-C15, 2026-11-29 (full-census pass: body + all comments re-read firsthand; this comment is the current-state record for a cold pickup).

    Verdict: ready — tracker; acceptance substantially met. Scope forbids weakening coverage to hit timing targets; per-leg evidence requirements (command, SHA, run handle, elapsed) are exact.

    State: an "enqueues owed" note lingered after the enqueues were discharged — closed out today by the Felix lane; repeated here so it is not re-owed. Follow-ups: #15142 + #15146 OPEN with queue coverage; #15143/#15144/#15145 CLOSED. Remainder on this tracker = the final tally when the two open follow-ups land their done checks. No blockers.

    Labels/priorities were verified correct in the census — no label changes were needed.

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

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).

    STRENGTHS: The measurement umbrella did its job exactly as scoped: every leg measured remotely with command, SHA, run handle and elapsed recorded; build/setup time separated from execution; and each missed target got its own scoped follow-up rather than a comment thread — #15142 (unit), #15143 (integration compile), #15144 (VM fetch), #15145, #15146 (E2E). kind/performance + priority/normal already set.

    GAPS: None in the record. State today: #15143/#15144/#15145 are CLOSED; #15142 and #15146 remain open with queue coverage confirmed (felix close-out note today). This umbrella should stay open until the two surviving children close or the #6378 targets are formally re-baselined — it is the index that proves the targets were not silently dropped when #6378 closed.

    FIXES I APPLIED: None — labels and priority verified correct.

    REMAINS: Nothing for Drewry. Close when #15142 and #15146 close.

  20. added
    app/id
    on Nov 29, 2026
  21. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Gaps found

    • No app//area/ label at census time — added app/id.
    • Acceptance existed only as an inline '## Acceptance' heading, not as an ## Acceptance criteria section.

    Strengths

    Actions taken by this census

    • Labels added: app/id.
    • Appended an ## Acceptance criteria section to the body (original text unchanged).
  22. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note — stale takeover + closure by lane 1307-P (Archer seat, charlie ADVANCE 1307 end-of-run refill wave, older-pool stale takeovers), 2026-11-30.

    Claim-scan (live, this lane): issue OPEN, last activity = 2026-11-29 census notes (>24h, silent), no live claim — stale, drawable takeover per the work-loop core.

    Closure evidence, verified firsthand:

    The umbrella's own acceptance (remote evidence per leg, pass/miss stated vs #6378 targets, blockers recorded, follow-ups filed) is met on this thread. Closing as completed; remaining work lives in #15142. Key: 1307-P

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/performancemeta/enrichedmeta/protocol-gappriority/normalstatus/in-progressuser/review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions