Skip to content

Commit

Permalink
[ADP-3224] Refine buildkite cardano-wallet pipeline (#4344)
Browse files Browse the repository at this point in the history
Context: the cabal build all -frelease takes approx 24 mins. If we
evaluate it only after merge, with other secondary checks, it should be
fine.

- [x] Add a block to control `cabal build all -frelease` step
- [x] Add the benchmark step to the "required after merge list"
- [x] Add rc-latest to the branches that run all the tests (necessary
for the artifacts to be found from E2E)

ADP-3224
  • Loading branch information
paolino authored Dec 15, 2023
2 parents 5f3c55a + 708bb9d commit 88b0b28
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ steps:
env:
TMPDIR: "/cache"

- label: 'Cabal Release Build works in the nix shell'
key: cabal-release
- block: "Run cabal release"
if: '(build.branch !~ /^gh-readonly-queue\/master/) && (build.branch != "master") && (build.branch !~ /^release-candidate/)'
depends_on: linux-nix
key: cabal-release-block

- label: 'Cabal build all -frelease'
key: cabal-release
depends_on: cabal-release-block
command: |
nix develop -c cabal update
nix develop -c cabal build all -frelease
Expand Down Expand Up @@ -133,6 +138,7 @@ steps:
TMPDIR: "/cache"

- block: 'Run benchmark (api)'
if: '(build.branch !~ /^gh-readonly-queue\/master/) && (build.branch != "master") && (build.branch !~ /^release-candidate/) && (build.branch != "rc-latest")'
depends_on: linux-nix
key: trigger-benchmark-api

Expand All @@ -151,7 +157,11 @@ steps:
TMPDIR: "/cache"

- block: "macOS steps"
if: '(build.branch !~ /^gh-readonly-queue\/master/) && (build.branch != "master") && (build.branch !~ /^release-candidate/)'
if: |
build.branch !~ /^gh-readonly-queue\/master/
&& build.branch != "master"
&& build.branch !~ /^release-candidate/
&& build.branch != "rc-latest"
depends_on: linux-nix
key: trigger-macos

Expand Down Expand Up @@ -179,8 +189,12 @@ steps:
system: ${macos}

- block: "Build package (linux)"
if: |
build.branch !~ /^gh-readonly-queue\/master/
&& build.branch != "master"
&& build.branch !~ /^release-candidate/
&& build.branch != "rc-latest"
depends_on: linux-nix
if: '(build.branch !~ /^gh-readonly-queue\/master/) && (build.branch != "master") && (build.branch !~ /^release-candidate/)'
key: trigger-build-linux-package

- label: 'Build package (linux)'
Expand All @@ -194,8 +208,12 @@ steps:
TMPDIR: "/cache"

- block: "Build windows artifacts"
if: |
build.branch !~ /^gh-readonly-queue\/master/
&& build.branch != "master"
&& build.branch !~ /^release-candidate/
&& build.branch != "rc-latest"
depends_on: linux-nix
if: '(build.branch !~ /^gh-readonly-queue\/master/) && (build.branch != "master") && (build.branch !~ /^release-candidate/)'
key: trigger-build-windows-artifacts

- label: 'Build package (windows)'
Expand All @@ -219,7 +237,11 @@ steps:
TMPDIR: "/cache"

- block: "Run E2E tests"
if: '(build.branch !~ /^gh-readonly-queue\/master/) && (build.branch != "master") && (build.branch !~ /^release-candidate/)'
if: |
build.branch !~ /^gh-readonly-queue\/master/
&& build.branch != "master"
&& build.branch !~ /^release-candidate/
&& build.branch != "rc-latest"
depends_on: linux-nix
key: trigger-e2e-tests

Expand Down Expand Up @@ -250,7 +272,7 @@ steps:
- windows-package
- windows-testing-bundle
- e2e
if: '(build.branch =~ /^release-candidate/)' #build.branch =~ /\/feature$$/
if: build.branch =~ /^release-candidate/
command: .buildkite/retag-rc-latest.sh
agents:
system: ${linux}
Expand Down

0 comments on commit 88b0b28

Please sign in to comment.