nixos-tests: Fix all tests #83

Merged
ma27 merged 3 commits from samueldr-at-cyberus/hydra:fix/nixos-tests.nix into main 2026-06-14 11:48:29 +00:00
Contributor

The first change is trivial enough that the credit is not needed, but I believe it's appropriate to cross-reference here.

An attempt was made at git cherry-pick -x, but other changes were conflicting. So the changes were undone and the same logical changes (%s/wait_for_job/wait_for_unit/g) were made.

(currently being) Checked with:

nix-build --expr '
    with import ./.;
    let
        pick = builtins.mapAttrs (_: v: v.${builtins.currentSystem});
    in
    builtins.concatLists (
        map builtins.attrValues (
            builtins.attrValues (
                pick
                { tests.${builtins.currentSystem} = pick hydraJobs.tests; inherit checks packages; }
            )
        )
    )
'

This is inelegant since the interface used with the Flake here is awkward, when wanting to run all hydraJobs.tests, since the lack of ${builtins.currentSystem} is leaking at different levels regarding the attribute sets at play. Oh well. Only handling the checks would miss running some of those integration tests.

wait_for_job was removed in https://github.com/NixOS/nixpkgs/commit/884c63fca9936fe06d00237bfeb7616f868c6d86

(Based on commit f5c9d19c9051de85eced0cff79d63c66db7af73c)

Co-authored-by: zowoq <59103226+zowoq@users.noreply.github.com>

There is an additional issue, where Lix seems to have lost the ability to use extra- options. See: lix-project/lix#1183.

This is affecting the integration test suite. So a workaround was added in this PR.


And on top of that, there is something fishy with the Gitea test. I don't know if it's correct that the statuses can be in a different order than expected. Though the NixOS Hydra sidestream seems to think it's fine.

The first change is *trivial enough* that the credit is not needed, but I believe it's appropriate to cross-reference here. An attempt was made at `git cherry-pick -x`, but other changes were conflicting. So the changes were undone and the same logical changes (`%s/wait_for_job/wait_for_unit/g`) were made. (currently being) Checked with: ``` nix-build --expr ' with import ./.; let pick = builtins.mapAttrs (_: v: v.${builtins.currentSystem}); in builtins.concatLists ( map builtins.attrValues ( builtins.attrValues ( pick { tests.${builtins.currentSystem} = pick hydraJobs.tests; inherit checks packages; } ) ) ) ' ``` This is inelegant since the interface used with the Flake here is awkward, when wanting to run all `hydraJobs.tests`, since the lack of `${builtins.currentSystem}` is leaking at different levels regarding the attribute sets at play. Oh well. Only handling the `checks` would miss running some of those integration tests. > ``` > wait_for_job was removed in https://github.com/NixOS/nixpkgs/commit/884c63fca9936fe06d00237bfeb7616f868c6d86 > > (Based on commit f5c9d19c9051de85eced0cff79d63c66db7af73c) > > Co-authored-by: zowoq <59103226+zowoq@users.noreply.github.com> > ``` * * * There is an additional issue, where Lix seems to have lost the ability to use `extra-` options. See: https://git.lix.systems/lix-project/lix/issues/1183. This is affecting the integration test suite. So a workaround was added in this PR. * * * And *on top of that*, there is something fishy with the Gitea test. I don't know if it's *correct* that the statuses can be in a different order than expected. Though the NixOS Hydra sidestream seems to think it's fine.
wait_for_job was removed in 884c63fca9

(Based on commit f5c9d19c9051de85eced0cff79d63c66db7af73c)

Co-authored-by: zowoq <59103226+zowoq@users.noreply.github.com>
samueldr-at-cyberus changed title from nixos-tests: wait_for_job -> wait_for_unit to WIP: nixos-tests: wait_for_job -> wait_for_unit 2026-06-10 16:32:43 +00:00
Author
Contributor

This took a hot minute to figure out, but there was more to fix than just that.

The TLDR is that lix-project/lix#1183 is affecting the integration test suite. So a workaround was added in this PR.

And on top of that, there is something fishy with the Gitea test. I don't know if it's correct that the statuses can be in a different order than expected. Though the NixOS Hydra sidestream seems to think it's fine.

This took a hot minute to figure out, but there was *more* to fix than just that. The TLDR is that https://git.lix.systems/lix-project/lix/issues/1183 is affecting the integration test suite. So a workaround was added in this PR. And *on top of that*, there is something fishy with the Gitea test. I don't know if it's *correct* that the statuses can be in a different order than expected. Though the NixOS Hydra sidestream seems to think it's fine.
samueldr-at-cyberus changed title from WIP: nixos-tests: wait_for_job -> wait_for_unit to nixos-tests: Fix all tests 2026-06-12 21:55:07 +00:00
ma27 approved these changes 2026-06-14 11:48:21 +00:00
ma27 left a comment
Member

Thanks!

Thanks!
ma27 merged commit 24fcc9bd49 into main 2026-06-14 11:48:29 +00:00
samueldr-at-cyberus deleted branch fix/nixos-tests.nix 2026-06-15 18:12:07 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/hydra!83
No description provided.