Skip to content

tests.problems: only match on the error message - #545182

Merged
MattSturgeon merged 2 commits into
NixOS:masterfrom
tweag:andir/meta-problems-fix
Jul 30, 2026
Merged

MattSturgeon merged 2 commits into
NixOS:masterfrom
tweag:andir/meta-problems-fix

Conversation

@andir

@andir andir commented Jul 24, 2026

Copy link
Copy Markdown
Member

This drops matching on the truncated stack trace marker as that only
appears if the stack trace is actually long enough. In some cases the
stack trace is simply too short so Nix prints it out entirely. Then
the tests fail and I'm unhappy.

This was caused by a90d993 which to the best of my understanding
forces the error message very early in the eval and thus doesn't have
a very long stack trace.

Unfortunately we do have to touch each of the expected output files but given that this should be more stable seems sensible.

Things done

andir added 2 commits July 24, 2026 11:39
This drops matching on the truncated stack trace marker as that only
appears if the stack trace is actually long enough. In some cases the
stack trace is simply too short so Nix prints it out entirely. Then
the tests fail and I'm unhappy.

This was caused by a90d993 which to the best of my understanding
forces the error message very early in the eval and thus doesn't have
a very long stack trace.
This drops the stack trace truncated marker from all the fixtures as
those aren't reliable. What we care about is the exact error message
and not the stack traces.
@andir
andir requested a review from infinisil July 24, 2026 09:48
@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. labels Jul 24, 2026
@MattSturgeon
MattSturgeon added this pull request to the merge queue Jul 30, 2026
Merged via the queue into NixOS:master with commit 204faf9 Jul 30, 2026
28 of 30 checks passed
@andir
andir deleted the andir/meta-problems-fix branch July 30, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants