NixOS / ofborg

@ofborg tooling automation https://monitoring.ofborg.org/dashboard/db/ofborg
https://ofborg.org
MIT License
232 stars 166 forks source link

Build `tests.*` listed as changed paths #664

Open ShamrockLee opened 9 months ago

ShamrockLee commented 9 months ago

OfBorg currently build packages whose expression is changed directly by the PR, but not the affected downstream packages. But we could consider building changed derivations under tests.* even if their expressions are not changed directly, as they are meant to be tested.

I'm not sure if we would like to avoid running NixOS tests (as they would be expensive) inside OfBorg. If so, it would be better to get a way to detect if a test derivation is a NixOS tests, instead of opting out everything under tests.

Update: test cases under pkgs.tests are all package tests.

Artturin commented 9 months ago

pkgs.tests doesn't contain nixos tests nor is it meant to.

EDIT: You meant passthru.tests? There's no way to indirectly get what's changed in passthru without recursing everything.

ShamrockLee commented 9 months ago

pkgs.tests doesn't contain nixos tests nor is it meant to.

Thank you for explaining. I confused the term "NixOS tests" with package tests implemented with runNixOSTest (e.g. tests.trivial-builders.references).