Skip to content

Commit

Permalink
Run docker artifacts and checks only on release candidate and release
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Jul 17, 2024
1 parent 6effee9 commit bffab90
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 44 deletions.
67 changes: 24 additions & 43 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ steps:
rm -rf logs
mkdir -p logs
rm -rf databases
export SUCCESS_STATUS=syncing
./run.sh sync
artifact_paths:
- "./run/mainnet/nix/logs/*"
agents:
system: x86_64-linux
env:
SUCCESS_STATUS: syncing
NODE_LOGS_FILE: ./logs/node.log
WALLET_LOGS_FILE: ./logs/wallet.log

Expand Down Expand Up @@ -530,25 +530,21 @@ steps:

- group: Docker Artifacts
key: docker-artifacts
depends_on:
- linux-nix
if: build.env("RELEASE_CANDIDATE") != null || build.tag =~ /^v20/
steps:

- label: Build Docker Image
key: docker-build
depends_on:
- linux-nix
commands:
./scripts/buildkite/release/docker-build.sh
agents:
system: x86_64-linux
concurrency: 1
concurrency_group: 'docker'


- label: Push Docker Image
if: |
build.env("RELEASE_CANDIDATE") != null
|| build.tag =~ /^v20/
depends_on:
- linux-nix
- docker-build
key: build-docker
command:
Expand All @@ -557,76 +553,61 @@ steps:
- "./docker-build-push"
agents:
system: x86_64-linux
concurrency: 1
concurrency_group: 'docker'


- group: Docker Checks
depends_on:
- docker-artifacts
key: docker-e2e
if: build.env("RELEASE_CANDIDATE") != null
steps:

- label: Mainnet Boot Sync
depends_on:
- docker-build
timeout_in_minutes: 30
command: |
cd run/mainnet/docker
export WALLET_TAG=$(buildkite-agent meta-data get "release-cabal-version")
rm -rf databases
export SUCCESS_STATUS=syncing
./run.sh sync
agents:
system: x86_64-linux
concurrency: 1
concurrency_group: 'docker'
env:
SUCCESS_STATUS: syncing

- label: Private Network Full Sync
depends_on:
- docker-build
timeout: 20
command: |
rm -rf run/private/docker/databases
cd run/private/docker && ./run.sh sync
cd run/private/docker
export WALLET_TAG=$(buildkite-agent meta-data get "release-cabal-version")
rm -rf databases
./run.sh sync
agents:
system: x86_64-linux
concurrency: 1
concurrency_group: 'docker'

- block: Sanchonet Full Sync
if: build.env("RELEASE_CANDIDATE") == null
depends_on:
- docker-build
key: docker-sanchonet-full-sync-block

- label: Sanchonet Full Sync
depends_on:
- docker-sanchonet-full-sync-block
timeout_in_minutes: 240
command: |
rm -rf run/sanchonet/docker/databases
cd run/sanchonet/docker && ./run.sh sync
cd run/sanchonet/docker
export WALLET_TAG=$(buildkite-agent meta-data get "release-cabal-version")
rm -rf databases
./run.sh sync
agents:
system: x86_64-linux
concurrency: 1
concurrency_group: 'docker'

- block: Preprod Full Sync
if: build.env("RELEASE_CANDIDATE") == null
depends_on:
- docker-build
key: docker-preprod-full-sync-block

- label: Preprod Full Sync
depends_on:
- docker-preprod-full-sync-block
timeout_in_minutes: 240
command: |
rm -rf run/preprod/docker/databases
cd run/preprod/docker
export WALLET_TAG=$(buildkite-agent meta-data get "release-cabal-version")
rm -rf databases
# necessary to avoid the broken network
./snapshot.sh
./run.sh sync
agents:
system: x86_64-linux
concurrency: 1
concurrency_group: 'docker'


- group: Links
key: links-validity
Expand Down
2 changes: 1 addition & 1 deletion run/common/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export NODE_CONFIGS

startup() {
# Pull the latest images
docker compose pull -q
docker compose pull -q || true
# Start the service in detached mode
docker compose up -d
}
Expand Down

0 comments on commit bffab90

Please sign in to comment.