Commit Graph

17 Commits

Author SHA1 Message Date
Atemu
973840b5c0
[24.05] ci/OWNERS: remove ckiee (#355113) 2024-11-11 03:44:07 +01:00
Atemu
170a7d4352 ci/OWNERS: remove ckiee
They're not part of the NixOS org anymore after they're removed themselves in
https://github.com/NixOS/nixpkgs/pull/323895. This makes CI fail on 24.05 now
though.
2024-11-11 03:22:20 +01:00
Fabián Heredia Montiel
69bb146aa9 OWNERS: Add fabianhjr to hardened kernel
- Widen the scope under pkgs
- Align like other parts of OWNERS file

(cherry picked from commit fddcebd426)
2024-11-07 08:42:31 +00:00
Silvan Mosberger
9c45f83174 ci/OWNERS: Remove removed path
Was removed in 7e73ead5d0, but only
started failing once it actually started getting checked with https://github.com/NixOS/nixpkgs/pull/348642
2024-10-26 17:37:00 +02:00
Silvan Mosberger
56e9a30c12 ci/OWNERS: Fix path of codeowners.yml
After https://github.com/NixOS/nixpkgs/pull/351446

(cherry picked from commit cd691f8864)
2024-10-26 16:56:01 +02:00
Silvan Mosberger
80202bd4fa ci/request-reviews: Avoid duplicates with different casings
It's possible to have different casings in OWNERS, so we need to handle
that

(cherry picked from commit e612b89953)
2024-10-15 01:06:13 +02:00
Lin Jian
9af45a7f85 ci/request-reviews: fix headRef to point to the PR head
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.

(cherry picked from commit f4c6e1174c)
2024-10-15 01:06:10 +02:00
Silvan Mosberger
6e6a84a2a5 ci/request-reviews: Fix for branches starting with "pr"
Turns out if :<something> is passed, a local branch is updated, which
can conflict if the PR branch starts with "pr". I tried to avoid that
with the original code but apparently that didn't work!

https://github.com/NixOS/nixpkgs/actions/runs/11284183639/job/31384967152?pr=347822

    Fetching the PR commit history
    From https://github.com/linj-fork/nixpkgs
     * [new branch]            pr/kanata-add-version-check -> fork/pr
    error: cannot lock ref 'refs/remotes/fork/pr/kanata-add-version-check': 'refs/remotes/fork/pr' exists; cannot create 'refs/remotes/fork/pr/kanata-add-version-check'
     ! [new branch]            pr/kanata-add-version-check -> fork/pr/kanata-add-version-check  (unable to update local ref)
    error: some local refs could not be updated; try running

(cherry picked from commit 299a181477)
2024-10-15 00:45:07 +02:00
Silvan Mosberger
9115330873 ci/request-reviews: Make wrong base branch message hashes more transparent
Also, fix the description of the text

(cherry picked from commit c721e917ce)
2024-10-15 00:44:45 +02:00
Silvan Mosberger
b2bfec90cd CODEOWNERS: Switch to alternate mechanism
This effectively disables the native GitHub codeowners feature
and enables the new alternate codeowners mechanism introduced in
https://github.com/NixOS/nixpkgs/pull/336261

This means that:
- We can now declare users without write access as code owners!
- Targeting the wrong branch won't trigger mass pings anymore!

(cherry-picked from commit b01ca00aed)
2024-10-15 00:44:04 +02:00
Silvan Mosberger
59990c7e75 ci/request-reviews: Request reviews for individual team members
This makes this codeowner mechanism behave differently than the native
one, but there's no other way to avoid rerequesting reviews from teams
when a member already reviewed the PR.

(cherry picked from commit 1ff83b2c96)
2024-10-15 00:35:26 +02:00
Silvan Mosberger
16b54e1afb ci/request-reviews: Don't rerequest users that already reviewed
The automation should never rerequest reviews from users that already
reviewed the changes, which is what was happening before this change:

https://github.com/NixOS/nixpkgs/pull/347354#event-14570645380

Also reorder the arguments to make more sense

(cherry picked from commit 9a054bb9dd)
2024-10-15 00:35:23 +02:00
Silvan Mosberger
1a317c035c ci: Add codeowners validator
(cherry picked from commit 5695bf6cfe)
2024-10-15 00:29:46 +02:00
Silvan Mosberger
2eb82ca074 ci: Add review request scripts
Also post a comment in case base branch is wrong
  This guides newcomers in how to smoothly handle the potentially scary
  situation of having thousands of commits listed in a PR.

  While CI shows the same, people might not even look at CI if the PR
  looks botched.

(cherry picked from commit 369cfa02da)
2024-10-15 00:29:40 +02:00
Silvan Mosberger
4bedbf85a9 ci: Add default.nix with exposed pkgs
Allows reusing it in more places

(cherry picked from commit 1700d00588)
2024-10-15 00:29:20 +02:00
Silvan Mosberger
e9bd2f3c25 ci: reusable Nix format Nixpkgs pin
This is needed such that in the next commit, we can re-use the same
version from a shell.nix, allowing people to have a guaranteed matching
nixfmt version.

(cherry picked from commit b33ac05d04)
2024-07-15 17:49:04 +02:00
Silvan Mosberger
5f1fbdaff6 ci: init directory
This creates a new directory for all CI support files, will be populated
in future commits.

(cherry picked from commit 13599930cb)
2024-07-15 17:49:03 +02:00