Skip to content

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

Closed

Description

@swapnilpaliwal-sd

Part of #1832.

axiomcode test-impact --files a.py b.py passes --files on to changed together with the named files, and changed reads it as one more named file. It is not source code, so it lands in the list of changed files outside every indexed language, and test-impact then looks for tests that mention a file called --files.

The usage line documents the named files as plain positional arguments (test-impact [<repo>] [<file>…]). --files should be accepted as a synonym for them, not passed through as a file name.

Repro, in any indexed repository:

axiomcode test-impact --files src/a.py src/b.py

Expected: the same answer as axiomcode test-impact src/a.py src/b.py.

Root cause

main in plugins/axiomcode/skills/axiomcode/scripts/axiomcode-test-impact strips only --json, --why and --limit N from its arguments before handing the rest to axiomcode-changed. changed takes every argument left after its own flags as a named path (Changed.files), so --files arrives there as a path.

Activity

  1. added a commit that references this issue on Nov 19, 2026
  2. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor

    Closed by #2024, which merged into 0.2.4 and reached dev in 851bdc7.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpythonPythonskillAgent-facing query skill (skills/axiomcode)

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions