Repository navigation
Add ApiCompat conditional test scope - #55398
Merged
Merged
Conversation
Add an ApiCompat scope to test/ConditionalTests.props so the compatibility test projects are skipped on PRs that don't touch compatibility code, and add eng/Version.Details.xml as a global trigger path so dependency-flow PRs (which update that file) keep exercising all conditional scopes. Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new conditional-test scope to reduce PR validation time by running the Compatibility (ApiCompat/ApiDiff/GenAPI/PackageValidation/etc.) test suite only when relevant source/tests/assets change, while ensuring full coverage on non-PR CI builds.
Changes:
- Added
ApiCompatconditional test scope targetingtest/Compatibility/**/*.csprojwith triggers insrc/Compatibility/**,test/Compatibility/**, and specific test assets. - Added
eng/Version.Details.xmlas aGlobalTriggerPathsentry so dependency-flow updates force all conditional scopes active.
mthalman
approved these changes
Jul 21, 2026
This was referenced Jul 22, 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.
Related to #55203
Adds an
ApiCompatconditional test scope totest/ConditionalTests.propsso the Compatibility test suite (ApiCompat, ApiCompatibility, ApiDiff, GenAPI, ApiSymbolExtensions, PackageValidation) only runs in PR validation when relevant files change, reducing PR validation time.Scope definition
The
ApiCompatscope covers all test projects undertest/Compatibility/and triggers when any of the following change:src/Compatibility/**— the compatibility source components under testtest/Compatibility/**— the compatibility test projects themselvesApiCompatValidateAssembliesTestProject,GenAPITaskTestProject,PackageValidationTestProject)RunAlwaysis set toCIso the full suite always runs in non-PR (CI) builds.Global dependency-flow trigger
Adds
eng/Version.Details.xmltoGlobalTriggerPathsso every conditional scope runs on dependency-flow PRs. This is copied from #55397 so the two PRs aren't dependent on each other; that PR adds the full documentation for the trigger.