Repository navigation
tests: CI network inventory kind 'npm' tripped the bare-launcher argv test (main red on every full-suite run) - #8586
Merged
Conversation
…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
Contributor
|
No description provided. |
1 similar comment
Contributor
|
No description provided. |
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.
Summary
tests/tools/test_maven_exe_4939.py::test_no_bare_launcher_argv_in_tests_toolsfails onmain(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 totests/tools/ci_network_inventory.pyhas 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, regeneratedocs/ci_network_inventory.mdwithpython 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.pyandtest_ci_network_inventory.py: 44 pass (the first failed on currentmainbefore the change, reproduced on a cleanorigin/mainworktree);ruffandruff format --checkclean;change_classifier --checkfresh;audit_checkclean.Type of 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
(label, ...)table whose label is a shim name (npm,mvn,gradle,yarn...) failstest_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