Skip to content

[staging-next] zug: disable failing test with gcc 16 - #567620

Merged
vcunat merged 1 commit into
NixOS:staging-nextfrom
whispersofthedawn:p/zug
Sep 28, 2026
Merged

vcunat merged 1 commit into
NixOS:staging-nextfrom
whispersofthedawn:p/zug

Conversation

@whispersofthedawn

Copy link
Copy Markdown
Contributor

gcc 16 changed the behavior of std::generate_anonical to match P0952R2, which changes some of the properties of random function output. the simple random_sample test relied on these properties, and now fails. an issue has been open upstream since may 2026, with no response. to work around this, we disable the offending test.

an alternative would be to build zug with -D_GLIBCXX_USE_OLD_GENERATE_CANONICAL to opt-out of this behavior, but given that this is somewhat fragile in general, it seems fine to just disable this test. there is another test with a custom deterministic engine to validate that the code isn't broken as well.

Things done

gcc 16 changed the behavior of std::generate_anonical to match P0952R2,
which changes some of the properties of random function output. the
simple random_sample test relied on these properties, and now fails. an
issue has been open upstream since may 2026, with no response. to work
around this, we disable the offending test.

an alternative would be to build zug with
`-D_GLIBCXX_USE_OLD_GENERATE_CANONICAL` to opt-out of this behavior,
but given that this is somewhat fragile in general, it seems fine to
just disable this test. there is another test with a custom
deterministic engine to validate that the code isn't broken as well.
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Sep 27, 2026
@vcunat
vcunat added this pull request to the merge queue Sep 28, 2026
Merged via the queue into NixOS:staging-next with commit 1e3fc96 Sep 28, 2026
31 checks passed
@whispersofthedawn
whispersofthedawn deleted the p/zug branch September 28, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants