Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ci3 post-merge fixes #10825

Merged
merged 178 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
b76cf31
robustness
ludamad Dec 17, 2024
d0beea3
more sane build-pic prep
ludamad Dec 17, 2024
6493903
more sane build-pic prep
ludamad Dec 17, 2024
2cad3e5
fix: Block building test timeout (#10812)
spalladino Dec 17, 2024
074e1b1
fix
ludamad Dec 17, 2024
58cfc23
fix
ludamad Dec 17, 2024
dacef9f
feat(p2p): attestation pool persistence (#10667)
Maddiaa0 Dec 17, 2024
438ab54
better startup script
ludamad Dec 17, 2024
1564662
generate
ludamad Dec 17, 2024
2174e1f
Yarn
ludamad Dec 17, 2024
346c4f0
fix
ludamad Dec 17, 2024
4ac13e6
chore(avm): radix opcode - remove immediates (#10696)
jeanmon Dec 17, 2024
962a7a2
chore: average alerts across namespace for 1 hour (#10827)
just-mitch Dec 17, 2024
d529df7
fix
ludamad Dec 17, 2024
6146775
ensure-tester
ludamad Dec 17, 2024
b8bdb52
fix: AVM witgen track gas for nested calls and external halts (#10731)
dbanks12 Dec 17, 2024
ba28788
fix: Try fix e2e epochs in CI (#10804)
spalladino Dec 17, 2024
147de9c
files
ludamad Dec 17, 2024
4d94837
files
ludamad Dec 17, 2024
1a3ced8
S3_FORCE_UPLOAD
ludamad Dec 17, 2024
072bb7c
ensure-builder fix
ludamad Dec 17, 2024
d740eaf
start
ludamad Dec 17, 2024
0e70dfc
fix
ludamad Dec 17, 2024
0499b10
gogo
ludamad Dec 17, 2024
703d40a
fix
ludamad Dec 17, 2024
b51eb14
fix
ludamad Dec 17, 2024
be7cadf
chore(docs): update migration notes (#10829)
critesjosh Dec 17, 2024
22d63f4
fix
ludamad Dec 17, 2024
df2921c
fix
ludamad Dec 17, 2024
8f66e31
fix
ludamad Dec 17, 2024
71d41e1
gogo gadget bash error
ludamad Dec 17, 2024
b2dd35e
lets go
ludamad Dec 17, 2024
e103d90
fixes
ludamad Dec 17, 2024
33b8eac
input
ludamad Dec 17, 2024
7891605
input
ludamad Dec 17, 2024
865c086
update
ludamad Dec 17, 2024
103ef47
update
ludamad Dec 17, 2024
e968ecc
update
ludamad Dec 17, 2024
90e2298
update
ludamad Dec 17, 2024
f00bfbf
update
ludamad Dec 17, 2024
e3c745c
update
ludamad Dec 17, 2024
ec3f56c
run on tester lets go
ludamad Dec 17, 2024
8443da6
try again
ludamad Dec 18, 2024
5c5d5c5
update
ludamad Dec 18, 2024
59c766c
Update
ludamad Dec 18, 2024
c90bb16
chore(master): Release 0.67.1 (#10684)
AztecBot Dec 18, 2024
6c09e24
fix
ludamad Dec 18, 2024
995a519
git subrepo push --branch=master barretenberg
AztecBot Dec 18, 2024
8b3eb34
chore: replace relative paths to noir-protocol-circuits
AztecBot Dec 18, 2024
f3dd71a
git_subrepo.sh: Fix parent in .gitrepo file. [skip ci]
AztecBot Dec 18, 2024
9c4c23c
git subrepo push --branch=master noir-projects/aztec-nr
AztecBot Dec 18, 2024
730daea
Updates
ludamad Dec 18, 2024
5cefc7d
less output
ludamad Dec 18, 2024
10fb290
less output
ludamad Dec 18, 2024
7c0077a
Update Earthfile
ludamad Dec 18, 2024
91b2334
scripty stuff
ludamad Dec 18, 2024
d169786
Merge remote-tracking branch 'origin/cl/ci3-fixes' into cl/ci3-fixes
ludamad Dec 18, 2024
b51e91d
fix
ludamad Dec 18, 2024
53be684
fix
ludamad Dec 18, 2024
d410ef8
Update ci-arm.yml
ludamad Dec 18, 2024
da1d8b2
fix
ludamad Dec 18, 2024
b71e455
Merge remote-tracking branch 'origin/cl/ci3-fixes' into cl/ci3-fixes
ludamad Dec 18, 2024
2d5b985
the wrapped run command
ludamad Dec 18, 2024
133a0e8
uploaded
ludamad Dec 18, 2024
59d818e
uploaded
ludamad Dec 18, 2024
d66c9b8
update
ludamad Dec 18, 2024
0f03299
fix
ludamad Dec 18, 2024
f7afbd2
fix acir bench syntax
ludamad Dec 18, 2024
6aca3e1
dont acir bench on e2e
ludamad Dec 18, 2024
6966eaf
less image time
ludamad Dec 18, 2024
8ec8192
dont run flakey e2e
ludamad Dec 18, 2024
0f37856
syntax
ludamad Dec 18, 2024
ddbfdc6
parallel fix
ludamad Dec 18, 2024
469476b
fix: remove table shifts (#10814)
maramihali Dec 18, 2024
263eaad
feat: add priority fees to gas settings (#10763)
LeilaWang Dec 18, 2024
e8480cb
feat: move busread and lookup block construction at the top of the tr…
maramihali Dec 18, 2024
b13bc93
fix: bump devbox image version (#10836)
alexghr Dec 18, 2024
970ad77
fix: toBlock argument in L1 getLogs is inclusive (#10828)
spalladino Dec 18, 2024
96887b6
fix: small fixes to avm witgen (#10749)
IlyasRidhuan Dec 18, 2024
c9e2f82
fix: add log severity (#10835)
alexghr Dec 18, 2024
5062803
chore: Remove sequencer min/max seconds between blocks (#10845)
spalladino Dec 18, 2024
9981078
fix: aztec js e2e (#10837)
Thunkar Dec 18, 2024
f576e52
fix: add inotify-tools (#10841)
alexghr Dec 18, 2024
677c0f4
fix: Do not start duplicate proving jobs if existing claim (#10793)
spalladino Dec 18, 2024
607dc4b
feat: expose ENFORCE_FEES in helm chart (#10488)
alexghr Dec 18, 2024
96ebc0c
fix: matching release branches (#10842)
just-mitch Dec 18, 2024
e23fd0d
refactor: fpc optimization, cleanup + docs (#10555)
benesjan Dec 18, 2024
26c87a9
chore: no release please prs for release branches (#10850)
just-mitch Dec 18, 2024
742df9c
fill out set -eu
ludamad Dec 18, 2024
d919399
bootstrap -set eu
ludamad Dec 18, 2024
921febb
refactor: read function names from contract classes (#10753)
alexghr Dec 18, 2024
668f050
Make world state fail if no napi
ludamad Dec 18, 2024
a4be4a7
refactor: optimization of `syncTaggedLogsAsSender` (#10811)
benesjan Dec 18, 2024
7d2f6f1
try repair build
ludamad Dec 18, 2024
0350088
fix run_acir_tests.sh
ludamad Dec 18, 2024
e7d760b
Merge branch 'cl/ci3' into cl/ci3-fixes
ludamad Dec 18, 2024
b59fbce
update
ludamad Dec 18, 2024
a339fac
syntax fix
ludamad Dec 18, 2024
774b5ec
fix bench summary
ludamad Dec 18, 2024
bb115d1
start kind full test sooner
ludamad Dec 18, 2024
6a9455e
Merge remote-tracking branch 'origin/master' into cl/ci3-fixes
ludamad Dec 18, 2024
e2e2348
run network test with yarn test
ludamad Dec 18, 2024
ef89bf6
fast filter base images
ludamad Dec 18, 2024
61ab917
Undo skip
ludamad Dec 18, 2024
2a699bc
simplify yarn hash, add cache_ls helper
ludamad Dec 18, 2024
6f1ad79
chore: silence logs to k8s port-forward (#10768)
alexghr Dec 18, 2024
73bc990
just upload napi
ludamad Dec 18, 2024
5d706eb
ensure world state is uploaded
ludamad Dec 18, 2024
0088ee5
Fix kludge
ludamad Dec 18, 2024
b721253
feat: Claim epoch proof rights without a block (#10844)
spalladino Dec 18, 2024
51d82aa
fix: Archiver does not jump the gun on epoch completed (#10801)
spalladino Dec 18, 2024
f3760ad
state
ludamad Dec 18, 2024
0860dc3
Fix job name
ludamad Dec 18, 2024
e867e87
fix: update run.sh for new devbox version (#10851)
Maddiaa0 Dec 18, 2024
d02cd1a
Fix cache delete
ludamad Dec 18, 2024
e4ba0d7
try again
ludamad Dec 18, 2024
feb51e5
now make it pass the cache hoop
ludamad Dec 18, 2024
8404fd3
lets go
ludamad Dec 18, 2024
4d55dc3
fix install parallel
ludamad Dec 18, 2024
7bd8163
update
ludamad Dec 18, 2024
575c29d
less restrictive ci.sh
ludamad Dec 18, 2024
7191a06
for build
ludamad Dec 18, 2024
14d37a1
fix ci.sh
ludamad Dec 18, 2024
a407edb
try downsizing testers
ludamad Dec 18, 2024
c6074a6
try e2e with standard github runner
ludamad Dec 18, 2024
6c578d9
try again
ludamad Dec 18, 2024
9dcb979
denoise
ludamad Dec 18, 2024
a17d319
feat(p2p): remaining p2p topic validators (#10734)
Maddiaa0 Dec 18, 2024
02eb782
update
ludamad Dec 18, 2024
a1542e7
try no exit spot
ludamad Dec 18, 2024
10aac00
retries
ludamad Dec 18, 2024
c019c77
retries
ludamad Dec 18, 2024
e4e58cf
fix
ludamad Dec 18, 2024
e8f7c30
fix
ludamad Dec 18, 2024
cc5f4c8
attach ebs
ludamad Dec 18, 2024
92bf320
update
ludamad Dec 18, 2024
c598bae
chore: use `troll-turtle` image in aztec-spartan (#10856)
just-mitch Dec 18, 2024
a7b6263
resinstate maybe exit spot
ludamad Dec 18, 2024
9c81525
fix yarn project cache
ludamad Dec 18, 2024
cd1b7d7
bootstrap
ludamad Dec 18, 2024
b9b1f7e
update
ludamad Dec 18, 2024
8689755
cache fix
ludamad Dec 19, 2024
00e3953
install kludge
ludamad Dec 19, 2024
f843d06
fix
ludamad Dec 19, 2024
02c6a09
remove redundant 4epochs test
ludamad Dec 19, 2024
68f6ab6
simplify
ludamad Dec 19, 2024
01c43be
fix
ludamad Dec 19, 2024
4a4a14e
simplify more
ludamad Dec 19, 2024
d02477a
lets go
ludamad Dec 19, 2024
9839c73
simpler transfer tests
ludamad Dec 19, 2024
1e6d826
pare down network tests
ludamad Dec 19, 2024
8e469c6
less earthly nag
ludamad Dec 19, 2024
7bd8e81
Update
ludamad Dec 19, 2024
0782b44
hash
ludamad Dec 19, 2024
ed0085a
try it out
ludamad Dec 19, 2024
c63df90
more conditionality
ludamad Dec 19, 2024
c168db6
edge ci
ludamad Dec 19, 2024
686a46c
refactor vm tests
ludamad Dec 19, 2024
981aa4a
Docs selection of ci
ludamad Dec 19, 2024
45f2435
dont make GH runner token mandatory
ludamad Dec 19, 2024
3f50921
simplify workflows
ludamad Dec 19, 2024
4c8f79b
Merge remote-tracking branch 'origin/master' into cl/ci3-fixes
ludamad Dec 19, 2024
d99e789
-
ludamad Dec 19, 2024
0a23c38
update prover client fix
ludamad Dec 19, 2024
b5945d4
simplify docs
ludamad Dec 19, 2024
52ed4ea
quieter network
ludamad Dec 19, 2024
ef785f9
fix nargo
ludamad Dec 19, 2024
b91a45f
bring back earthly retries
ludamad Dec 19, 2024
d583d8f
sufferage
ludamad Dec 19, 2024
8608c1c
lets try again
ludamad Dec 19, 2024
d2a0e8a
flakefest
ludamad Dec 19, 2024
4a1d21d
use ref name for arm concurrency
ludamad Dec 19, 2024
0a5055a
lets try it again
ludamad Dec 19, 2024
1b96ea3
woopsy
ludamad Dec 19, 2024
835730a
arm fixes
ludamad Dec 19, 2024
c9461ef
changes
ludamad Dec 19, 2024
9462caa
fix
ludamad Dec 19, 2024
11f57f3
fix bench e2e
ludamad Dec 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .devcontainer/dev/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Development",
"image": "aztecprotocol/devbox:1.0",
"image": "aztecprotocol/devbox:1.2",
"features": {
// Use custom fork with noble added to list of supported distros.
"./docker-in-docker": {}
Expand Down
71 changes: 5 additions & 66 deletions .github/ensure-builder/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ runs:
# define an action, runs in OS of caller
using: composite
steps:
- name: CI Setup
uses: ./.github/ci-setup-action
- name: Select Instance Type and AMI
id: select_instance
shell: bash
Expand Down Expand Up @@ -80,73 +78,14 @@ runs:
echo "BUILDER_SPOT_IP=${SPOT_IP}" >> $GITHUB_ENV
echo "BUILDER_SPOT_KEY=${SPOT_KEY}" >> $GITHUB_ENV
# Set up a context for this run
- name: Initialize Builder
env:
UNPACK: |
[ -d ~/run-$RUN_ID ] || (
mkdir -p ~/run-$RUN_ID
cd ~/run-$RUN_ID
git init &>/dev/null
git remote add origin https://github.com/aztecprotocol/aztec-packages
git fetch --depth 1 origin $GIT_COMMIT
git checkout FETCH_HEAD >/dev/null
)
shell: bash
run: |
# need to call run_on_builder as the action version assumes git is set up
run_on_builder "sudo shutdown -P ${{ steps.select_instance.outputs.ttl }}; flock /var/lock/git.lock bash -c '$UNPACK'"

- name: Setup Graceful Exit
uses: ./.github/run-on-builder
with:
run: |
[ -x /usr/local/bin/earthly ] || ci3/earthly_install
# One-time config
if ! [ -f ~/maybe_exit_spot.sh ] ; then
cp scripts/ci/maybe_exit_spot.sh ~/maybe_exit_spot.sh
cp scripts/ci/spot_runner_graceful_exit.sh ~/spot_runner_graceful_exit.sh
# Run maybe_exit_spot.sh every minute
chmod +x ~/spot_runner_graceful_exit.sh
chmod +x ~/maybe_exit_spot.sh
echo "* * * * * ~/maybe_exit_spot.sh" | crontab -
echo "Configured graceful exit."
else
echo "Chron jobs already configured."
fi
- name: Docker Login
uses: ./.github/run-on-builder
with:
run: |
i=0
while ! systemctl is-active --quiet docker; do
sleep 2
if [ $(( i++ )) -gt 60 ]; then
echo "Docker service not found! Report this."
exit 1
fi
done
echo "Docker service is active!"
echo $DOCKERHUB_PASSWORD | docker login -u aztecprotocolci --password-stdin
# Run the test
- name: Run On Builder
id: test
env:
RUN_SCRIPT: |
cd ~/run-${{ env.RUN_ID }};
ci3/aws_handle_evict "${{ inputs.run }}"
shell: bash
run:
set +e;
exit_code=254
scripts/run_on_builder "$RUN_SCRIPT";
exit_code=$?;
if [ $exit_code = 255 ]; then
echo "Treating ssh termination as spot eviction.";
exit_code=155;
fi;
echo "exit_code=$exit_code" >> $GITHUB_OUTPUT;
if [ $exit_code = 155 ]; then
echo "Spot eviction detected - retrying with on-demand.";
fi;
env:
INPUT: ${{ inputs.run }}
run: |
.github/ensure-builder/run ${{ steps.select_instance.outputs.ttl }}

- name: Re-run with On-Demand
uses: ./.github/ensure-builder
Expand Down
26 changes: 26 additions & 0 deletions .github/ensure-builder/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
exit_code=254
ttl=$1
scripts/run_on_builder "
set -eu;
sudo shutdown -P $ttl;
if ! [ -d ~/run-$RUN_ID ]; then
mkdir -p ~/run-$RUN_ID;
cd ~/run-$RUN_ID;
git init >/dev/null 2>&1;
git remote add origin https://github.com/aztecprotocol/aztec-packages >/dev/null 2>&1;
git fetch --depth 1 origin $GIT_COMMIT >/dev/null 2>&1;
git checkout FETCH_HEAD >/dev/null 2>&1;
fi;
cd ~/run-$RUN_ID;
.github/ensure-builder/wrapper $DOCKERHUB_PASSWORD '$INPUT';
"
exit_code=$?
if [ $exit_code = 255 ]; then
echo "Treating ssh termination as spot eviction.";
exit_code=155
fi;
echo "exit_code=$exit_code" >> $GITHUB_OUTPUT;
if [ $exit_code = 155 ]; then
echo "Spot eviction detected - retrying with on-demand."
fi
43 changes: 43 additions & 0 deletions .github/ensure-builder/wrapper
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/usr/bin/env bash
set -eu
# One-time config.
if ! [ -f ~/maybe_exit_spot.sh ] ; then
cp scripts/ci/maybe_exit_spot.sh ~/maybe_exit_spot.sh
# Run maybe_exit_spot.sh every minute
chmod +x ~/maybe_exit_spot.sh
echo "* * * * * ~/maybe_exit_spot.sh" | crontab -
echo "Configured instance exit cron job."
else
echo "Chron jobs already configured."
fi
set +x
# Ensure docker is active.
i=0
while ! systemctl is-active --quiet docker; do
sleep 2
if [ $(( i++ )) -gt 60 ]; then
echo "Docker service not found! Report this."
exit 1
fi
done
echo $1 | ci3/dump_fail docker login -u aztecprotocolci --password-stdin
if ! command -v yq >/dev/null; then
ci3/dump_fail wget https://github.com/mikefarah/yq/releases/download/v4.44.3/yq_linux_$(ci3/arch) -O ./yq
chmod +x ./yq
sudo mv ./yq /usr/bin/yq
fi
if ! command -v jq >/dev/null; then
ci3/dump_fail wget https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-$(ci3/arch) -O ./jq 2>&1 >/dev/null
chmod +x ./jq
sudo mv ./jq /usr/bin/jq
fi
function install_parallel() {
sudo apt update && sudo apt install parallel
}
export -f install_parallel
if ! command -v parallel >/dev/null; then
DENOISE=1 ci3/denoise install_parallel
fi
[ -x /usr/local/bin/earthly ] || ci3/dump_fail ci3/earthly_install
# Run the test.
ci3/aws_handle_evict "set -eu; $2"
68 changes: 7 additions & 61 deletions .github/ensure-tester/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ runs:
USERNAME="${{ inputs.username }}"
fi
echo "USERNAME=$USERNAME" >> $GITHUB_ENV
echo "runner_label=$USERNAME-$runner_type" >> $GITHUB_OUTPUT
echo "runner_label=$USERNAME-$runner_type" >> $GITHUB_OUTPUT
echo "runner_label=$USERNAME-${{ github.jobs[github.job].name }}" >> $GITHUB_OUTPUT
echo "runner_label=$USERNAME-${{ github.jobs[github.job].name }}" >> $GITHUB_OUTPUT
echo "ami_id=ami-052a1e16394277fdf" >> $GITHUB_OUTPUT
# no github runners, 'bare spot' in action code
echo "runner_concurrency=0" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -80,80 +80,26 @@ runs:
ec2_key_name: "build-instance"
ec2_instance_tags: '[{"Key": "Keep-Alive", "Value": "true"}]'

# Set up a context for this run
- name: Initialize Tester
env:
UNPACK: |
[ -d ~/run-$RUN_ID ] || (
mkdir -p ~/run-$RUN_ID
cd ~/run-$RUN_ID
git init &>/dev/null
git remote add origin https://github.com/aztecprotocol/aztec-packages
git fetch --depth 1 origin $GIT_COMMIT
git checkout FETCH_HEAD >/dev/null
)
shell: bash
run: |
scripts/run_on_tester "sudo shutdown -P ${{ steps.select_instance.outputs.ttl }}; flock /var/lock/git.lock bash -c '$UNPACK'"
scripts/run_on_tester "
mkdir -p ~/.ssh
echo $BUILD_INSTANCE_SSH_KEY | base64 --decode > ~/.ssh/build_instance_key
chmod 600 ~/.ssh/build_instance_key
i=0
while ! systemctl is-active --quiet docker; do
sleep 2
if [ $(( i++ )) -gt 60 ]; then
echo "Docker service not found! Report this."
exit 1
fi
done
echo "Docker service is active!"
echo $DOCKERHUB_PASSWORD | docker login -u aztecprotocolci --password-stdin
"

- name: Setup yq and earthly
uses: ./.github/run-on-tester
with:
run: |
wget https://github.com/mikefarah/yq/releases/download/v4.44.3/yq_linux_amd64 -O ./yq 2>&1 >/dev/null
chmod +x ./yq
DENOISE=1 ci3/denoise sudo mv ./yq /usr/bin/yq
ci3/earthly_install
echo "Waiting for Docker service to become active..."
i=0

- name: Ensure Tester Cleanup
uses: gacts/run-and-post-run@v1
with:
post: scripts/run_on_tester "sudo shutdown now" || true

- name: Run On Tester
id: test
env:
RUN_SCRIPT: |
cd ~/run-${{ env.RUN_ID }};
ci3/aws_handle_evict "set -eu; ${{ inputs.run }}"
shell: bash
run:
set +e;
scripts/run_on_tester "$RUN_SCRIPT";
exit_code=$?;
if [ $exit_code = 255 ]; then
echo "Treating ssh termination as spot eviction.";
exit_code=155;
fi;
echo "exit_code=$exit_code" >> $GITHUB_OUTPUT;
if [ $exit_code = 155 ]; then
echo "Spot eviction detected - retrying with on-demand.";
fi;
env:
INPUT: ${{ inputs.run }}
run: |
.github/ensure-tester/run ${{ steps.select_instance.outputs.ttl }}

- name: Re-run with On-Demand
uses: ./.github/ensure-tester
if: steps.test.outputs.exit_code == '155' && inputs.spot_strategy != 'None'
with:
username: ${{ inputs.username }}
runner_type: ${{ inputs.runner_type}}
spot_strategy: None
# spot_strategy: None
ttl: ${{ inputs.ttl }}
run: ${{ inputs.run }}

Expand Down
26 changes: 26 additions & 0 deletions .github/ensure-tester/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
exit_code=254
ttl=$1
scripts/run_on_tester "
set -eu;
sudo shutdown -P $ttl;
if ! [ -d ~/run-$RUN_ID ]; then
mkdir -p ~/run-$RUN_ID;
cd ~/run-$RUN_ID;
git init >/dev/null 2>&1;
git remote add origin https://github.com/aztecprotocol/aztec-packages >/dev/null 2>&1;
git fetch --depth 1 origin $GIT_COMMIT >/dev/null 2>&1;
git checkout FETCH_HEAD >/dev/null 2>&1;
fi;
cd ~/run-$RUN_ID;
.github/ensure-tester/wrapper $DOCKERHUB_PASSWORD '$INPUT';
"
exit_code=$?
if [ $exit_code = 255 ]; then
echo "Treating ssh termination as spot eviction."
exit_code=155
fi
echo "exit_code=$exit_code" >> $GITHUB_OUTPUT
if [ $exit_code = 155 ]; then
echo "Spot eviction detected - retrying with on-demand."
fi
33 changes: 33 additions & 0 deletions .github/ensure-tester/wrapper
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash
set -eu
# One-time config.
mkdir -p ~/.ssh
echo $BUILD_INSTANCE_SSH_KEY | base64 --decode > ~/.ssh/build_instance_key
chmod 600 ~/.ssh/build_instance_key
set +x
# Ensure docker is active.
echo "Waiting for Docker service to become active..."
i=0
set +x
while ! systemctl is-active --quiet docker; do
sleep 2
if [ $(( i++ )) -gt 60 ]; then
echo "Docker service not found! Report this."
exit 1
fi
done
echo $1 | ci3/dump_fail docker login -u aztecprotocolci --password-stdin
ci3/dump_fail wget https://github.com/mikefarah/yq/releases/download/v4.44.3/yq_linux_$(ci3/arch) -O ./yq 2>&1 >/dev/null
chmod +x ./yq
sudo mv ./yq /usr/bin/yq
ci3/dump_fail wget https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-$(ci3/arch) -O ./jq
chmod +x ./jq
sudo mv ./jq /usr/bin/jq
ci3/dump_fail ci3/earthly_install
function install_parallel() {
sudo apt update && sudo apt install parallel
}
export -f install_parallel
DENOISE=1 ci3/denoise install_parallel
# Run command.
ci3/aws_handle_evict "set -eu; $2"
Loading
Loading