Skip to content

ci: publish orchestrator work, wait and preemption events to the hosted archive #2954

Closed

Description

@schlessera

Part of #2948 (task 6).

Context

bun scripts/ci-timings.ts record --event <file> --out <dir> records work-started/work-finished and wait-started/wait-finished pairs with opaque worker and task IDs (docs/process/ci-throughput.md:107-138; scripts/ci-timings.ts:559), but only into a local directory. Orchestrators run on several people's machines, so their events, including the preempted and admission waits that #2943 will emit, never reach the hosted archive.

Scope

Out of scope

Acceptance criteria

  • Publishing the same batch twice adds nothing the second time; proven by a test.
  • An event containing a hostname-like or absolute out-of-repository path value is refused before push; proven by a test.
  • Two machines publishing concurrently both land without loss; proven by a real concurrent push test.

Verification

Focused tests; a mutation that skips the screen makes the named test fail.

Contract impact

None.

2026-11-15: refreshed the local-recording citations against the implementation branch; scope and acceptance criteria are unchanged.

Activity

  1. added
    type: chore
    area: ci
    agent-ready
    on Oct 25, 2026
  2. added this to the 0.45.0 milestone on Oct 25, 2026
  3. added
    priority: p2
    on Oct 25, 2026
  4. self-assigned this
    on Nov 15, 2026
  5. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-a3b9e7b4. Branch: chore/2954-publish-orchestrator-events.

    Sibling inventory PR #4045 and runner-slot collector may touch timing tooling; collision inspection in progress.

  6. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Implementation is ready for the orchestrator's landing queue in draft PR #4053, head 99d841106d4d0b35b3be7a38beb407cc4feb9135.

    Local proof: 45 focused tests passed; real concurrent Git publishers both land, repeat batches are idempotent, and unsafe events are refused before push. The leakage-screen mutation failed on the expected privacy assertion and was restored. Build, typecheck with a 6 GiB Node heap, and check:pr passed; the PR holds the exact receipt (1,208 affected invariant tests). PR and issue milestone 0.45.0 were read back. No follow-up issues were filed.

    The claim is retained for landing. The merge queue owns candidate confirmation and merge; no hosted run was polled or awaited, and no integration confirmation was requested by this worker. Dedicated published-event inputs are events/<id>.json on refs/heads/brain-ci-metrics; daily compaction remains #2955's scope.

  7. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

    Merged in #4053 as 18d51eef3 through the integration lease (orchestrator merge queue for 0.45.0). Candidate confirmation passed on the exact head; the squash's own main run carries the post-merge heavy categories.

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

Metadata

Metadata

Assignees

Labels

agent-readyarea: cipriority: p2type: chore

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions