Repository navigation
ci: keep run-only artifacts for one day - #322
Conversation
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
|
No actionable comments were generated in the recent review.
|
| 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:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Other
Possibly related PRs
- structured-world/xml-sec#318: Sets retention for the same benchmark and fuzz evidence artifacts.
- structured-world/xml-sec#319: Moves regression baseline reads to the published Pages site, a contract documented by this change.
- structured-world/xml-sec#291: Changes fuzz artifact paths and handling for the evidence and failure artifacts whose retention changes here.
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: 
4 · 
1
-
Failed checks: 1 inconclusive Passed checks: 4 passed-
Full details: Out of Scope Changes check
-
Explanation
Every changed file maps to issue
#321or supports it:- Workflow retention changes in
benchmark-comparison.yml,ci.yml, andfuzz.ymlimplement the retention requirement. - The deletion step and
actions: writeinbenchmarks.ymlimplement the Pages artifact requirement. The permission is limited to the deploy job. scripts/ci-cache.test.mjsis 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.mddocuments 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.
- Workflow retention changes in
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
#321has three coding requirements. The implementation for two is verified at the reviewed head against the merge base:- One-day retention for named artifacts. Verified:
.github/workflows/benchmark-comparison.yml:benchmark-comparisonusesretention-days: 1(was 7)..github/workflows/ci.yml: bothbenchmark-smoke-*uploads useretention-days: 1(was 7). These are the matrix upload and thebenchmark-smoke-1.92.0-aws-lc-fipsupload..github/workflows/fuzz.yml: both the fuzz-evidence upload and thefuzz-corpus-*upload useretention-days: 1(was 7).
- Deletion of the
github-pagesartifact after deployment. Verified in.github/workflows/benchmarks.yml:
- The
deployjob gainsactions: write. - A step after
deploy-pageslists artifacts namedgithub-pagesfor$GITHUB_RUN_ID. It deletes each one by ID. - The step runs only after
deploy-pagessucceeds. It does not run on failure.
- Workflow contract test pinning both behaviors (acceptance criterion 3). Not verified. The diff for
scripts/ci-cache.test.mjscould 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.mjsat the reviewed head. Confirm that it assertsretention-days: 1for thebenchmark-comparison,benchmark-smoke-*, andfuzz-*uploads. Confirm that it asserts the post-deploy deletion step and theactions: writepermission 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.
Comment @coderabbitai help to get the list of available commands.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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 everyfuzz-*artifact (reproducers and the failed-run corpus) are kept for one day.github-pagesartifact as the last step of the deploy job, afterdeploy-pagespublished it. Only that job gainsactions: write.docs/benchmarks.mdstates 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.Closes #321
Summary by CodeRabbit
Chores
Documentation