Skip to content

[Backport release-26.05] stdenv/problems: only run problem if it's not ignored#535856

Merged
MattSturgeon merged 7 commits into
release-26.05from
backport-519600-to-release-26.05
Jun 26, 2026
Merged

[Backport release-26.05] stdenv/problems: only run problem if it's not ignored#535856
MattSturgeon merged 7 commits into
release-26.05from
backport-519600-to-release-26.05

Conversation

@nixpkgs-ci

@nixpkgs-ci nixpkgs-ci Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Bot-based backport to release-26.05, triggered by a label in #519600.

Before merging, ensure that this backport is acceptable for the release.

Even as a non-committer, if you find that it is not acceptable, leave a comment.

Tip

If you maintain all packages touched by this pull request, and they are all located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this PR using the nixpkgs-merge-bot.

llakala added 7 commits June 26, 2026 23:21
The stats may be lying to me when they say that this saves 1.86% of
attrset lookups, and `?` may just not be accurately tracked. But at
worst, performance will stay the same, since the check will fail for all
non-broken packages. And who knows, maybe it does help, by nature of not
checking the value!

(cherry picked from commit 753e43c)
kind and name are more likely to stay the same. Doing this allows us to
cache the kind and name when calling the handler for a problem.

(cherry picked from commit 41bafcb)
A package failing an automatic problem (of which there's currently only
one) is rare. A package having meta.problems specified is even rarer.
Inlining the getName call to its two usages saves a thunk in the vast,
vast majority of cases, and I consider it to be worth it.

(cherry picked from commit 85e32af)
@nixpkgs-ci nixpkgs-ci Bot requested a review from llakala June 26, 2026 23:21
@nixpkgs-ci nixpkgs-ci Bot requested a review from infinisil June 26, 2026 23:26
@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 4.workflow: backport This targets a stable branch labels Jun 26, 2026
@MattSturgeon MattSturgeon added this pull request to the merge queue Jun 26, 2026
Merged via the queue into release-26.05 with commit 43e856a Jun 26, 2026
30 checks passed
@MattSturgeon MattSturgeon deleted the backport-519600-to-release-26.05 branch June 26, 2026 23:34
@github-project-automation github-project-automation Bot moved this to Done in Stdenv Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 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.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants