-
Notifications
You must be signed in to change notification settings - Fork 211
/
nightly.yml
83 lines (73 loc) · 2.77 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
env:
LC_ALL: "en_US.UTF-8"
NIX_PATH: "channel:nixos-21.05"
# Per-container variables
SCRATCH_DIR: "/scratch/cardano-wallet"
BUILD_DIR: "/build/cardano-wallet"
STACK_ROOT: "/build/cardano-wallet.stack"
CABAL_DIR: "/build/cardano-wallet.cabal"
XDG_STATE_HOME: "/build/cardano-wallet/.state"
XDG_CACHE_HOME: "/build/cardano-wallet/.cache"
TESTS_LOGDIR: "/build/cardano-wallet/integration-test-logs"
# Per-host variables - shared across containers on host
CACHE_DIR: "/cache/cardano-wallet"
steps:
- label: 'Restore benchmark - cardano mainnet'
command: "./.buildkite/bench-restore.sh mainnet"
env:
HOME: "/cache/cardano-wallet.home"
timeout_in_minutes: 600
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'
# command: "./.buildkite/bench-restore.sh testnet"
# env:
# HOME: "/cache/cardano-wallet.home"
# timeout_in_minutes: 600
# 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"
timeout_in_minutes: 120
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"
timeout_in_minutes: 120
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'
# commands:
# - "rm -rf state-migration-test*"
# - "nix-build nix/migration-tests.nix -o migration-tests"
# - "./migration-tests/runall.sh"
# timeout_in_minutes: 60
# agents:
# system: x86_64-linux
# if: 'build.env("step") == null || build.env("step") =~ /migration-tests/'
- label: 'Full cabal build'
command:
- "mkdir -p config && echo '{ outputs = _: { withCabalCache = true; }; }' > config/flake.nix"
- "nix develop --override-input customConfig path:./config .#cabal --command scripts/buildkite/cabal-ci.sh build"
env:
CABAL_CACHE_ARCHIVE: "/cache/cardano-wallet"
CABAL_STORE_DIR: "/build/cardano-wallet.store"
agents:
system: x86_64-linux
if: 'build.env("step") == null || build.env("step") =~ /cabal/'
- wait
- label: "Advance linux-tests-pass and all-tests-pass branches"
command: "./.buildkite/push-branch.sh linux-tests-pass windows-tests-pass all-tests-pass"
agents:
system: x86_64-linux
if: 'build.env("step") == null'