Repository navigation
CI network lint: shrink-only baseline for bare fetch steps and non-fatal advisory uploads (Part of #8424) - #8728
Merged
Conversation
…ry uploads (Part of #8424) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This was referenced Nov 20, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #8424. Builds on #8705 (
ci_retry.sh) and #8581 (the network inventory).Checklist: partial [c:2a39ee9b] -- the lint and the shrink-only baseline land here; the 106 bare steps (pip 54, gh-api 27, git-fetch 13, docker 10, 2 others) are converted in later slices
Checklist: partial [c:2f8322e8] -- the rule and its lint land here, 4 of 11 offending uploads converted; 7 remain in the baseline
What changed
tests/tools/ci_network_inventory.py:bare_keys,advisory_upload_offenders,baseline_problems, and--write-baseline(shrink-only: it never adds an entry).tests/ci_network_bare_baseline.json: 106 bare steps and 7 advisory uploads, keyedworkflow|job|step|kind. A new bare fetch step, or an advisory-named upload that can fail the job, failstest_every_bare_step_and_advisory_upload_is_in_the_baseline_and_the_baseline_only_shrinks. A fixed step still listed also fails, so the list only shrinks.upload-artifactwhose step or artifact name says times, durations, timing, logs, preview, scorecard, summary or sarif must carrycontinue-on-error: true, unless adownload-artifactin the same workflow reads it (a hand-off between jobs).det-sweep.yml(proofs' logs x2, shard timings) and the test-times upload inmainframe-ground-truth.yml.docs/ci_network_inventory.mdregenerated (generated).Class / Sibling gaps
Class: a CI step that fetches from the network without the
ci_retry.shwrapper, and an advisory upload that can fail a job. Both are gated by the same inventory classifier and baseline. Handled here: the lint for every fetch kind (pip, apt, node, toolchain, docker, maven, git, curl, gh-download, gh-api) and the advisory-upload rule.Remaining slices (one workflow group each, each deletes its baseline entries):
.github/workflows/*.yml), then the 10 docker, 13 git-fetch, 27 gh-api stepsgh release downloadand the 1 maven stepblocker-baseline.yml,evidence-pages.yml,evidence-refresh.yml(x3),muninn.yml,referee-panel.ymlSibling gaps: marketplace-action fetches (cache, setup-*) are retried by the action, not by us. gh-api steps need a different mechanism than a blind retry (pagination, non-idempotent writes).
CI cost
No new job or step, so runner-minutes per run are unchanged. The lint runs inside the existing
tests/toolssuite (about 0.3 s). The workflow edits only addcontinue-on-error: trueto 4 upload steps.Verification
pytest tests/tools5030 passed, 31 skipped; the tree-wide guard tests passed.pr_gates.py --fast: 9/9 pass;audit_check.py: all clear.--ratchetsnot run: no parser, golden or ledger input changed.🤖 Generated with Claude Code