Skip to content

maintainers: add script for checking unstable version strings#241428

Open
rhendric wants to merge 1 commit intoNixOS:masterfrom
rhendric:rhendric/check-unstable-version
Open

maintainers: add script for checking unstable version strings#241428
rhendric wants to merge 1 commit intoNixOS:masterfrom
rhendric:rhendric/check-unstable-version

Conversation

@rhendric
Copy link
Copy Markdown
Member

@rhendric rhendric commented Jul 4, 2023

This script is mainly to address complaints that the new unstable version format policy makes it difficult for PR reviewers to verify that an unstable version is correct.

Try it out on some recent PRs:

maintainers/scripts/check-unstable-version.sh 240960
maintainers/scripts/check-unstable-version.sh 241201
maintainers/scripts/check-unstable-version.sh 241393
Description of changes
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added the 8.has: documentation This PR adds or changes documentation label Jul 4, 2023
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jul 4, 2023
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
set -o errexit -o nounset -o pipefail
set -eou pipefail

Comment on lines 61 to 63
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creating a new worktree takes quite a bit of time on my machines. It would probably be a good idea to have an option to just use the current worktree.

@rhendric rhendric force-pushed the rhendric/check-unstable-version branch from aa4bdbe to 9ee76ce Compare July 4, 2023 16:00
@rhendric
Copy link
Copy Markdown
Member Author

rhendric commented Jul 4, 2023

@SuperSandro2000 Feedback addressed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please link to that file on GitHub, otherwise one has to do manual steps to find out details.

This script is mainly to address complaints that the new unstable
version format policy makes it difficult for PR reviewers to verify that
an unstable version is correct.
@rhendric rhendric force-pushed the rhendric/check-unstable-version branch from 9ee76ce to a3f7ac5 Compare July 4, 2023 17:19
@wegank wegank added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 2.status: merge conflict This PR has merge conflicts with the target branch labels Mar 19, 2024
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 20, 2024
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 8.has: documentation This PR adds or changes documentation 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants