Skip to content

Commit

Permalink
Add nix full sync E2E test for preprod
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Jul 15, 2024
1 parent 0395bf4 commit 99640b7
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 7 deletions.
40 changes: 33 additions & 7 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,22 @@ steps:
concurrency: 1
concurrency_group: 'linux-e2e-tests'

- label: Private Network Full Sync
depends_on: linux-nix
timeout: 20
command: |
rm -rf run/private/nix/logs
mkdir -p run/private/nix/logs
rm -rf run/private/nix/databases
cd run/private/nix && ./run.sh sync
artifact_paths:
- "./run/private/nix/logs/*"
agents:
system: x86_64-linux
env:
NODE_LOGS_FILE: ./logs/node.log
WALLET_LOGS_FILE: ./logs/wallet.log

- block: Sanchonet Full Sync
if: build.env("RELEASE_CANDIDATE") == null
depends_on: linux-nix
Expand All @@ -166,22 +182,32 @@ steps:
NODE_LOGS_FILE: ./logs/node.log
WALLET_LOGS_FILE: ./logs/wallet.log

- label: Private Network Full Sync
- block: Preprod Full Sync
if: build.env("RELEASE_CANDIDATE") == null
depends_on: linux-nix
timeout: 20
key: linux-preprod-full-sync-block

- label: Preprod Full Sync
depends_on:
- linux-nix
- linux-preprod-full-sync-block
timeout_in_minutes: 240
command: |
rm -rf run/private/nix/logs
mkdir -p run/private/nix/logs
rm -rf run/private/nix/databases
cd run/private/nix && ./run.sh sync
cd run/preprod/nix
rm -rf logs
mkdir -p logs
rm -rf databases
./snapshot.sh
./run.sh sync
artifact_paths:
- "./run/private/nix/logs/*"
- "./run/preprod/nix/logs/*"
agents:
system: x86_64-linux
env:
NODE_LOGS_FILE: ./logs/node.log
WALLET_LOGS_FILE: ./logs/wallet.log


- group: Code Quality Checks
key: code-quality
steps:
Expand Down
1 change: 1 addition & 0 deletions run/preprod/nix/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NETWORK="preprod"
1 change: 1 addition & 0 deletions run/preprod/nix/configs
1 change: 1 addition & 0 deletions run/preprod/nix/run.sh

0 comments on commit 99640b7

Please sign in to comment.