-
Notifications
You must be signed in to change notification settings - Fork 300
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
Add x-test-features
and format-feature-baseline
#802
Add x-test-features
and format-feature-baseline
#802
Conversation
…tested instead of testing all "changed" ports
…ause the packages folder is deleted when a package fails
# Conflicts: # src/vcpkg/install.cpp
# Conflicts: # src/vcpkg/commands.ci.cpp
…stall to resolve racy access to the packages directory." This reverts commit 2fbb847.
... rather than attempting to rederive it several times. This clears the way for several actions that want to install the same package name with different feature sets (in microsoft#802 ) to not step on each others' toes.
... rather than attempting to rederive it several times. This clears the way for several actions that want to install the same package name with different feature sets (in microsoft#802 ) to not step on each others' toes.
…id an extra copy when it is unnecessary.
…fferent builds of the same package. Avoids different feature installs of the same package stomping on each other.
Tests are likely to fail without microsoft/vcpkg#44217 , but just pushed changes that remove the blocking. |
x-test-features
and format-feature-baseline
* Shorten switch names to drop "feature-" and "-test" implied by the command name being "test-features" * Deduplicate switch names with contractual-constants.h * Deduplicate some other constants with contractual-constants.h * seperatly -> separately * Name optionals "maybe_" when potential conflict with the not optional version of the same thing applies. * (Drive by) Make null_build_logs_recorder a plain ref.
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.
Please take a look at changes I pushed and let me know if they are OK.
The following are needed before this can merge:
Always use InstallPlanAction::package_dir #1604Allow vcpkg.exe to set CURRENT_ variables. vcpkg#44217(Billy to resurrect the docs PR tomorrow)
Thanks for the feature and sorry it took us forever to land it!
... rather than attempting to rederive it several times. This clears the way for several actions that want to install the same package name with different feature sets (in #802 ) to not step on each others' toes.
LGTM |
# Conflicts: # src/vcpkg/dependencies.cpp
Thanks again for the great, ahem, feature! Sorry it took us forever :( |
Docs PR resurrected microsoft/vcpkg-docs#455 |
It now fails with
when I run |
You need microsoft/vcpkg#44217 |
Thanks again! |
Introduces a new command
x-test-features
. It can be passed a list of port names or--all
to specify for which ports the tests should be run.The following tests are performed:
--no-core
)--no-separated
)--no-combined
)Feature which are unsupported or marked as cascade for the target triplet are skipped.
For every test only the necessary dependencies are installed (like vcpkg install in manifest mode).
The idea is to run the feature test for all ports that are changed by a PR.
Ports that cascade must be explicitly marked as cascade.
vcpkg format-feature-baseline scripts/ci.feature.baseline.txt
is a command to format the feature baseline to enforce that all entries in a "block" are sorted alphabetically.Docs: microsoft/vcpkg-docs#131
Fixes microsoft/vcpkg#13119
#908 reduce the needed ci time, this PR increases it again. So the actual change is not likely to be very large.