Skip to content

sdl2-compat: 2.30.52 -> 2.32.52#386759

Merged
donovanglover merged 1 commit intoNixOS:masterfrom
MisileLab:sdl2_compat
Mar 8, 2025
Merged

sdl2-compat: 2.30.52 -> 2.32.52#386759
donovanglover merged 1 commit intoNixOS:masterfrom
MisileLab:sdl2_compat

Conversation

@MisileLab
Copy link
Contributor

https://github.com/libsdl-org/sdl2-compat/releases/tag/release-2.32.52

requires #383127 for build

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Mar 3, 2025
@nix-owners nix-owners bot requested a review from nadiaholmquist March 3, 2025 15:55
@wegank wegank added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Mar 3, 2025
@donovanglover
Copy link
Member

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 386759

Logs: https://github.com/donovanglover/nixpkgs-review-gha/actions/runs/13656511810


x86_64-linux

✅ 2 packages built:
  • sdl2-compat
  • sdl2-compat.dev

aarch64-linux

✅ 2 packages built:
  • sdl2-compat
  • sdl2-compat.dev

x86_64-darwin

❌ 2 packages failed to build:
  • sdl2-compat
  • sdl2-compat.dev

aarch64-darwin

✅ 2 packages built:
  • sdl2-compat
  • sdl2-compat.dev

@donovanglover
Copy link
Member

testtimer test is failing on x86_64-darwin

error: builder for '/nix/store/j6rlvy0w57g1szbd2qys27h5r759gnkm-sdl2-compat-2.32.52.drv' failed with exit code 1;
       last 25 log lines:
       >       Start 10: testthread
       >  7/13 Test  #9: testqsort ........................   Passed    0.03 sec
       >       Start 11: testtimer
       >  8/13 Test #11: testtimer ........................***Failed    0.74 sec
       > 2025-03-04 15:28:08.665 testtimer[39443:84722] Sanity-checking GetTicks
       > 2025-03-04 15:28:09.335 testtimer[39443:84722] ERROR: testtimer.c: Delta time erratic at iter 192. Delay 1ms = 101 ms in ticks, 101 ms in ticks64
       >
       >       Start 12: testver
       >  9/13 Test #12: testver ..........................   Passed    0.02 sec
       >       Start 13: testautomation
       > 10/13 Test  #2: testerror ........................   Passed    5.69 sec
       > 11/13 Test  #1: testatomic .......................   Passed    7.96 sec
       > 12/13 Test #10: testthread .......................   Passed   10.99 sec
       > 13/13 Test #13: testautomation ...................   Passed   12.91 sec
       >
       > 92% tests passed, 1 tests failed out of 13
       >
       > Total Test time (real) =  13.80 sec
       >
       > The following tests FAILED:
       >        11 - testtimer (Failed)
       > Errors while running CTest
       > FAILED: CMakeFiles/test.util
       > cd /tmp/nix-build-sdl2-compat-2.32.52.drv-0/source/build && /nix/store/09z9lbk25n46m7fb6snmsf2hipqw45pp-cmake-3.31.5/bin/ctest --force-new-ctest-process
       > ninja: build stopped: subcommand failed.

@nadiaholmquist
Copy link
Contributor

I can't reproduce that, though I'm trying it on aarch64-darwin building the x86_64-darwin package.

Perhaps this bit in the SDL3 package is relevant?

@marcin-serwin
Copy link
Contributor

Perhaps this bit in the SDL3 package is relevant?

This seems unrelated, it's about tests timing out, this one is just failing.

testtimer test is failing on x86_64-darwin

I was able to reproduce it using GitHub Actions:

error: builder for '/nix/store/j6rlvy0w57g1szbd2qys27h5r759gnkm-sdl2-compat-2.32.52.drv' failed with exit code 1;
       last 25 log lines:
       >       Start 10: testthread
       >  7/13 Test  #9: testqsort ........................   Passed    0.08 sec
       >       Start 11: testtimer
       >  8/13 Test #11: testtimer ........................***Failed    0.67 sec
       > 2025-03-07 23:56:56.858 testtimer[14049:46568] Sanity-checking GetTicks
       > 2025-03-07 23:56:57.509 testtimer[14049:46568] ERROR: testtimer.c: Delta time erratic at iter 83. Delay 1ms = 198 ms in ticks, 198 ms in ticks64
       >

Looking at the failing test's code, it just sleeps for 1ms and checks that less than 100ms passed after wake up. Given that OSs give no guarantee about the sleep duration it's entirely possible that this test fails for no reason. The GitHub actions machines are likely under a heavy load, being shared among GitHub users, so it's reasonable that the OS will give low priority to the tests thus making the sleeps take too long. Unless someone can reproduce it on their own machine under a normal load I would ignore it.

@donovanglover donovanglover added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Mar 8, 2025
@donovanglover donovanglover merged commit cdbd7e9 into NixOS:master Mar 8, 2025
30 checks passed
@MisileLab MisileLab deleted the sdl2_compat branch March 12, 2025 16:48
marcin-serwin added a commit to marcin-serwin/nixpkgs that referenced this pull request Mar 13, 2025
The slow tests rely on timers executing within a specified time which is not necessarily true if system is under a heavy load [1]. These tests are also disabled in the official CI pipeline [2].

[1]: NixOS#386759 (comment)
[2]: https://github.com/libsdl-org/sdl2-compat/blob/9544651fb39deefb2dd1aed9113af3b60898a1bb/.github/workflows/main.yml#L116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants