893 Commits

Author SHA1 Message Date
Matt Sturgeon 88cc2017b8 ci/github-script/lint-commits: add more conventional commit prefixes (#544032) 2026-07-22 13:22:29 +00:00
Michael Daniels 4a45de05bd workflows: appease zizmor by installing npm pkgs from lockfile 2026-07-21 19:30:53 -04:00
Michael Daniels 1c28135859 ci/github-script/lint-commits: add more conventional commit prefixes
Fixes #543681
2026-07-21 19:11:43 -04:00
Johannes Kirschbauer 3154ec4542 ci/pinned: bump nixpkgs
nixdoc 3.1.0 -> 3.2.0, required for iterating on docs tooling
2026-07-21 15:43:55 +02:00
Ethan Carter Edwards 7eb5f48146 ci/github-script/bot: label llm-assisted PRs accordingly
Discussed in AGENTS.md debate PR

Assisted by https://regex101.com/, my brain, and love for humanity and free software

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2026-07-17 10:48:15 -07:00
Silvan Mosberger f26f7d4057 CI/owners: remove llakala from lib/systems and lib/licenses (#542020) 2026-07-15 05:13:39 +00:00
Eman Resu ac8397ea4d CI/owners: remove llakala from lib/systems and lib/licenses 2026-07-14 21:01:31 -04:00
nixpkgs-ci[bot] f255ed405b Merge master into staging-next 2026-07-07 18:41:28 +00:00
Philip Taron 6058d18ccd ci/eval: add opt-in instruction counting using perf (#538429) 2026-07-07 15:48:21 +00:00
Eman Resu 3fbb3ae435 ci/eval: add opt-in instruction counting using perf
Currently unused in comparisons - just collecting the data for
future use.
2026-07-07 10:48:38 -04:00
Matt Sturgeon 8d94c496e9 ci/treefmt: add gitMinimal for treefmt
treefmt needs git on the PATH for its default `tree-root` calculation,
`git rev-parse --show-toplevel`
2026-07-07 11:07:31 +01:00
Michael Daniels 5f07727588 Merge branch 'master' into staging-next 2026-07-05 21:41:03 -04:00
Yohann Boniface 17e2b865b6 maintainers: rename FlameFlag to _4evy (#538361) 2026-07-05 20:58:36 +00:00
K900 9430bbde0c Merge remote-tracking branch 'origin/master' into staging-next 2026-07-05 21:29:53 +03:00
Matt Sturgeon a6eeac86f7 ci: update pinned
Bumps nixpkgs-vet 0.3.2 → 0.3.4

https://github.com/NixOS/nixpkgs-vet/blob/main/CHANGELOG.md#034-2026-07-01
2026-07-05 15:01:24 +01:00
Jörg Thalheim 0ffdd818b5 ci: nix_2_28 → stable
Originally part of commit 07457776ad0ec171d6c728237b7cbe76685b6165
but dropped to avoid backporting #536372
2026-07-05 14:59:31 +01:00
Matt Sturgeon 37aac0fb06 ci/update-pinned.sh: import Nixpkgs relative to script
Paths within a --expr expression are relative to the script file,
while relative paths in NIX_PATH are relative to the caller's CWD.

We want the Nixpkgs import to be relative to update-pinned.sh itself,
so that it does not matter where it's executed from.

See https://github.com/NixOS/nixpkgs/issues/425551
2026-07-05 14:25:34 +01:00
4evy f179771c84 maintainers: rename FlameFlag to _4evy 2026-07-04 23:36:38 +03:00
nixpkgs-ci[bot] 0e1056cb37 Merge master into staging-next 2026-07-02 14:28:02 +00:00
Johannes Kirschbauer 645286a70f doc/ci: use docPkgs from ci keeps local and ci render output the same 2026-07-02 14:44:40 +02:00
nixpkgs-ci[bot] aac49c0eff Merge master into staging-next 2026-07-02 00:44:19 +00:00
Matt Sturgeon 3476904664 ci/eval: Allow disallowed attrs to depend on other disallowed attrs (#537051) 2026-07-01 22:45:28 +00:00
nixpkgs-ci[bot] c5a80d8625 Merge master into staging-next 2026-07-01 18:40:23 +00:00
Matt Sturgeon 2209cd3cfb ci: use nixos-render-docs from tree (#535702) 2026-07-01 15:39:55 +00:00
Johannes Kirschbauer 77ea5f7ed3 ci: use nixos-render-docs from tree
This adds the small cost of building 'nixos-render-docs', a small python package.
For the benefit of improved iteration speed during refinement of the docs rendering
See: https://github.com/NixOS/nixpkgs/pull/535662 for motivation
2026-07-01 17:07:47 +02:00
Silvan Mosberger bf80cf0f2e ci/eval: Allow disallowed attrs to depend on other disallowed attrs
With a dependency chain like

    a -> b -> c

it was not possible to e.g. add a `meta.problems.removal` to b, because that would cause b to be entirely unavailable as a dependency.

This PR slightly lifts that restriction by allowing both a and b to be marked with such a problem without causing a CI failure.

This is useful for:
- Having a problem on a package that needs to be removed but still has dependents (which then also need a problem)
- Having a problem on a package that is aliased under another attribute, which counts as a dependency
2026-06-30 16:12:39 +02:00
nixpkgs-ci[bot] 77e66ec830 Merge master into staging-next 2026-06-29 13:30:07 +00:00
Maximilian Bosch 5fd9527f61 nginx: add ma27 and leona to maintainers, remove inactive maintainers (#536585) 2026-06-29 10:33:26 +00:00
Leona Maroni 15a598bb64 ci/OWNERS: update nginx maintainers 2026-06-29 10:54:05 +02:00
nixpkgs-ci[bot] 45908f8f52 Merge master into staging-next 2026-06-29 00:46:48 +00:00
Martin Weinelt 4a5a56bca2 botamusique: drop
Upstream archived the repo mid-2024 and I killed my own instance because
it became unreliable. The NixOS test has also been failing for a while
now, so I conclude that nobody cares about this package any more.
2026-06-28 20:46:10 +02:00
K900 caea65bc86 Merge remote-tracking branch 'origin/master' into staging-next 2026-06-27 17:13:58 +03:00
Austin Horstman 23507e17e7 ci/owners: add NixOS/neovim for neovim doc
Make the @NixOS/neovim team the codeowner for the Neovim languages/frameworks documentation section.
2026-06-27 08:57:34 -05:00
Martin Weinelt 9ade44f1d4 Merge remote-tracking branch 'origin/staging' into staging-next
Conflicts:
- pkgs/top-level/nixpkgs-basic-release-checks.nix
2026-06-27 01:13:12 +02:00
Matt Sturgeon 288d25fabf Allow meta.problems while preventing internal use of certain kinds (#533376) 2026-06-26 21:44:52 +00:00
nixpkgs-ci[bot] 6ae65c089d Merge staging-next into staging 2026-06-26 07:20:26 +00:00
Philip Taron c2bf708c7c maintainers/test-driver: make maintainer-team github-based and add owners, rename from 'tests' (#535269) 2026-06-26 03:19:32 +00:00
nixpkgs-ci[bot] f5a1befabc Merge staging-next into staging 2026-06-25 18:46:42 +00:00
Matt Sturgeon f0b584346d ci/github-script/merge: surface auto-merge blockers in the bot's checklist (#513224) 2026-06-25 17:03:16 +00:00
Maximilian Bosch a742480e9f maintainers/test-driver: make maintainer-team github-based and add owners, rename from 'tests'
Renaming from `tests` to make it explicit that we're maintaining the
driver and not all tests.

As briefly discussed with Jacek & Kierán.
We rely on pinging each other / being pinged and that seems better.
2026-06-25 17:26:08 +02:00
Aliaksandr 0c1c3d4813 ci/github-script/merge: share reviews fetch with bot.js, drop events
`bot.js` already pulls reviews via GraphQL for the approval-count
labels. Move that fetch above the `handleMerge` call, add `commit
{ oid }` to the query, and pass the result through. `handleMerge` no
longer issues its own `listReviews` REST call.

While here, the `approvals` set is now derived from the same reviews
data. Two upsides:

- A reviewer who approved and was later dismissed no longer counts
  towards the approval check; their review now surfaces with state
  DISMISSED instead of leaving a stale `reviewed` event behind.
- `events` is no longer needed by `runChecklist` (it was only feeding
  the approvals filter); the parameter is dropped from both call
  sites. `handleMerge` still uses `events` for tracking the latest
  push and merge-command comments.

Also drop the redundant `user` truthy checks (and the stale "some
users have been deleted" comment) in `runChecklist`. The GraphQL
query uses `author { ... on User { login id } }` and bot.js then
filters via `r.user?.login`, so by the time reviews reach
`runChecklist` every entry already has a populated `user`. Verified
by querying real PRs: bots surface as `{__typename: "Bot"}` (no
`login`/`id`, filtered out by bot.js), and deleted accounts surface
as the "ghost" user (login `"ghost"`, id `10137`), which passes the
filter but matches no committer - harmless for both checks.

Assisted-by: claude-code with claude-opus-4-8[1m]-high
2026-06-25 18:05:32 +03:00
Aliaksandr 6f9325fb5d ci/github-script/merge: clarify Auto Merge follow-up tip
The previous tip ("Sometimes GitHub gets stuck after enabling Auto
Merge") didn't explain why nothing happens immediately after the bot's
"Enabled Auto Merge" reply, leaving maintainers unsure whether to wait
or intervene. Spell out that Auto Merge waits for required CI before
queueing, that a later CI failure leaves the PR un-queued until it is
fixed, and link to GitHub's documentation; keep the existing "leave
another approval" workaround for the rare cases where Auto Merge stalls
after CI completes.

Assisted-by: claude-code with claude-opus-4-8[1m]-high
2026-06-25 18:05:32 +03:00
Aliaksandr b94b44d3f9 ci/github-script/merge: refuse merge when a committer has requested changes
A "changes requested" review from a committer blocks both the merge
queue and auto-merge, but unlike approvals it isn't auto-dismissed
when new commits are pushed. Surface it as a checklist item so the
bot's reply explains the block instead of silently enabling
auto-merge that will never trigger.

Implementation pulls every review for the PR via `listReviews` and,
for each committer, takes the latest review whose state is
`APPROVED`/`CHANGES_REQUESTED`. The check fails if any committer's
latest stance is `CHANGES_REQUESTED`. Other review states fall out
naturally:

- A dismissed review surfaces as `DISMISSED`, so a committer
  dismissing their own changes-requested review unblocks the PR.
- A comment-only follow-up surfaces as `COMMENTED`, so it doesn't
  override an earlier actionable review - the prior stance still
  stands until the committer explicitly approves or requests changes
  again.

Assisted-by: claude-code with claude-opus-4-8[1m]-high
2026-06-25 17:57:03 +03:00
Aliaksandr da97bf8423 ci/github-script/merge: skip auto-merge when CI has already failed
The merge bot falls back to GitHub Auto Merge whenever the merge queue
won't accept a PR yet. That is the right move while CI is still
running, but pointless once CI has already failed: Auto Merge can never
trigger, and fixing CI requires a new push, which invalidates the merge
command anyway (the bot only acts on comments after the latest push).

Fetch the `no PR failures` commit status and, when the merge-queue
enqueue fails, branch on it. If CI has already failed
(`error`/`failure`), skip Auto Merge and reply that a fresh
`@NixOS/nixpkgs-merge-bot merge` comment is needed once CI is green
again. Otherwise (pending or missing status) enable Auto Merge as
before.

`merge()` now returns `{ reaction, messages }` so the CI-failure path
can leave a thumbs-down reaction rather than the rocket used for an
actual merge.

Closes #512554.

Assisted-by: claude-code with claude-opus-4-8[1m]-high
2026-06-25 17:57:03 +03:00
nixpkgs-ci[bot] 4516515e07 Merge staging-next into staging 2026-06-25 07:14:00 +00:00
Matt Sturgeon d2f2509d40 ci/treefmt: enable or-identifier rule (#534962) 2026-06-25 04:26:01 +00:00
nixpkgs-ci[bot] 3bd1331aeb Merge staging-next into staging 2026-06-25 00:45:52 +00:00
Silvan Mosberger 65761fc650 ci: add llakala as codeowner of performance-critical files (#535031) 2026-06-24 20:39:31 +00:00
Eman Resu 03dfff6fc2 ci/owners: add llakala as owner of key stdenv files 2026-06-24 14:10:35 -04:00
Eman Resu 92a06e9bba ci/owners: add llakala as owner of key lib files 2026-06-24 14:10:31 -04:00