Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/release.nix: Introduce callSubTestsOnTheseSystems #34201

Merged
merged 2 commits into from Jan 23, 2018

Conversation

dezgeg
Copy link
Contributor

@dezgeg dezgeg commented Jan 23, 2018

The existing callSubTests seems to already have special-cased code to
allow enabling subtests on a single specific system by looking at the
system attribute in the test arguments. Replace it with a new version
similar to the callTestOnTheseSystems because:

  • It's consistent with the existing functions for creating
    system-specific tests (though admittedly, the callSubTests special
    case for system predates them)
  • This approach allows limiting to multiple system types, the previous
    one inherently allows only one system type.
  • This also fixes the problem that if you pass in e.g.
    supportedSystems = [ "aarch64-linux" ], you end up with a
    tests.chromium job that silently runs on x86_64-linux.
  • Finally, this causes renames of the jobs like:
    tests.chromium -> tests.chromium.x86_64-linux to be consistent with
    the rest of the tests.

Effect on an aarch64-only jobset: https://hydra.nixos.org/eval/1428589?compare=1428465#tabs-removed

The existing callSubTests seems to already have special-cased code to
allow enabling subtests on a single specific system by looking at the
`system` attribute in the test arguments. Replace it with a new version
similar to the callTestOnTheseSystems because:

- It's consistent with the existing functions for creating
  system-specific tests (though admittedly, the callSubTests special
  case for `system` predates them)
- This approach allows limiting to multiple system types, the previous
  one inherently allows only one system type.
- This also fixes the problem that if you pass in e.g.
  supportedSystems = [ "aarch64-linux" ], you end up with a
  tests.chromium job that silently runs on x86_64-linux.
- Finally, this causes renames of the jobs like:
  tests.chromium -> tests.chromium.x86_64-linux to be consistent with
  the rest of the tests.
Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work with these!

@Ericson2314 Ericson2314 merged commit e23b6a3 into NixOS:master Jan 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants