Skip to content

Commit 1e38d3e

Browse files
authored
fix: spot_strategy passing (#9428)
1 parent 01147a5 commit 1e38d3e

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

.github/ensure-tester-with-images/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: "Reusable setup steps"
55
inputs:
66
runner_type:
77
required: true
8+
spot_strategy:
9+
default: BestEffort
810
builder_type:
911
required: true
1012
builder_images_to_copy:
@@ -59,6 +61,7 @@ runs:
5961
if: ${{ env.CACHE_SUCCESS != 'true' }}
6062
with:
6163
runner_type: ${{ inputs.runner_type}}
64+
spot_strategy: ${{ inputs.spot_strategy }}
6265
ttl: ${{ inputs.tester_ttl }}
6366
run: |
6467
set -eux

.github/ensure-tester/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ inputs:
88
run:
99
# command to run once tester available
1010
required: false
11-
1211
ttl:
1312
required: false
1413
description: "Time to live for the tester instance in minutes"
1514
default: 30
15+
spot_strategy:
16+
default: BestEffort
1617
runs:
1718
# define an action, runs in OS of caller
1819
using: composite
@@ -23,15 +24,15 @@ runs:
2324
run: |
2425
TYPE=${{ inputs.runner_type }}
2526
# Try to use spot for every runner type for now
26-
echo "spot_strategy=BestEffort" >> $GITHUB_OUTPUT
27+
echo "spot_strategy=${{ inputs.spot_strategy }}" >> $GITHUB_OUTPUT
2728
echo "runner_label=$USERNAME-$runner_type" >> $GITHUB_OUTPUT
2829
echo "ami_id=ami-04d8422a9ba4de80f" >> $GITHUB_OUTPUT
2930
# no github runners, 'bare spot' in action code
3031
echo "runner_concurrency=0" >> $GITHUB_OUTPUT
3132
echo "ttl=${{ inputs.ttl }}" >> $GITHUB_OUTPUT
3233
SIZE=large
3334
if [[ $TYPE == 4core-* ]]; then
34-
SIZE=large
35+
SIZE=xlarge
3536
elif [[ $TYPE == 8core-* ]]; then
3637
SIZE=2xlarge
3738
elif [[ $TYPE == 16core-* ]]; then

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -634,10 +634,10 @@ jobs:
634634
with:
635635
concurrency_key: network-test-${{ matrix.test }}
636636
- name: "Setup and Local Network Tests"
637-
timeout-minutes: 40
637+
timeout-minutes: 60
638638
# Only allow transfer test to run on every (non-network-all) PR
639639
if: matrix.test == 'test-transfer.sh' || github.ref_name == 'master' || contains(github.event.pull_request.labels.*.name, 'network-all')
640-
run: earthly-ci --no-output ./yarn-project/+network-test --test=./${{ matrix.test }}
640+
run: sudo shutdown -P 60 ; earthly-ci --no-output ./yarn-project/+network-test --test=./${{ matrix.test }}
641641

642642
# note: proving disabled
643643
kind-network-test:
@@ -646,7 +646,7 @@ jobs:
646646
strategy:
647647
fail-fast: false
648648
matrix:
649-
test: [smoke.test.ts, transfer.test.ts, 4epochs.test.ts]
649+
test: [smoke.test.ts, transfer.test.ts] # TODO reinstate: 4epochs.test.ts
650650
steps:
651651
- uses: actions/checkout@v4
652652
with: { ref: "${{ env.GIT_COMMIT }}" }
@@ -660,16 +660,16 @@ jobs:
660660
env:
661661
USERNAME: ${{ needs.configure.outputs.username }}
662662
with:
663-
runner_type: 16core-tester-x86
663+
runner_type: 8core-tester-x86
664664
spot_strategy: None # use on-demand machines
665665
builder_type: builder-x86
666666
# these are copied to the tester and expected by the earthly command below
667667
# if they fail to copy, it will try to build them on the tester and fail
668668
builder_images_to_copy: aztecprotocol/aztec:${{ env.GIT_COMMIT }} aztecprotocol/end-to-end:${{ env.GIT_COMMIT }}
669669
# command to produce the images in case they don't exist
670670
builder_command: scripts/earthly-ci ./yarn-project+export-e2e-test-images
671+
tester_ttl: 60
671672
run: |
672-
sudo shutdown -P 60 # extend ttl
673673
cd yarn-project/end-to-end
674674
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u aztecprotocolci --password-stdin
675675
test=${{ matrix.test }}

0 commit comments

Comments
 (0)