Skip to content

retire docs/ci-evidence from master: 185 tracked run-metadata files (11.6 MiB) — migrate fixtures, delete, then ignore #2686

Closed

Description

@zackees

Follow-up to the attestation review (PR #2685 stops new dumps; this removes the
existing ones).

Problem

docs/ci-evidence/ holds 185 tracked files, 11.6 MiB of run metadata —
CI baselines, lane timings, apt inventories, flatpak capacity probes:

file size
2026-10-22-ci-cache-day-cohort.json.gz 3.0 MB
2026-10-22-speed-batch-baseline.json 2.26 MB
2026-10-22-ci-speed-day.json 1.21 MB
2026-10-22-cache-allocation-followup.json.gz 527 KB
2026-10-22-ci-performance-handoff.json.gz 458 KB

That is measurement output, not source: it belongs in Actions artifacts, a
side branch (the leaderboard pattern), or an issue/PR comment — never on
master. The attestations that actually gate CI are already commit-message
trailers
(Local-Gate: / Ci-Attestation:), so nothing here is needed for
trust.

docs/evidence/ in zccache (534 KB of HTML/txt timings) and
ci/fleet-evidence/ in soldr (146 KB) have the same shape and deserve the
same treatment in their own repos.

Why it can't just be deleted

  1. They are fixtures. These read the JSON files directly:
    • ci/cache_metrics.py
    • ci/test_cache_metrics.py
    • ci/test_tier2_cache_retention.py
    • ci/test_ci_scope.py
  2. Docs point at them: docs/ci-cache-audit-2026-10-17.md,
    docs/ci-speed-2026-10-21.md (and the docs/ci-speed-flatpak-* notes)
    cite paths under docs/ci-evidence/.
  3. ci/test_gitignore.py forbids ignoring tracked files — so
    /docs/ci-evidence/ can only be added to .gitignore after the files
    are gone. Until then, PR gitignore: never track CI evidence dumps (attestations stay in commit messages) #2685 covers the untracked scratch dirs only.

Plan (in order, one PR)

  • Move what the tests really need into small synthetic fixtures under
    ci/fixtures/ (inline literals or a few-KB JSON), keeping every
    assertion's meaning — do not weaken the checks.
  • Repoint the docs at the artifact/PR links (or drop the file paths and
    keep the numbers in prose).
  • Delete docs/ci-evidence/ (185 files) in the same PR.
  • Add /docs/ci-evidence/ to .gitignore once nothing tracked matches,
    extending ci/test_gitignore.py's GENERATED tuple so the rule stays
    pinned (same RED→GREEN shape as gitignore: never track CI evidence dumps (attestations stay in commit messages) #2685).
  • ./lint green for the touched suites (test_cache_metrics,
    test_tier2_cache_retention, test_ci_scope, test_gitignore).

History note

Deleting the files stops growth and removes ~11.6 MiB from every new
checkout, but git history keeps the blobs. Shrinking clones needs
git filter-repo (rewrites every SHA, breaks clones and PR refs) — not
recommended
for 12 MB; say so explicitly if the decision is revisited.

Out of scope

soldr/ci/fleet-evidence/ and zccache/docs/evidence/ — same policy, their
own issues, so each repo decides on its own fixtures.

Definition of done

  • git ls-files docs/ci-evidence | wc -l → 0.
  • /docs/ci-evidence/ in .gitignore with a test asserting it.
  • The four suites above pass without the JSON fixtures on disk.
  • No doc links a deleted path.

Activity

  1. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    New dumps are already blocked: PR #2685 (merged as c2af3f9) ignores /ci-evidence-*/ and /ci-evidence/ and pins it in ci/test_gitignore.py. This issue covers removing the 185 tracked files under docs/ci-evidence (migrate the fixtures first).

  2. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    /ready

    Claiming: retire docs/ci-evidence/ (185 tracked files, 11.6 MiB)

    1. One PR. RED: pin the retirement in ci/test_gitignore.py — it asserts git ls-files docs/ci-evidence is empty and that the directory is ignored; it fails on master today (185 tracked files). GREEN: migrate the three JSON snapshots the retention test reads into small synthetic fixtures under ci/fixtures/, keep every assertion's measured value, repoint the historical docs at the commit that last held the files, delete the 185 files, add /docs/ci-evidence/ to .gitignore.
    2. ./lint for test_gitignore, test_tier2_cache_retention, test_cache_metrics, test_ci_scope; first PR expected within the hour.
  3. added
    ready
    on Oct 27, 2026
  4. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Claiming: retire docs/ci-evidence (fixtures first, then delete + ignore)

    1. Migrate the three snapshots ci/test_tier2_cache_retention.py reads into ci/fixtures/ entries that keep the measured values; repoint the historical docs at the commit that last held the files; delete the 185 files; add /docs/ci-evidence/ to .gitignore and pin it in ci/test_gitignore.py (that pin is the RED commit).
    2. One PR, ./lint for the four touched suites.
  5. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Landed: #2693 merged at 21:10Z (2693 -> master) — the 185 snapshots under docs/ci-evidence/ are gone, the three snapshots ci/test_tier2_cache_retention.py reads are migrated to ci/fixtures/ with the measured values intact, and ci/test_gitignore.py pins git ls-files docs/ci-evidence empty plus the new ignore rule. Nothing left on the issue; closing.

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

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions