Files
JakeHillion 21e0bc6b7f
commit-validation / validate-single-commit (pull_request) Successful in 4s
buildbot/nix-eval Build done. (1040 warnings)
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
buildbot-nix: don't block PRs on evaluation warnings
The `nix-eval` step escalates its result to buildbot's WARNINGS state
whenever `nix-eval-jobs` prints any `evaluation warning:` lines, and
`buildbot_gitea`'s `GiteaStatusPush` maps WARNINGS to the literal Gitea
state `warning` unless `warningAsSuccess=True` is passed. `buildbot-nix`
hardcodes its `FilteredGiteaStatusPush` constructor without that flag
and exposes no NixOS option for it, so any benign eval warning blocks
PRs that require `buildbot/nix-eval` as a status check.

Carry a one-line patch in `patches/buildbot-nix/` that flips
`warningAsSuccess=True`, and apply it by re-calling the upstream package
definition under `services.buildbot-nix.packages.buildbot-nix` and
swapping `src` via `pkgs.applyPatches`. The buildbot UI still shows the
WARNINGS step colour and `NixEvalWarningsFormatter` still appends the
`(N warning[s])` count to the Gitea status description.

Dropping the `buildbot/nix-eval` requirement would not be safe: a
top-level eval failure (flake/syntax error, early assertion) leaves
`BuildTrigger` unscheduled and emits no `buildbot/nix-build *` statuses,
so Gitea would have nothing to gate on.

Test plan:
- CI
- Confirmed `buildbot/nix-eval` reports a green tick with the warning
  count in the description for this flake's existing eval warnings,
  instead of blocking the merge
- Pushed a temporary syntax error in flake.nix (missing semicolon on
  `description`) and confirmed `buildbot/nix-eval` reported failure,
  proving real eval-step failures are still surfaced as blocking
2026-05-10 15:04:41 +01:00
..