Skip to content

ci/request-reviews: fix headRef to point to the PR head#348004

Merged
philiptaron merged 1 commit intoNixOS:masterfrom
linj-fork:pr/fix-headRef
Oct 11, 2024
Merged

ci/request-reviews: fix headRef to point to the PR head#348004
philiptaron merged 1 commit intoNixOS:masterfrom
linj-fork:pr/fix-headRef

Conversation

@jian-lin
Copy link
Copy Markdown
Contributor

@jian-lin jian-lin commented Oct 11, 2024

Previously, headRef points to the master branch of Nixpkgs, which basically means no code owner review will be requested.

The problem can be verified using the following command.

$ DRY_MODE=1 ./ci/request-reviews/request-reviews.sh NixOS/nixpkgs 347973 ci/OWNERS
[...]
This PR touches 0 files
Requesting reviews from: {
  "reviewers": []
}
[...]

Additionally, the comment about conflicts is removed thanks to the unambiguous way of specifying ref.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • 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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

Add a 👍 reaction to pull requests you find important.

Previously, headRef points to the master branch of Nixpkgs, which
basically means no code owner review will be requested.

The problem can be verified using the following command.

$ DRY_MODE=1 ./ci/request-reviews/request-reviews.sh NixOS/nixpkgs 347973 ci/OWNERS
[...]
This PR touches 0 files
Requesting reviews from: {
  "reviewers": []
}
[...]

Additionally, the comment about conflicts is removed thanks to the
unambiguous way of specifying ref.
Copy link
Copy Markdown
Contributor

@philiptaron philiptaron left a comment

Choose a reason for hiding this comment

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

Looks good to me. Silvan?

@jian-lin
Copy link
Copy Markdown
Contributor Author

jian-lin commented Oct 11, 2024

The fact that the Codeowner check of this PR passes without requesting any review also demonstrates the problem this PR tries to fix :)

@philiptaron
Copy link
Copy Markdown
Contributor

The Codeowner check of this PR passes without requesting any review also demonstrates the problem this PR tries to fix :)

I like it -- it's like a quine!

@philiptaron philiptaron merged commit 4fffca2 into NixOS:master Oct 11, 2024
@jian-lin jian-lin deleted the pr/fix-headRef branch October 11, 2024 22:33
@infinisil
Copy link
Copy Markdown
Member

Whut, I thought I used FETCH_HEAD.. Thanks for fixing!

This is a good example to show why just testing with PRs is not enough..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants