Skip to content

CI network lint: shrink-only baseline for bare fetch steps and non-fatal advisory uploads (Part of #8424) - #8728

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8424-20261119T2355Z
Nov 20, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8424-20261119T2355Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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, keyed workflow|job|step|kind. A new bare fetch step, or an advisory-named upload that can fail the job, fails test_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.
  • Advisory rule: an upload-artifact whose step or artifact name says times, durations, timing, logs, preview, scorecard, summary or sarif must carry continue-on-error: true, unless a download-artifact in the same workflow reads it (a hand-off between jobs).
  • Converted to non-fatal: the 3 uploads in det-sweep.yml (proofs' logs x2, shard timings) and the test-times upload in mainframe-ground-truth.yml.
  • docs/ci_network_inventory.md regenerated (generated).

Class / Sibling gaps

Class: a CI step that fetches from the network without the ci_retry.sh wrapper, 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):

  • the 54 bare pip installs (.github/workflows/*.yml), then the 10 docker, 13 git-fetch, 27 gh-api steps
  • the 1 gh release download and the 1 maven step
  • the 7 remaining advisory uploads: blocker-baseline.yml, evidence-pages.yml, evidence-refresh.yml (x3), muninn.yml, referee-panel.yml

Sibling 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/tools suite (about 0.3 s). The workflow edits only add continue-on-error: true to 4 upload steps.

Verification

  • pytest tests/tools 5030 passed, 31 skipped; the tree-wide guard tests passed.
  • pr_gates.py --fast: 9/9 pass; audit_check.py: all clear.
  • --ratchets not run: no parser, golden or ledger input changed.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 20, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 20, 2026 00:31
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 20, 2026 00:42
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant