Skip to content

plugin: test-impact --files names the files that follow it, and is not itself a file (#2022) - #2024

Merged
swapnilpaliwal-sd merged 3 commits into
0.2.4from
fix/test-impact-files-flag
Nov 19, 2026
Merged

swapnilpaliwal-sd merged 3 commits into
0.2.4from
fix/test-impact-files-flag

Conversation

@swapnilpaliwal-sd

Copy link
Copy Markdown
Contributor

Fixes #2022

Part of #1832.

What changed

axiomcode-test-impact drops --files with its other own flags (--json, --why, --limit N) before handing the arguments to changed. test-impact --files a.py b.py now reads a.py and b.py as named files, exactly as test-impact a.py b.py does, and --files no longer reaches changed as a path. The usage line shows the optional --files.

Why the goldens moved, or why they did not

No golden moved. No engine or rule change.

Evidence

tests/test_command.py replaces the call to changed and checks the arguments it receives:

  • without the fix: ['--files', 'a.py', 'b.py'], FAIL
  • with it: ['a.py', 'b.py'], plus --whole, because named files count whole. The file passes.

@swapnilpaliwal-sd swapnilpaliwal-sd added bug Something isn't working plugin the axiomcode plugin: skill + MCP layer labels Nov 18, 2026
…t itself a file (#2022)

`test-impact --files a.py b.py` handed `--files` on to `changed`, which took it as
one more named path; it is not source, so it was listed as a changed file outside
every indexed language and searched for by name in the tests. `--files` is now
dropped with the other test-impact flags, so the named files are read as they are
for `test-impact a.py b.py`. tests/test_command.py checks what reaches `changed`.
… keeps its own version)

0.2.3 is released, so what merges into this branch ships in 0.2.4. package.json (version and the five @axiomcode/engine-* pins) and the four editor plugin and extension manifests move from 0.2.3 to 0.2.4. The parser keeps its own version.
@swapnilpaliwal-sd
swapnilpaliwal-sd merged commit 851bdc7 into 0.2.4 Nov 19, 2026
13 checks passed
@swapnilpaliwal-sd
swapnilpaliwal-sd deleted the fix/test-impact-files-flag branch November 19, 2026 04:31
@swapnilpaliwal-sd swapnilpaliwal-sd mentioned this pull request Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working plugin the axiomcode plugin: skill + MCP layer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli: test-impact --files reads the flag as one more named file

1 participant