Skip to content

fix(impact): name the adapter runner when a repository has no test files - #217

Merged
adityankale190895 merged 2 commits into
DiffCI:mainfrom
FredApps:fix/test-universe-empty-reason
Nov 18, 2026
Merged

adityankale190895 merged 2 commits into
DiffCI:mainfrom
FredApps:fix/test-universe-empty-reason

Conversation

@FredApps

Copy link
Copy Markdown
Contributor

Fixes #216

graph.ts now records the runners of the language adapters that contributed in testUniverse.adapterRunners: go test, Maven, pytest and cargo test. impact.ts names them in the TEST_UNIVERSE_EMPTY reason after any declared frameworks. The text still matches the documented Repository declares … but no test files were discovered; full validation required entry. The blind-spot condition is unchanged.

Validation:

  • tests/repo/test-universe-empty-reason.test.ts fails on main and passes here.
  • npm run typecheck, npm test (1168 pass), npm run audit:boundary.

graph.ts sets testUniverse.blindSpot for a Go, Maven, Python or Rust repository without test files even when package.json declares no framework, and the TEST_UNIVERSE_EMPTY reason then read "Repository declares  but no test files were discovered". The adapters' runners are now recorded in testUniverse.adapterRunners and named in the reason.

Signed-off-by: FredApps <[email protected]>

@FredApps FredApps left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cross-review of 6d2005c.

Checked:

  • The fix matches #216. testUniverse.adapterRunners is filled from the same adapter list that already set blindSpot, so the fallback decision itself is unchanged. Only the reason text gains the runner name ("Repository declares Maven but no test files were discovered…"). The documented pattern in docs/using-diffci.md (Repository declares … but …) still matches.
  • The new test fails with src/ reverted and passes with the fix. tests/repo/test-universe-empty-reason.test.ts is listed in release-files.json. Commits are DCO-signed. The branch is level with main.

Fixed:

  • 065c8c0: added the // SPDX-License-Identifier: MIT header to the new test file.

Still open: none. CI is green on 065c8c0.

@FredApps
FredApps marked this pull request as ready for review November 18, 2026 00:56
@adityankale190895
adityankale190895 merged commit 1f05346 into DiffCI:main Nov 18, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty-test-universe fallback reason has a blank name for adapter repositories

2 participants