-
Notifications
You must be signed in to change notification settings - Fork 340
vcpkg ci: Parse ci.baseline.txt to determine regressions #345
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 30 commits into
microsoft:main
from
autoantwort:parse-ci.baseline.txt
Mar 24, 2022
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
c17e406
vcpkg ci: Parse ci.baseline.txt to determine regressions
autoantwort a555645
Fix bug and implement PASSING, REMOVE FROM FAIL LIST and --passing-is…
autoantwort fc2cbb5
Apply Nicole's CR
autoantwort 4671c2f
Merge branch 'main' into parse-ci.baseline.txt
autoantwort 7549a57
Fix build
autoantwort a3797dc
Fix Formatting
autoantwort 8fe0d2c
WIP
BillyONeal d9da60b
Merge remote-tracking branch 'origin/main' into parse-ci.baseline.txt
BillyONeal d5f0498
Extend SortedVector to allow merging different SortedVectors together.
BillyONeal 6aa5eaa
Merge remote-tracking branch 'origin/main' into parse-ci.baseline.txt
BillyONeal 81c0ccb
Move some parsing stuff into the cpp, add ParseMessages::exit_if_erro…
BillyONeal f573df3
Finish implementing parser in terms of ParserBase.
BillyONeal 13010c2
Tests and bugfixes!
BillyONeal 2bc6f62
Fix MacOS and Linux build failures.
BillyONeal f3dea2a
Remove std::cerr.
BillyONeal 1f41c11
Generate messages map
BillyONeal c207828
Try to fix macos and linux again.
BillyONeal b089a02
Ensure all named triplets are in the exclusions map.
BillyONeal 8eca723
Merge remote-tracking branch 'origin/main' into parse-ci.baseline.txt
BillyONeal 7f7b54e
Merge remote-tracking branch 'origin/main' into parse-ci.baseline.txt
BillyONeal bfbbe6e
Fix bad merge.
BillyONeal b99de1d
Require the caller to pass the predicate in sorted vector rather than…
BillyONeal e97eac1
Revert the match_until change.
BillyONeal 686d7cd
Merge remote-tracking branch 'origin/main' into parse-ci.baseline.txt
BillyONeal ffa2c8b
Revert "Require the caller to pass the predicate in sorted vector rat…
BillyONeal a3e92af
Localize --allow-unexpected-passing can only be used if a baseline is…
BillyONeal 463db01
Revert ref qualification of extract_Xxx functions.
BillyONeal 19ae76d
Simplify try_match_keyword.
BillyONeal c2a64a0
Merge remote-tracking branch 'origin/main' into parse-ci.baseline.txt
BillyONeal 319ab06
Add more tests requested by Robert.
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
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 |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| #pragma once | ||
| #include <vcpkg/fwd/ci-baseline.h> | ||
|
|
||
| #include <vcpkg/base/expected.h> | ||
| #include <vcpkg/base/sortedvector.h> | ||
| #include <vcpkg/base/view.h> | ||
|
|
||
| #include <vcpkg/packagespec.h> | ||
| #include <vcpkg/triplet.h> | ||
|
|
||
| #include <initializer_list> | ||
| #include <string> | ||
| #include <vector> | ||
|
|
||
| namespace vcpkg | ||
| { | ||
| struct CiBaselineLine | ||
| { | ||
| std::string port_name; | ||
| Triplet triplet; | ||
| CiBaselineState state; | ||
|
|
||
| friend bool operator==(const CiBaselineLine& lhs, const CiBaselineLine& rhs) | ||
| { | ||
| return lhs.port_name == rhs.port_name && lhs.triplet == rhs.triplet && lhs.state == rhs.state; | ||
| } | ||
|
|
||
| friend bool operator!=(const CiBaselineLine& lhs, const CiBaselineLine& rhs) { return !(lhs == rhs); } | ||
| }; | ||
|
|
||
| struct TripletExclusions | ||
| { | ||
| Triplet triplet; | ||
| SortedVector<std::string> exclusions; | ||
|
|
||
| TripletExclusions(const Triplet& triplet); | ||
| TripletExclusions(const Triplet& triplet, SortedVector<std::string>&& exclusions); | ||
| }; | ||
|
|
||
| struct ExclusionsMap | ||
| { | ||
| 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; | ||
| }; | ||
|
|
||
| std::vector<CiBaselineLine> parse_ci_baseline(StringView text, StringView origin, ParseMessages& messages); | ||
|
|
||
| SortedVector<PackageSpec> parse_and_apply_ci_baseline(View<CiBaselineLine> lines, ExclusionsMap& exclusions_map); | ||
| } |
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,16 @@ | ||
| #pragma once | ||
|
|
||
| namespace vcpkg | ||
| { | ||
| struct CiBaseline; | ||
| struct CiBaselineLine; | ||
| struct TripletExclusions; | ||
| struct ExclusionsMap; | ||
| struct ExclusionPredicate; | ||
|
|
||
| enum class CiBaselineState | ||
| { | ||
| Skip, | ||
| 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
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.