Skip to content

CI network inventory: every fetch step by kind and guard (Part of #8424) - #8581

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8424-20261117T1815Z
Nov 17, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8424-20261117T1815Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8424. Checklist: done [c:52afc1bf]

What

Inventory of every network step in .github/workflows/ (54 files): tests/tools/ci_network_inventory.py parses each step and classifies the fetch kind (pip, apt, npm, toolchain, docker, maven/gradle, git fetch/clone, curl/wget, gh download, gh api, grammar, artifact up/down, cache, setup-*) and its guard (wrapped via ci_retry.sh, advisory via continue-on-error, in-tool, action, bare). The generated docs/ci_network_inventory.md is the posted list; a test fails when it is stale, so the backlog can only change on purpose.

Counts (rows = workflow/job/step/kind): wrapped 45, advisory 73, in-tool 54, action 219, bare 110 (pip 58, gh-api 27, docker 10, git-fetch 13, maven/gradle 1, gh-download 1).

Class

An unmodelled network fetch in a workflow step or a tool a workflow calls. The class is swept as a classifier over all kinds, not one mechanism.

Sibling gaps (no burned-estate program needs these; all are infra/sweep scope)

  • 58 bare pip install steps (only the hash-pinned ones are wrapped).
  • 10 bare docker build/load steps for the oracle image (det-sweep.yml, equivalence-e2e.yml, cics-crucible.yml, ...): build runs apt, no ci_retry.sh.
  • 13 bare git fetch/clone (plan jobs, referee-panel installs).
  • referee-panel installs (Cobrix, Che4z, mapa: mvn, gh release download).
  • gh api steps (27) are advisory-by-nature but not marked non-fatal.
  • Artifact uploads: 37 are plain action (fail the step on a miss); only 4 are advisory (CI: a test-times artifact upload is non-fatal and bounded (Part of #8328) #8332 shape).
  • ports-compile.yml grammar prefetch (already EXEMPT in test_translator_pack_prefetch.py).

Remaining slices of #8424

  1. One wrapper (cache first, backoff, cause line); ci_retry.sh covers retry and the marker today.
  2. A lint that fails a bare fetch with a shrink-only list seeded from the doc.
  3. Advisory uploads non-fatal by rule.

Limits: line-level heuristic over parsed YAML, not a shell parser; docker run implicit pulls and fetches inside Python tools beyond the named TOOL_RETRY list are not counted.

Facts checked

pytest test_ci_network_inventory.py + test_ci_retry.py: 60 passed; audit_check.py: all clear; pr_gates --fast: 9/9 after change_classifier.py --write (docs_read_by_tests.txt, generated). No engine code touched: no golden bless.

Lessons for agents

A new doc under docs/ that a tools script reads needs change_classifier.py --write (docs_read_by_tests.txt) or pr_gates derived fails.

🤖 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 17, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 17, 2026 18:22
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 18:23
@squid-shepherd
squid-shepherd Bot merged commit da098b9 into main Nov 17, 2026
61 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8424-20261117T1815Z branch November 17, 2026 19:13
squid-shepherd Bot pushed a commit that referenced this pull request Nov 17, 2026
…y test_maven_exe_4939 (#8586)

test_no_bare_launcher_argv_in_tests_tools flags any list or tuple literal whose first element is a shim launcher name. #8581 added the
inventory's (kind, regex) table, whose npm row starts with the constant "npm": a label, not an argv. The full-suite part that runs
tests/tools failed on every PR since (main's push checks do not run that part, so main itself looked green). Rename the kind to "node-packages",
regenerate docs/ci_network_inventory.md, follow the label in the kind test.


Claude-Session: https://claude.ai/code/session_018srRveGdV73aUiuqkipAic

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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