Skip to content

ci: archive CI evidence beyond GitHub retention and backfill the current artifacts #2955

Closed

Description

@schlessera

Part of #2948 (task 3).

Blocked by #2951

Context

Artifacts and logs in a public repository are retained for at most 90 days, and from 2026-10-01 checks, workflow runs and statuses share that cap (GitHub changelog). The hourly collector uploads tmp/ci-timings/ as the ci-timings artifact with retention-days: 90 (.github/workflows/ci-timings.yml:40-47). The #2934 baseline window starts 2026-10-14, so it can no longer be recomputed from GitHub after about mid-January 2027. bun scripts/ci-timings.ts report already merges archived files recursively and refuses conflicting event IDs (docs/process/ci-throughput.md:30-47). actions/download-artifact v8 can download from another run with run-id and a token with actions: read.

Scope

  1. A daily workflow job that downloads the previous day's ci-timings artifacts, merges them with the existing compaction rules, and commits monthly compact files to the data ref named in the ci: record the evidence archive, delivery and cadence decision #2951 decision, with exact --force-with-lease, the leakage screen, and contents: write scoped to that job only.
  2. An immediate backfill: a manual dispatch that walks every currently available ci-timings artifact into the data ref, oldest first, idempotently.
  3. A --from-archive input to bun scripts/ci-timings.ts report that reads the data ref instead of artifacts.

Out of scope

Acceptance criteria

Verification

Focused tests for compaction, idempotence, concurrency and the screen; the recorded backfill run; the baseline recomputation output.

Contract impact

None.

Activity

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

    @schlessera
    OwnerAuthor

    Dependency #2951 is delivered in PR #4004, squash b22ca4b. The decision is docs/decisions/ci-evidence.md; its archive ref, layout, schema and publication boundaries now bind implementation. Removed the satisfied blocked label; this does not qualify archive implementation or backfill.

  5. self-assigned this
    on Nov 17, 2026
  6. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-44866164. Branch: chore/2955-ci-evidence-archive.

    collisions: closure-only overlaps with older draft PRs on the ci-timings tests; no path collision

  7. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Draft PR #4133 implements the daily compaction, the idempotent backfill walk, report --from-archive and archive --dir. It carries focused tests and mutation receipts. It uses Refs: acceptance criterion 5, the backfill dispatch on the default branch, can only happen after merge, and the steps are in the PR. For criterion 4, the baseline cannot be recomputed from retained artifacts, because the oldest one's window starts 2026-10-20T10:42Z. The PR explains each difference. Preserving that window from the Actions API before about 2027-01-12 is #4129. Follow-ups: #4130 (monthly blob size, needs a decision) and #4131 (directory report depends on file listing order).

  8. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Merged in #4133 as 2aefe8f3f 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.

  9. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Reopened: criterion 5 (the backfill) isn't done yet. The archive workflow shipped in #4133, but the backfill needs repeated dispatches. The first ci-evidence-archive backfill dispatch on main (run 44017122021, 2026-11-17) archived 435 sources in 9 commits to refs/heads/brain-ci-metrics and reports pending: 183. I'll dispatch it again after the hourly API quota resets, until it reports pending: 0, then link the runs on #2948 and close this issue.

  10. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Done: the last criterion, the backfill, finished with pending: 0 (runs 44017122021 and 44025547521, linked on #2948). The archive workflow and its tooling landed in #4133.

  11. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Merged in #4133 as 2aefe8f3f 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: p1type: chore

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions