Repository navigation
fix(impact): let declared inputs and alwaysRunTests select pytest and Maven tests - #272
Merged
adityankale190895 merged 2 commits intoNov 18, 2026
Conversation
… Maven tests knownTestPaths only checked graph nodes while iterating profile.tests, the JavaScript test locations. pytest and Maven repositories have none, so the known-test list was empty. Every declared input then failed with "Declared input ... selects no tests; full validation required", and alwaysRunTests globs silently selected nothing. Every graph node the test-file matcher accepts is now a known test, whether or not the profile lists JavaScript test locations. A declaration that matches no test still falls back. Signed-off-by: FredApps <[email protected]>
FredApps
commented
Nov 17, 2026
FredApps
left a comment
Contributor
Author
There was a problem hiding this comment.
Cross-review of 280e017.
Checked:
- The fix matches #271.
knownTestPathsno longer depends onprofile.testsbeing non-empty. It checks every graph node withisTestFileor a test-location glob, which is the same set as before wheneverprofile.testsis non-empty. So declared inputs andalwaysRunTestsnow find pytest and Maven tests, and the cost is the same nodes × locations. - The new test fails with
src/reverted (3 of 4 fail) and passes with the fix.tests/repo/declared-inputs-adapter-tests.test.tsis listed inrelease-files.json. The commit is DCO-signed. The branch is level with main. CI is green.
Fixed: nothing.
Still open: none.
…ffCI#270 The manifest is an unordered set, and the PRs listed above add their entries at the same line. Moving this entry one line away lets them merge in either order without a conflict. Signed-off-by: FredApps <[email protected]>
FredApps
marked this pull request as ready for review
November 18, 2026 01:07
This was referenced Nov 18, 2026
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.
Fixes #271
knownTestPathsnow considers every graph node that is a test file (isTestFile) or matches a profile test glob, instead of only nodes insideprofile.tests. Declared inputs andalwaysRunTeststhen see pytest and Maven tests. A declaration that matches no test still falls back.collectRouteVisitTestsuses the same list and can only gain tests.Validation:
tests/repo/declared-inputs-adapter-tests.test.ts: pytest and Maven declared inputs and pytestalwaysRunTestsfail onmainand pass here. The stale-declaration fallback case passes on both.npm run typecheck,npm test(1171 pass),npm run build,npm run audit:boundary.