Skip to content

stdenv: Fix handleEvalIssue for error problems#496156

Merged
ConnorBaker merged 1 commit intoNixOS:masterfrom
tweag:rfc127-fix
Mar 11, 2026
Merged

stdenv: Fix handleEvalIssue for error problems#496156
ConnorBaker merged 1 commit intoNixOS:masterfrom
tweag:rfc127-fix

Conversation

@infinisil
Copy link
Copy Markdown
Member

This was an oversight in #478539 that became apparent in #494416:

If there's a failing problem in Nixpkgs packages, CI will call handleEvalIssue on it, but the problem error was missing a .reason.

Though even if it did have a reason, we need to do more to make sure we don't break any code that uses it, so the new code uses the problem kind as the reason, which happens to match with the reason for all expected problem kinds.

Things done

  • Wrote a test

This was an oversight in NixOS#478539
that became apparent in NixOS#494416:

If there's a failing problem in Nixpkgs packages, CI will call
handleEvalIssue on it, but the problem error was missing a `.reason`.

Though even if it did have a reason, we need to do more to make sure
we don't break any code that uses it, so the new code uses the problem
kind as the reason, which happens to match with the reason for all
expected problem kinds.
@nixpkgs-ci nixpkgs-ci bot requested review from a team, Ericson2314 and adisbladis March 3, 2026 09:40
@nixpkgs-ci nixpkgs-ci 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. 6.topic: stdenv Standard environment labels Mar 3, 2026
@ConnorBaker
Copy link
Copy Markdown
Contributor

@infinisil happy to merge if you want

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Mar 8, 2026
@infinisil
Copy link
Copy Markdown
Member Author

@ConnorBaker That would be great :D

@ConnorBaker ConnorBaker added this pull request to the merge queue Mar 11, 2026
Merged via the queue into NixOS:master with commit f57b6cd Mar 11, 2026
33 of 35 checks passed
@github-project-automation github-project-automation bot moved this to Done in Stdenv Mar 11, 2026
@infinisil infinisil deleted the rfc127-fix branch March 13, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: stdenv Standard environment 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. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants