Skip to content

ci: keep run-only artifacts for one day - #322

Merged
polaz merged 2 commits into
mainfrom
ci/#321-artifact-retention
Oct 27, 2026
Merged

polaz merged 2 commits into
mainfrom
ci/#321-artifact-retention

Conversation

@polaz

@polaz polaz commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Summary

CI uploaded about 4 GB of artifacts a day and kept them for a week, although they only serve inspection of a recent run.

  • benchmark-comparison, benchmark-smoke-* and every fuzz-* artifact (reproducers and the failed-run corpus) are kept for one day.
  • Benchmark Observatory deletes its github-pages artifact as the last step of the deploy job, after deploy-pages published it. Only that job gains actions: write.
  • The regression baseline is unaffected: CI reads it from the published Pages site, not from run artifacts.
  • docs/benchmarks.md states the retention.

Testing

  • node --test scripts/ci-cache.test.mjs scripts/compare-security.test.mjs scripts/ci-test-blocks.test.mjs scripts/fuzz-security.test.mjs: 40 passed. Two new contract tests pin the one-day retention of the named artifacts and the deletion after deployment.
  • The deletion step runs only on a default-branch observatory run; its first execution after merge is the live check.

Closes #321

Summary by CodeRabbit

  • Chores

    • Benchmark and fuzz evidence artifacts are now retained for one day rather than seven. Benchmark evidence is for reviewing recent runs and is not reused as the baseline for future comparisons.
    • The temporary Pages deployment artifact is now removed after deployment.
  • Documentation

    • Updated benchmark guidance to clarify artifact retention, reuse, and cleanup behavior.

CI uploaded about 4 GB of artifacts a day and kept them for a week,
although they only serve inspection of a recent run.

- benchmark-comparison, benchmark-smoke-* and every fuzz-* artifact
  (reproducers and the failed-run corpus) are kept for one day
- the benchmark observatory deletes its github-pages artifact after
  deploy-pages published it; the next run reads its regression
  baseline from the published site, not from run artifacts
- a workflow contract test pins both

Closes #321
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 8e5839d and b7ca3b6.

Files selected for processing: 6
  • .github/workflows/benchmark-comparison.yml
  • .github/workflows/benchmarks.yml
  • .github/workflows/ci.yml
  • .github/workflows/fuzz.yml
  • docs/benchmarks.md
  • scripts/ci-cache.test.mjs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

CI evidence artifacts now have one-day retention. The benchmark workflow deletes its github-pages artifact after Pages deployment. Documentation and workflow contract tests describe and check these changes.

Changes: CI artifact lifecycle

Layer / File(s) Summary
Artifact retention and cleanup
.github/workflows/benchmark-comparison.yml, .github/workflows/ci.yml, .github/workflows/fuzz.yml, .github/workflows/benchmarks.yml, docs/benchmarks.md, scripts/ci-cache.test.mjs
Benchmark and fuzz evidence artifacts now use one-day retention. After Pages deployment, the benchmark workflow looks up github-pages artifacts for the current run and deletes each returned artifact ID. The documentation describes the retention and cleanup behavior, and tests check the retention values and cleanup setup.

Priority: Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

Merge Risk: Minimal · up to b7ca3

The retention and Pages-artifact cleanup changes match the stated objectives with no established merge-blocking risk.

Pre-merge checks: Passed 4 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Issue #321 has three coding requirements. The implementation for two is verified at the reviewed head against the merge base:

1. One-day retention for named artifacts. Verified:
- `.github/workflows/…
Confirm the contract test coverage. Read scripts/ci-cache.test.mjs at the reviewed head. Confirm that it asserts retention-days: 1 for the benchmark-comparison, benchmark-smoke-*, and fuzz-* uploads. Confirm that it asserts the po…
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: reducing retention for run-only CI artifacts to one day.
Out of Scope Changes check Passed Every changed file maps to issue #321 or supports it:
- Workflow retention changes in benchmark-comparison.yml, ci.yml, and fuzz.yml implement the retention requirement.
- The deletion step and …
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi…
Full details: Out of Scope Changes check

Explanation

Every changed file maps to issue #321 or supports it:

  • Workflow retention changes in benchmark-comparison.yml, ci.yml, and fuzz.yml implement the retention requirement.
  • The deletion step and actions: write in benchmarks.yml implement the Pages artifact requirement. The permission is limited to the deploy job.
  • scripts/ci-cache.test.mjs is the contract test that the issue requires. Its content could not be read, so this check relies on the supplied change summary. The file does not alter behavior outside the named requirements.
  • docs/benchmarks.md documents the new retention. The PR states this. The change is documentation for the implemented behavior.

No change alters the regression baseline mechanism, which the issue excludes. The workflow diffs show no unrelated edits.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (5 skipped: 5 unsupported.)

Full details: Linked Issues check

Explanation

Issue #321 has three coding requirements. The implementation for two is verified at the reviewed head against the merge base:

  1. One-day retention for named artifacts. Verified:
  • .github/workflows/benchmark-comparison.yml: benchmark-comparison uses retention-days: 1 (was 7).
  • .github/workflows/ci.yml: both benchmark-smoke-* uploads use retention-days: 1 (was 7). These are the matrix upload and the benchmark-smoke-1.92.0-aws-lc-fips upload.
  • .github/workflows/fuzz.yml: both the fuzz-evidence upload and the fuzz-corpus-* upload use retention-days: 1 (was 7).
  1. Deletion of the github-pages artifact after deployment. Verified in .github/workflows/benchmarks.yml:
  • The deploy job gains actions: write.
  • A step after deploy-pages lists artifacts named github-pages for $GITHUB_RUN_ID. It deletes each one by ID.
  • The step runs only after deploy-pages succeeds. It does not run on failure.
  1. Workflow contract test pinning both behaviors (acceptance criterion 3). Not verified. The diff for scripts/ci-cache.test.mjs could not be read. The changed blob is missing from the checkout. The supplied summary says tests were added. The PR text reports 40 passing tests. Neither source shows the test content or result.

The regression baseline statement is non-coding documentation. It does not add a requirement.

Resolution

Confirm the contract test coverage. Read scripts/ci-cache.test.mjs at the reviewed head. Confirm that it asserts retention-days: 1 for the benchmark-comparison, benchmark-smoke-*, and fuzz-* uploads. Confirm that it asserts the post-deploy deletion step and the actions: write permission in the deploy job. The test-file blob must be available for this check.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T07:08:37.895490Z b7ca3b6 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@polaz
polaz enabled auto-merge (squash) October 27, 2026 07:07
@polaz
polaz merged commit 1817308 into main Oct 27, 2026
31 checks passed
@polaz
polaz deleted the ci/#321-artifact-retention branch October 27, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: keep run-only artifacts for one day

1 participant