-
Notifications
You must be signed in to change notification settings - Fork 335
Don't include features from skipped ports in CI runs. #1822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
BillyONeal
merged 25 commits into
microsoft:main
from
BillyONeal:ci-skip-baseline-features
Nov 13, 2025
Merged
Changes from 21 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
ce00d41
Add a test for not removing features from skipped ports, see related …
BillyONeal ddf8c35
Extract calculate_ci_requested_specs function and fix the bug.
BillyONeal 39579e5
Added test sanity check.
BillyONeal d2e5ab3
Merge remote-tracking branch 'origin/main' into ci-skip-baseline-feat…
BillyONeal 13fa6bc
Eliminate ExclusionsPredicate and extract RandomizerInstance.
BillyONeal 7da5f07
Deoptionalize package_abi()
BillyONeal 83286ec
fixup ci randomizer
BillyONeal ef28223
Simplify exclusionmap slightly, also record intentionally excluded sp…
BillyONeal 1177c7d
wip
BillyONeal f39e414
Update src/vcpkg/commands.ci.cpp
BillyONeal afe1b14
Apply suggestion from @ras0219-msft
BillyONeal babd750
Another @ras0219-msft suggestion
BillyONeal aaa0ea7
wip
BillyONeal 848b828
wip
BillyONeal fa9941a
wip
BillyONeal 63aa137
Merge remote-tracking branch 'origin/main' into ci-skip-baseline-feat…
BillyONeal ec5581a
Merge remote-tracking branch 'origin/main' into ci-skip-baseline-feat…
BillyONeal 5fa7e82
WIP every report mechanism working except msgCiBaselineUnexpectedFail…
BillyONeal 502ea32
Merge remote-tracking branch 'origin/main' into ci-skip-baseline-feat…
BillyONeal 52c149c
Fix remaining test failures, remove "all results" from the report at …
BillyONeal f3befa5
Test fixes. Note that CiBaselineUnexpectedPassCascade is deleted and …
BillyONeal 4ca3651
Use Throw-IfNonContains and add assertions for counts
BillyONeal 20ea65c
Merge remote-tracking branch 'origin/main' into ci-skip-baseline-feat…
BillyONeal 788d96d
Add xunit test.
BillyONeal 29ca402
Code review feedback from @ras0219-msft
BillyONeal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| skipped-depends:arm64-osx=skip | ||
| skipped-depends:x64-linux=skip | ||
| skipped-depends:x64-osx=skip | ||
| skipped-depends:x64-windows=skip | ||
| skipped-depends:x86-windows=skip |
1 change: 1 addition & 0 deletions
1
azure-pipelines/e2e-assets/ci-skipped-features/skipped-depends/portfile.cmake
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| message(FATAL_ERROR "This port is skipped and should not be attempted.") |
13 changes: 13 additions & 0 deletions
13
azure-pipelines/e2e-assets/ci-skipped-features/skipped-depends/vcpkg.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "name": "skipped-depends", | ||
| "version": "1.0.0", | ||
| "dependencies": [ | ||
| { | ||
| "name": "skipped-features", | ||
| "default-features": false, | ||
| "features": [ | ||
| "fail-if-included" | ||
| ] | ||
| } | ||
| ] | ||
| } |
4 changes: 4 additions & 0 deletions
4
azure-pipelines/e2e-assets/ci-skipped-features/skipped-features/portfile.cmake
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) | ||
| if ("fail-if-included" IN_LIST FEATURES) | ||
| message(FATAL_ERROR "The feature 'fail-if-included' should not be included.") | ||
| endif() |
9 changes: 9 additions & 0 deletions
9
azure-pipelines/e2e-assets/ci-skipped-features/skipped-features/vcpkg.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "name": "skipped-features", | ||
| "version": "1.0.0", | ||
| "features": { | ||
| "fail-if-included": { | ||
| "description": "This feature should cause a failure if it is included in the build." | ||
| } | ||
| } | ||
| } |
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,15 +42,8 @@ namespace vcpkg | |
| { | ||
| std::vector<TripletExclusions> triplets; | ||
|
|
||
| void insert(Triplet triplet); | ||
| void insert(Triplet triplet, SortedVector<std::string>&& exclusions); | ||
| }; | ||
|
|
||
| struct ExclusionPredicate | ||
| { | ||
| const ExclusionsMap* data; | ||
|
|
||
| bool operator()(const PackageSpec& spec) const; | ||
| bool is_excluded(const PackageSpec& spec) const; | ||
| }; | ||
|
|
||
| std::vector<CiBaselineLine> parse_ci_baseline(StringView text, StringView origin, ParseMessages& messages); | ||
|
|
@@ -69,6 +62,5 @@ namespace vcpkg | |
| BuildResult result, | ||
| const CiBaselineData& cidata, | ||
| const std::string* cifile, | ||
| bool allow_unexpected_passing, | ||
| bool is_independent); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. RE: Removal of the "independent" concept, see discussion #1830 |
||
| bool allow_unexpected_passing); | ||
| } | ||
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,11 @@ namespace vcpkg | |
| FileConflicts, | ||
| CascadedDueToMissingDependencies, | ||
| Excluded, | ||
| ExcludedByParent, | ||
| ExcludedByDryRun, | ||
| Unsupported, | ||
| CacheMissing, | ||
| Cached, | ||
|
Comment on lines
12
to
+17
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ras0219-msft These are the names you said you wanted to bikeshed, go for it |
||
| Downloaded, | ||
| Removed | ||
| }; | ||
|
|
||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually a change in behavior: before, a cascade implied by ci.baseline.txt behaved differently than a "surprise" cascade, the new behavior treats all cascades the same. I think the old behavior was a bug based on the fact that we were implementing how that stuff got reported multiple times and all cascades should be the same for reporting purposes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The red bits are changed.