Skip to content

Commit 88ef5ca

Browse files
committed
chore: merge v4-next into v4 for v4.3.0-rc.2 release
Brings accumulated v4-next fixes onto v4 ahead of the next 4.3.0-rc cut. Manifest stays at 4.3.0 (still in the 4.3.0 rc cycle); v4-next remains at 4.4.0 for the next minor cycle.
2 parents 5a4d1a4 + 5b61b2d commit 88ef5ca

4 files changed

Lines changed: 20 additions & 7 deletions

File tree

.github/workflows/ci3.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ jobs:
318318
ref: ${{ github.event.pull_request.head.sha || github.sha }}
319319

320320
- name: Run Backwards Compatibility E2E Tests
321-
timeout-minutes: 330
321+
timeout-minutes: 60
322322
env:
323323
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
324324
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -331,7 +331,7 @@ jobs:
331331
CI3_INSTANCE_PROFILE_NAME: ${{ secrets.CI3_INSTANCE_PROFILE_NAME }}
332332
CI3_SECURITY_GROUP_ID: ${{ secrets.CI3_SECURITY_GROUP_ID }}
333333
RUN_ID: ${{ github.run_id }}
334-
AWS_SHUTDOWN_TIME: 300
334+
AWS_SHUTDOWN_TIME: 60
335335
run: ./.github/ci3.sh compat-e2e
336336

337337
# Publishes the release (npm, Docker, GitHub release, aztec-up scripts, etc.).

aztec-up/bin/0.0.1/install

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,21 @@ function echo_yellow {
5555
}
5656

5757
function timeout {
58-
if [ "${CI:-0}" = "1" ] || [ "${CI:-0}" = "true" ]; then
58+
if [ "${CI:-0}" != "1" ] && [ "${CI:-0}" != "true" ]; then
59+
shift
60+
"$@"
61+
return
62+
fi
63+
if [ -x /usr/bin/timeout ]; then
64+
# Prefer coreutils `timeout` when available. Absolute path avoids re-entering this function.
5965
/usr/bin/timeout "$@"
66+
elif perl -e1 2>/dev/null; then
67+
# Fall back to perl's `alarm` when /usr/bin/timeout is missing.
68+
local duration=$1
69+
shift
70+
perl -e "alarm $duration; exec @ARGV" -- "$@"
6071
else
72+
# No timeout backend available -- run unguarded rather than fail the install.
6173
shift
6274
"$@"
6375
fi

ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ case "$cmd" in
264264
# against contract artifacts from prior stable releases.
265265
export CI_DASHBOARD="releases"
266266
export JOB_ID="x-compat-e2e"
267-
export AWS_SHUTDOWN_TIME=300
267+
export AWS_SHUTDOWN_TIME=60
268268
rc=0
269269
bootstrap_ec2 "./bootstrap.sh ci-compat-e2e" || rc=$?
270270
# On nightly tags compat-e2e is non-blocking (continue-on-error in ci3.yml), so

yarn-project/aztec/scripts/add_crate.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,17 @@ TEMPLATE_DIR="$(dirname $0)/templates/$template"
3737
# Copy template crates and substitute placeholders
3838
cp -r "$TEMPLATE_DIR/contract" "$contract_dir"
3939
cp -r "$TEMPLATE_DIR/test" "$test_dir"
40+
# Use perl -i for portability across os.
4041
find "$contract_dir" "$test_dir" -type f -exec \
41-
sed -i -e "s/__CRATE_NAME__/${crate_name}/g" -e "s/__AZTEC_VERSION__/${AZTEC_VERSION}/g" {} +
42+
perl -i -pe "s/__CRATE_NAME__/${crate_name}/g; s/__AZTEC_VERSION__/${AZTEC_VERSION}/g" {} +
4243

4344
# Add members to workspace Nargo.toml
4445
if grep -q 'members\s*=\s*\[\s*\]' Nargo.toml; then
4546
# Empty array: members = []
46-
sed -i "s|members\s*=\s*\[\s*\]|members = [\"${contract_dir}\", \"${test_dir}\"]|" Nargo.toml
47+
perl -i -pe "s|members\s*=\s*\[\s*\]|members = [\"${contract_dir}\", \"${test_dir}\"]|" Nargo.toml
4748
else
4849
# Non-empty array: add before closing ]
49-
sed -i "s|\(members\s*=\s*\[.*\)\]|\1, \"${contract_dir}\", \"${test_dir}\"]|" Nargo.toml
50+
perl -i -pe "s|(members\s*=\s*\[.*)\]|\1, \"${contract_dir}\", \"${test_dir}\"]|" Nargo.toml
5051
fi
5152

5253
echo "Created crates '${contract_dir}' and '${test_dir}'"

0 commit comments

Comments
 (0)