Skip to content

tests: CI network inventory kind 'npm' tripped the bare-launcher argv test (main red on every full-suite run) - #8586

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
fix/ci-network-inventory-npm-label
Nov 17, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
fix/ci-network-inventory-npm-label

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

tests/tools/test_maven_exe_4939.py::test_no_bare_launcher_argv_in_tests_tools fails on main (and on every PR whose CI merges with it): it flags any list or tuple literal whose first element is a Windows-shim launcher name, and the (kind, regex) table #8581 added to tests/tools/ci_network_inventory.py has a row starting with the constant "npm": a label, not an argv (ci_network_inventory.py:40). Main's own push checks do not run the full-suite part that includes this test, so main looked green while every PR going through the full suite went red (seen on #8585, which does not touch these files).

Fix: rename the kind to node-packages, regenerate docs/ci_network_inventory.md with python tests/tools/ci_network_inventory.py --write (one table cell), and follow the label in the kind test. Nothing else changes; the regexes and counts are identical.

Checks

test_maven_exe_4939.py and test_ci_network_inventory.py: 44 pass (the first failed on current main before the change, reproduced on a clean origin/main worktree); ruff and ruff format --check clean; change_classifier --check fresh; audit_check clean.

Type of change

  • Other: CI test fix; no engine change

Class / Sibling gaps

Class: a data label that equals a shim name trips an argv scan. Sibling gaps: (1) the scan matches any tuple that starts with a shim name; a future table with "yarn" or "mvn" as its first element will trip it the same way (the test could skip tuples whose second element is a call); (2) main's push CI does not run the full-suite part, so this class of break reaches main unseen.

Lessons for agents

  • A (label, ...) table whose label is a shim name (npm, mvn, gradle, yarn...) fails test_no_bare_launcher_argv_in_tests_tools: name the label so it is not exactly a shim.

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRveGdV73aUiuqkipAic

…y test_maven_exe_4939

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.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRveGdV73aUiuqkipAic
@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 enabled auto-merge (squash) November 17, 2026 21:06
@squid-shepherd
squid-shepherd Bot merged commit 9ee2dc9 into main Nov 17, 2026
31 checks passed
@squid-shepherd
squid-shepherd Bot deleted the fix/ci-network-inventory-npm-label branch November 17, 2026 21:45
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