Skip to content

systemd: enable tests#404902

Merged
ElvishJerricco merged 1 commit intoNixOS:stagingfrom
tweag:systemd-doCheck
May 10, 2025
Merged

systemd: enable tests#404902
ElvishJerricco merged 1 commit intoNixOS:stagingfrom
tweag:systemd-doCheck

Conversation

@balsoft
Copy link
Member

@balsoft balsoft commented May 7, 2025

It seems that the doCheck = false in the systemd derivation is outdated, as the tests now pass (at least on x86_64-linux).

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 the 6.topic: systemd Software suite that provides an array of system components for Linux operating systems. label May 7, 2025
@github-actions github-actions 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 May 7, 2025
@balsoft balsoft force-pushed the systemd-doCheck branch from 9089020 to dc7c116 Compare May 7, 2025 16:30
@flokli
Copy link
Member

flokli commented May 7, 2025

This needs to now target staging, due to the number of rebuilds. Please check the contribution guides to do the retargeting without pinging lots of people.

It seems that the doCheck = false in the systemd derivation is outdated,
as the tests now pass (at least on x86_64-linux).
@balsoft balsoft force-pushed the systemd-doCheck branch from dc7c116 to 3533346 Compare May 7, 2025 18:11
@balsoft balsoft changed the base branch from master to staging May 7, 2025 18:11
@github-actions github-actions bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. and removed 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 May 7, 2025
@nix-owners nix-owners bot requested a review from kloenk May 7, 2025 18:21
@ElvishJerricco
Copy link
Contributor

All the variants seem to build fine, and of course it shouldn't affect the build output itself in anyway. LGTM

@ElvishJerricco ElvishJerricco merged commit 70bd64b into NixOS:staging May 10, 2025
37 checks passed
@arianvp
Copy link
Member

arianvp commented Dec 18, 2025

Euhm what does this actually do? we're still passing tests=false to meson. So what is doCheck = true actually running? (Context: This is giving linker errors on 259 )

@balsoft
Copy link
Member Author

balsoft commented Dec 18, 2025

Hmm, this is interesting. I'll take another look.

arianvp added a commit to arianvp/nixpkgs that referenced this pull request Dec 18, 2025
Had to revert NixOS#404902 as it gives
linker errors. And I don't think the systemd tests work on NixOS anyway.
@arianvp arianvp mentioned this pull request Dec 18, 2025
14 tasks
@balsoft
Copy link
Member Author

balsoft commented Dec 18, 2025

Well, at least on 6fa7d77 (master as of me writing this comment), I can confirm that at least some tests are running fine as part of the checkPhase:

Ok:                231
Fail:              0
Skipped:           3

Maybe there's something weird going on with 259? I can take a look.

@arianvp
Copy link
Member

arianvp commented Dec 18, 2025

Interesting. Lets move the discussion to the 259 WIP PR. Perhaps it ran unit tests but not integration tests? Seems the systemd folks changed something in the meson that broke that use-case

@balsoft
Copy link
Member Author

balsoft commented Dec 18, 2025

Perhaps it ran unit tests but not integration tests?

Yes, this sounds likely.

LordGrimmauld pushed a commit to arianvp/nixpkgs that referenced this pull request Dec 29, 2025
Had to revert NixOS#404902 as it gives
linker errors. And I don't think the systemd tests work on NixOS anyway.
arianvp added a commit to arianvp/nixpkgs that referenced this pull request Jan 17, 2026
Had to revert NixOS#404902 as it gives
linker errors. And I don't think the systemd tests work on NixOS anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: systemd Software suite that provides an array of system components for Linux operating systems. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants