You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Declared inputs and alwaysRunTests find no pytest or Maven tests #271
In src/repo/impact.ts, knownTestPaths only collects graph nodes while iterating profile.tests, the JavaScript test locations. pytest and Maven repositories have none, so the list is empty:
every declared input in diffci.json fails with "Declared input ... selects no tests; full validation required", even when its tests glob matches real tests;
alwaysRunTests globs select nothing, so the listed tests are silently not run.
Repro: pytest repository (testpaths = ["tests"]) with diffci.json{"inputs": [{"files": ["data/model.bin"], "tests": ["tests/test_model.py"]}]}. Change data/model.bin. For the second case, set alwaysRunTests: ["tests/test_smoke.py"] and change any module.
Expected:tests/test_model.py is selected; tests/test_smoke.py is always added.
Actual: full fallback for the declared input; tests/test_smoke.py is missing from the affected tests. Maven (src/test/java/**) behaves the same.
This means the workaround mentioned in #255 falls back rather than selecting tests. Related: #162.
Activity