Skip to content

fix(ci): stop benchmark-only changes from running all tests - #19988

Draft
Ankit Jain (radical) wants to merge 1 commit into
microsoft:copilot/update-ci-skip-patternsfrom
radical:radical-benchmark-selector-mapping
Draft

fix(ci): stop benchmark-only changes from running all tests#19988
Ankit Jain (radical) wants to merge 1 commit into
microsoft:copilot/update-ci-skip-patternsfrom
radical:radical-benchmark-selector-mapping

Conversation

@radical

Copy link
Copy Markdown
Member

Benchmark-only PRs fell through the selector's unattributed-file fallback and forced the full test matrix. The selector reported benchmark project files under:

Unattributed changed files
benchmarks/Aspire.Dashboard.Benchmarks/Aspire.Dashboard.Benchmarks.csproj

Both benchmark projects are outside the Aspire.slnx ProjectGraph, and no GitHub PR-CI job consumes either benchmark harness.

This classifies benchmarks/** as intentionally ignored by Layer 2, so benchmark-only changes select no tests or jobs instead of ALL. It also generalizes the real-map invariant to require every tracked project outside Aspire.slnx to be covered by a curated rule or a reasoned allow-list.

Verification

  • Infrastructure.Tests.TestTriggerMap: 218 passed
  • Enforcing selector probe with both benchmark project files: 0 unattributed files, 0 selected tests, no triggered jobs

Fixes #19986

Benchmark projects live outside Aspire.slnx, so Layer 1 cannot attribute
their files. With no curated map entry, benchmark-only changes reached
the unattributed-file fallback and selected the full PR test matrix even
though no PR-CI job consumes these harnesses.

Ignore benchmark harness paths in Layer 2. Generalize the real-map
invariant to require every tracked project outside Aspire.slnx to be
covered by a curated selector rule or a reasoned allow-list, so removing
this classification reproduces the ALL fallback regression.

Refs microsoft#19986

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a347e4e8-a096-468b-bf78-f88b648c20c1
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.

1 participant