From 12fee001ed7c0f3c6d181c0a6f7ffe1ce613c343 Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Thu, 1 Jul 2021 11:25:20 +0800 Subject: [PATCH] Buildkite: Add an env variable to run single nightly steps --- .buildkite/nightly.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.buildkite/nightly.yml b/.buildkite/nightly.yml index 6078b7168f3..68bbdb354a4 100644 --- a/.buildkite/nightly.yml +++ b/.buildkite/nightly.yml @@ -11,6 +11,7 @@ steps: agents: system: x86_64-linux queue: benchmark + if: 'build.env("step") == null || build.env("step") =~ /restore-mainnet/' # Temporary disabled due to timing out (#2221) # - label: 'Restore benchmark - cardano testnet' @@ -21,6 +22,7 @@ steps: # agents: # system: x86_64-linux # queue: benchmark +# if: 'build.env("step") == null || build.env("step") =~ /restore-testnet/' - label: 'Database benchmark' command: "./.buildkite/bench-db.sh" @@ -28,6 +30,7 @@ steps: agents: system: x86_64-linux queue: benchmark + if: 'build.env("step") == null || build.env("step") =~ /bench-db/' - label: 'Latency benchmark' command: "./.buildkite/bench-latency.sh" @@ -35,6 +38,7 @@ steps: agents: system: x86_64-linux queue: benchmark + if: 'build.env("step") == null || build.env("step") =~ /bench-latency/' # TODO: ADP-549 Port migrations test to shelley # - label: 'Database Migrations Test' @@ -45,6 +49,7 @@ steps: # timeout_in_minutes: 60 # agents: # system: x86_64-linux + # if: 'build.env("step") == null || build.env("step") =~ /migration-tests/' - label: 'Full cabal build' command: 'nix-shell nix/cabal-shell.nix --arg withCabalCache true --run "scripts/buildkite/cabal-ci.sh build"' @@ -53,6 +58,7 @@ steps: CABAL_STORE_DIR: "/build/cardano-wallet.store" agents: system: x86_64-linux + if: 'build.env("step") == null || build.env("step") =~ /cabal/' - wait @@ -60,3 +66,4 @@ steps: command: "./.buildkite/push-branch.sh linux-tests-pass windows-tests-pass all-tests-pass" agents: system: x86_64-linux + if: 'build.env("step") == null'