Skip to content

Commit

Permalink
[ADP-3368] Fix back windows E2E github action to use rc-latest (#4665)
Browse files Browse the repository at this point in the history
- [x] Add `rc-latest` management in the main pipeline
- [x] Fix the trigger for the E2E windows action to be `rc-latest`

ADP-3368
  • Loading branch information
paolino authored Jul 7, 2024
2 parents b005eec + dcc2e05 commit 4bb3276
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
1 change: 1 addition & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ steps:
build.branch !~ /^gh-readonly-queue\/master/
&& build.branch != "master"
&& build.env("RELEASE_CANDIDATE") == null
&& build.branch != "rc-latest"
depends_on: linux-nix
key: trigger-build-windows-artifacts

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: E2E Windows
on:
push:
tags:
- release-candidate-tag/*
- rc-latest

workflow_dispatch:
inputs:
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
if: always()
uses: actions/cache/save@v3
with:
path: test/e2e/state/node_db/preprod
path: C:/cardano-wallet/test/e2e/state/node_db/preprod
key: node-db-e2e-windows-preprod

- name: 📎 Upload state
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Windows Unit Tests
on:
push:
tags:
- release-candidate-tag/*
- rc-latest

workflow_dispatch:
inputs:
Expand Down
14 changes: 14 additions & 0 deletions scripts/buildkite/main/tag-release-candidate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,23 @@ git remote set-url origin "git@github.com:cardano-foundation/cardano-wallet.git"

TAG="release-candidate-tag"
date=$(git show -s --format=%ci | awk '{print $1}')

DTAG="$TAG/$date"
LATEST="rc-latest"

git tag --delete "$DTAG" || true
git tag --delete "$LATEST" || true

git push origin --delete "$DTAG" || true
git push origin --delete "$LATEST" || true

git tag "$DTAG" "$BUILDKITE_COMMIT"
git tag "$LATEST" "$BUILDKITE_COMMIT"

git push origin "$DTAG"
git push origin "$LATEST"

# we wait 2 minutes to let buildite build the windows artifacts for the rc-latest tag
# it will be fast as they are already built for the same commit, do cached by nix

sleep 120

0 comments on commit 4bb3276

Please sign in to comment.