Unverified Commit 72155225 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

nixos/lib/testing: avoid generating darwin VM tests

We're getting 2x5 darwin VM jobs that aren't schedulable
on our current Hydra.nixos.org, which makes them hang around
and delay advancing of all `nixpkgs-*` channels.
To me that's quite an annoying effect, as it can be like an extra day
of additional delay without any benefit that I can really perceive.
(unless someone like me keeps manually cancelling the jobs all the time)
parent 21577e03
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@ let
    };
  runTest =
    module:
    # Infra issue: virtualization on darwin doesn't seem to work yet.
    lib.addMetaAttrs { hydraPlatforms = lib.platforms.linux; }
      (evalTest (
        { config, ... }:
        {
+3 −1
Original line number Diff line number Diff line
@@ -36,7 +36,9 @@ in
          };
          platforms = lib.mkOption {
            type = types.listOf types.raw;
            default = lib.platforms.linux ++ lib.platforms.darwin;
            # darwin could be added, but it would add VM tests that don't work on Hydra.nixos.org (so far)
            # see https://github.com/NixOS/nixpkgs/pull/303597#issuecomment-2128782362
            default = lib.platforms.linux;
            description = ''
              Sets the [`meta.platforms`](https://nixos.org/manual/nixpkgs/stable/#var-meta-platforms) attribute on the [{option}`test`](#test-opt-test) derivation.
            '';