pkgs/by-name: Enable gradual migration checks and add run-local.sh#274591
Merged
infinisil merged 8 commits intoNixOS:masterfrom Dec 21, 2023
Merged
pkgs/by-name: Enable gradual migration checks and add run-local.sh#274591infinisil merged 8 commits intoNixOS:masterfrom
pkgs/by-name: Enable gradual migration checks and add run-local.sh#274591infinisil merged 8 commits intoNixOS:masterfrom
Conversation
13 tasks
96acead to
1025f21
Compare
--base--base
This part of the CI can also be reproduced locally
1025f21 to
63a27c1
Compare
--basepkgs/by-name: Enable gradual migration checks and add run-local.sh
3f3080f to
cc0fe3b
Compare
This was referenced Dec 20, 2023
roberth
reviewed
Dec 20, 2023
Due to the check soon depending on the base branch (see `--base`), the CI check can't reasonably share all code with a local check. We can still make a script to run it locally, just not sharing all code.
Now that we have a script to run the check locally, there's no real need to output the information to reproduce anymore, which allows cleaning up the CI workflow. Furthermore, this prepares the CI workflow to be passed `--base`, as introduced recently.
This enables the ratchet checks for pkgs/by-name, allowing gradual migrations!
cc0fe3b to
1968bee
Compare
l0b0
reviewed
Dec 21, 2023
l0b0
reviewed
Dec 21, 2023
l0b0
reviewed
Dec 21, 2023
l0b0
reviewed
Dec 21, 2023
l0b0
approved these changes
Dec 21, 2023
- trace function, avoids littering `echo >&2` all throughout - Avoid `eval`, remove unneeded shellcheck Co-Authored-By: Victor Engmark <[email protected]>
b62b605 to
e130ee3
Compare
Member
Author
Member
Author
|
I'll merge this, because:
This allows me to proceed with finalising the next step for RFC 140: |
1 task
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.
Description of changes
After #272395 extended the
nixpkgs-check-by-nametool to have gradual migration checking, aka ratchet checks, this PR now enables them by passing the--baseflag to the tool.Furthermore, this is a really good opportunity to make the CI check runnable locally, solving #266931 as well as possible, replacing #266937.
Fundamentally it's impossible to make it fully reproducible because the base branch fetching/merging can't happen in the same way, but this PR makes everything be shared that can be shared between CI and the local run.
It's not perfect, but better than nothing.
Things done
Add a 👍 reaction to pull requests you find important.