-
Notifications
You must be signed in to change notification settings - Fork 335
Test and and fix detection of ci regressions of independent ports #1830
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
Draft
dg0yt
wants to merge
2
commits into
microsoft:main
Choose a base branch
from
dg0yt:ci-independent-regression
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
1 change: 1 addition & 0 deletions
1
azure-pipelines/e2e-ports/ci-independent-regression/v1/regression/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 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
12 changes: 12 additions & 0 deletions
12
azure-pipelines/e2e-ports/ci-independent-regression/v1/regression/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,12 @@ | ||
| { | ||
| "name": "regression", | ||
| "version": "1", | ||
| "dependencies": [ | ||
| { | ||
| "name": "feature-fails", | ||
| "features": [ | ||
| "fail" | ||
| ] | ||
| } | ||
| ] | ||
| } |
1 change: 1 addition & 0 deletions
1
azure-pipelines/e2e-ports/ci-independent-regression/v2/regression/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 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
12 changes: 12 additions & 0 deletions
12
azure-pipelines/e2e-ports/ci-independent-regression/v2/regression/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,12 @@ | ||
| { | ||
| "name": "regression", | ||
| "version": "2", | ||
| "dependencies": [ | ||
| { | ||
| "name": "feature-fails", | ||
| "features": [ | ||
| "fail" | ||
| ] | ||
| } | ||
| ] | ||
| } |
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" IN_LIST FEATURES) | ||
| message(FATAL_ERROR "Failing, triggered by feature 'fail'.") | ||
| endif() |
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": "feature-fails", | ||
| "version": "1", | ||
| "features": { | ||
| "fail": { | ||
| "description": "fails to 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
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
I'm also really not a fan of trying to overload
RequestTypelike this because that controls a bunch of other settings, like whether default features are added:vcpkg-tool/src/vcpkg/dependencies.cpp
Lines 269 to 272 in d5c3552
as well as
--head/--editablehandling.(I know that once we have an
ActionPlanwe are out of dependencies.cpp but that this is already being used to track other things strongly suggests that it is not the right tool to track what you're trying to track here. If all we care about is "is the abi hash in parent_hashes" let's ask that question directly at reporting time rather than trying to smuggle it through this setting)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.
With parent hashes, we do know that ports are installed for different reasons. Tracking the reason in
RequestTypeseems a natural fit, not smuggling.AUTO_SELECTEDseems to perfectly explain why an independent port is part of the installation plan.I see that it might make sense to use the information already in the construction of the installation plan (i.e. "once, early").
Not relevant for
cicommand.So you suggest to process the parent hashes a second time in the build result reporting (i.e "late")?