Skip to content

refactor: coerce leaf test modules into derivations #1999

Draft
eljamm wants to merge 3 commits intongi-nix:mainfrom
eljamm:refactor/module-composition-node-tests
Draft

refactor: coerce leaf test modules into derivations #1999
eljamm wants to merge 3 commits intongi-nix:mainfrom
eljamm:refactor/module-composition-node-tests

Conversation

@eljamm
Copy link
Contributor

@eljamm eljamm commented Jan 20, 2026

which is much simpler than collecting all the modules and converting them later on. The result is also easier to work with since it's either null or a derivation, as opposed to it potentially being a path or a module.

For now, tests are still passed to projects/tests.nix, which is fine since they should already be derivations. We will clean this up when we migrate away from hydrated-projects.

@eljamm
Copy link
Contributor Author

eljamm commented Jan 20, 2026

I think this works nicely, but one clear disadvantage is that this increases evaluation times for flake checks. Interestingly, the overview doesn't seem to be affected, which I think is because we're not accessing any attribute that would make it evaluate.

@eljamm eljamm force-pushed the refactor/module-composition-node-tests branch from b8d40ba to 2ce9eb9 Compare January 21, 2026 14:41
which is much simpler than collecting all the modules and converting
them later on. The result is also easier to work with since it's either
null or a derivation, as opposed to it potentially being a path or a
module.
This should be properly fixed in the future, but for now let's just get
these working.
@eljamm eljamm force-pushed the refactor/module-composition-node-tests branch from 15f2712 to 5d26747 Compare January 26, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant