Skip to content

Commit 722e3aa

Browse files
committed
Merge branch 'master' into sync-noir
* master: (67 commits) chore: pull out more sync stuff (#11617) refactor: consolidate contract functions in pxe (#10480) feat: txe native world state (#11226) feat(avm): vm2 bitwise subtrace (#11473) fix: boxes playwright + web bundles (#11615) chore: pull lazy memory initialization from sync (#11607) git subrepo push --branch=master noir-projects/aztec-nr git_subrepo.sh: Fix parent in .gitrepo file. [skip ci] chore: replace relative paths to noir-protocol-circuits git subrepo push --branch=master barretenberg chore: add method to filemanager (#11610) feat(avm): get_row optimization - 25x faster logderiv inv (#11605) fix(spartan): get svc addresses from load balancers (#11606) chore: remove old public circuit public inputs (#11594) fix: fix boxes (#11592) fix: only set node version in node pools (#11604) chore: replace usage of stdlib with sha256 library (#11394) fix: pin k8s version (#11599) chore: make target contract public (#11582) fix(spartan): reduce l1 deploy retry time (#11591) ...
2 parents 578a92d + 30dc56c commit 722e3aa

File tree

866 files changed

+19674
-10557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

866 files changed

+19674
-10557
lines changed

.github/workflows/ci.yml

+28-36
Original file line numberDiff line numberDiff line change
@@ -380,24 +380,17 @@ jobs:
380380
docker pull aztecprotocol/aztec:${{ env.GIT_COMMIT }}
381381
docker pull aztecprotocol/end-to-end:${{ env.GIT_COMMIT }}
382382
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u aztecprotocolci --password-stdin
383-
cd yarn-project/end-to-end
384383
385-
export INSTALL_CHAOS_MESH=false
386-
export INSTALL_METRICS=false
387-
export NAMESPACE=smoke
388-
export FRESH_INSTALL=true
389-
export VALUES_FILE=ci-smoke.yaml
390-
391-
./scripts/network_test.sh ./src/spartan/smoke.test.ts
384+
INSTALL_METRICS=false ./spartan/scripts/test_kind.sh ./src/spartan/smoke.test.ts ci-smoke.yaml
392385
- name: Copy Network Logs
393386
if: always()
394-
run: scripts/copy_from_tester yarn-project/end-to-end/scripts/network-test.log network-test.log || true
387+
run: scripts/copy_from_tester spartan/scripts/logs/test_kind.log test_kind.log || true
395388
- name: Upload Network Logs
396389
if: always()
397390
uses: actions/upload-artifact@v4
398391
with:
399392
name: kind-network-smoke.log
400-
path: network-test.log
393+
path: test_kind.log
401394

402395
kind-network-test:
403396
needs: [images-e2e, configure]
@@ -408,15 +401,15 @@ jobs:
408401
matrix:
409402
config:
410403
# - test: reorg.test.ts
411-
# values: ci
404+
# values: ci.yaml
412405
# runner_type: 16core-tester-x86-high-memory
413406
# timeout: 60
414407
- test: 4epochs.test.ts
415-
values: ci
408+
values: ci.yaml
416409
runner_type: 16core-tester-x86
417410
timeout: 40
418411
# - test: gating-passive.test.ts
419-
# values: ci
412+
# values: ci.yaml
420413
# runner_type: 16core-tester-x86
421414
# timeout: 40
422415
steps:
@@ -433,23 +426,23 @@ jobs:
433426
run: |
434427
until docker info &>/dev/null; do sleep 1; done
435428
export CI=1 USE_CACHE=1
436-
artifact="kind-network-${{matrix.config.test}}-$(./yarn-project/bootstrap.sh hash)"
429+
artifact="kind-network-${{matrix.config.test}}-$(./spartan/bootstrap.sh hash)"
437430
if ci3/test_should_run "$artifact"; then
438431
docker pull aztecprotocol/aztec:${{ env.GIT_COMMIT }}
439432
docker pull aztecprotocol/end-to-end:${{ env.GIT_COMMIT }}
440-
./ci.sh test-kind-network ${{ matrix.config.test }} ${{ matrix.config.values }}
433+
INSTALL_METRICS=false ./spartan/scripts/test_kind.sh "./src/spartan/${{ matrix.config.test }}" "${{ matrix.config.values }}"
441434
ci3/cache_upload_flag "$artifact"
442435
fi
443436
- name: Copy Network Logs
444437
if: always()
445-
run: scripts/copy_from_tester yarn-project/end-to-end/scripts/network-test.log network-test.log || true
438+
run: scripts/copy_from_tester spartan/scripts/logs/test_kind.log test_kind.log || true
446439

447440
- name: Upload Network Logs
448441
if: always()
449442
uses: actions/upload-artifact@v4
450443
with:
451444
name: kind-network-test-${{ matrix.config.values }}-${{ matrix.config.test }}.log
452-
path: network-test.log
445+
path: test_kind.log
453446

454447
bb-bench:
455448
runs-on: ubuntu-latest
@@ -501,26 +494,25 @@ jobs:
501494
alert-comment-cc-users: "@ludamad @codygunton"
502495
max-items-in-chart: 50
503496

504-
# TODO(https://github.com/AztecProtocol/aztec-packages/issues/11471) reenable
505-
# boxes-test:
506-
# needs: [ci-rest, configure]
507-
# runs-on: ubuntu-latest
508-
# steps:
509-
# - uses: actions/checkout@v4
510-
# with: { ref: "${{ github.event.pull_request.head.sha }}" }
511-
# - uses: ./.github/ci-setup-action
497+
boxes-test:
498+
needs: [ci-rest, configure]
499+
runs-on: ubuntu-latest
500+
steps:
501+
- uses: actions/checkout@v4
502+
with: { ref: "${{ github.event.pull_request.head.sha }}" }
503+
- uses: ./.github/ci-setup-action
512504

513-
# - name: Build Boxes
514-
# uses: ./.github/ensure-builder
515-
# timeout-minutes: 40
516-
# with:
517-
# username: ${{ needs.configure.outputs.username }}
518-
# runner_type: builder-x86
519-
# run: |
520-
# export CI=1 USE_CACHE=1
521-
# if ci3/test_should_run "boxes-test-$(./boxes/bootstrap.sh hash)"; then
522-
# ./bootstrap.sh test-boxes
523-
# fi
505+
- name: Build Boxes
506+
uses: ./.github/ensure-builder
507+
timeout-minutes: 40
508+
with:
509+
username: ${{ needs.configure.outputs.username }}
510+
runner_type: builder-x86
511+
run: |
512+
export CI=1 USE_CACHE=1
513+
if ci3/test_should_run "boxes-test-$(./boxes/bootstrap.sh hash)"; then
514+
./bootstrap.sh test-boxes
515+
fi
524516
525517
prover-client-test:
526518
needs: [ci-rest, configure]

.github/workflows/devnet-deploy.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Deploy devnet
33
on:
44
workflow_dispatch:
55
inputs:
6+
cluster:
7+
description: The cluster to deploy to, e.g. aztec-gke-private
8+
required: true
9+
default: "aztec-gke-private"
610
namespace:
711
description: The namespace to deploy to, e.g. smoke
812
required: true
@@ -40,7 +44,7 @@ env:
4044
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
4145
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4246
CONTRACT_S3_BUCKET: s3://static.aztec.network
43-
CLUSTER_NAME: aztec-gke
47+
CLUSTER_NAME: ${{ inputs.cluster }}
4448
REGION: us-west1-a
4549
NAMESPACE: ${{ inputs.namespace }}
4650
AZTEC_DOCKER_IMAGE: ${{ inputs.aztec_docker_image }}
@@ -50,6 +54,7 @@ jobs:
5054
uses: ./.github/workflows/network-deploy.yml
5155
with:
5256
namespace: ${{ github.event.inputs.namespace }}
57+
cluster: ${{ github.event.inputs.cluster }}
5358
values_file: release-devnet.yaml
5459
aztec_docker_image: ${{ github.event.inputs.aztec_docker_image }}
5560
deployment_mnemonic_secret_name: ${{ github.event.inputs.deployment_mnemonic_secret_name }}

.github/workflows/network-deploy.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Aztec Network Deployment
33
on:
44
workflow_call:
55
inputs:
6+
cluster:
7+
description: The cluster to deploy to, e.g. aztec-gke-private
8+
required: true
9+
type: string
610
namespace:
711
description: The namespace to deploy to, e.g. smoke
812
required: true
@@ -50,6 +54,10 @@ on:
5054
required: true
5155
workflow_dispatch:
5256
inputs:
57+
cluster:
58+
description: The cluster to deploy to, e.g. aztec-gke-private
59+
required: true
60+
type: string
5361
namespace:
5462
description: The namespace to deploy to, e.g. smoke
5563
required: true
@@ -103,10 +111,10 @@ jobs:
103111
DEPLOYMENT_MNEMONIC_SECRET_NAME: ${{ inputs.deployment_mnemonic_secret_name }}
104112
DEPLOYMENT_SALT: ${{ inputs.deployment_salt }}
105113
CHART_PATH: ./spartan/aztec-network
106-
CLUSTER_NAME: aztec-gke
114+
CLUSTER_NAME: ${{ inputs.cluster }}
107115
REGION: us-west1-a
108116
TF_STATE_BUCKET: aztec-terraform
109-
GKE_CLUSTER_CONTEXT: gke_testnet-440309_us-west1-a_aztec-gke
117+
GKE_CLUSTER_CONTEXT: "gke_testnet-440309_us-west1-a_${{ inputs.cluster }}"
110118

111119
steps:
112120
- name: Checkout code
@@ -151,12 +159,9 @@ jobs:
151159
run: |
152160
REPO=$(git rev-parse --show-toplevel)
153161
154-
export VALUES_PATH="$REPO/spartan/aztec-network/values/${{ env.VALUES_FILE }}"
155-
export DEFAULT_VALUES_PATH="$REPO/spartan/aztec-network/values.yaml"
156-
157162
export MNEMONIC="${{ steps.get-mnemonic.outputs.mnemonic }}"
158163
159-
$REPO/yarn-project/end-to-end/scripts/bash/generate_devnet_config.sh
164+
$REPO/spartan/scripts/generate_devnet_config.sh ${{ env.VALUES_FILE }}
160165
161166
- name: Setup Terraform
162167
uses: hashicorp/setup-terraform@v2

.github/workflows/network-test.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Aztec Network Test
33
on:
44
workflow_dispatch:
55
inputs:
6+
cluster:
7+
description: The cluster to deploy to, e.g. aztec-gke-private
8+
required: true
9+
default: "aztec-gke-private"
610
namespace:
711
description: The namespace to deploy to, e.g. smoke
812
required: true
@@ -22,10 +26,10 @@ jobs:
2226
NAMESPACE: ${{ inputs.namespace }}
2327
TEST: ${{ inputs.test }}
2428
CHART_PATH: ./spartan/aztec-network
25-
CLUSTER_NAME: aztec-gke
29+
CLUSTER_NAME: ${{ inputs.cluster }}
2630
REGION: us-west1-a
2731
PROJECT_ID: testnet-440309
28-
GKE_CLUSTER_CONTEXT: gke_testnet-440309_us-west1-a_aztec-gke
32+
GKE_CLUSTER_CONTEXT: "gke_testnet-440309_us-west1-a_${{ inputs.cluster }}"
2933

3034
steps:
3135
- name: Checkout code

.github/workflows/nightly-kind-test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
strategy:
5252
matrix:
5353
test:
54-
- transfer
55-
- reorg
54+
- transfer.test.ts
55+
- reorg.test.ts
5656
steps:
5757
- uses: actions/checkout@v4
5858
with: { ref: "${{ env.GIT_COMMIT }}" }
@@ -66,7 +66,7 @@ jobs:
6666
run: |
6767
docker pull aztecprotocol/aztec:${{ env.GIT_COMMIT }}
6868
docker pull aztecprotocol/end-to-end:${{ env.GIT_COMMIT }}
69-
FORCE_COLOR=1 CLEANUP_CLUSTER=true ./ci.sh test-kind-network ${{ matrix.test }}.test.ts 16-validators || true
69+
FORCE_COLOR=1 INSTALL_METRICS=false ./spartan/scripts/test_kind.sh "./src/spartan/${{ matrix.config.test }}" 16-validators.yaml
7070
7171
proving-test:
7272
needs: build
@@ -85,8 +85,8 @@ jobs:
8585
run: |
8686
docker pull aztecprotocol/aztec:${{ env.GIT_COMMIT }}
8787
docker pull aztecprotocol/end-to-end:${{ env.GIT_COMMIT }}
88-
INSTALL_TIMEOUT=45m FORCE_COLOR=1 CLEANUP_CLUSTER=true \
89-
./ci.sh test-kind-network proving.test.ts 1-validator-with-proving || true
88+
INSTALL_TIMEOUT=45m FORCE_COLOR=1 INSTALL_METRICS=false \
89+
./spartan/scripts/test_kind.sh ./src/spartan/proving.test.ts 1-validator-with-proving || true
9090
9191
success-check:
9292
runs-on: ubuntu-20.04

.github/workflows/nightly-masternet-deploy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
uses: ./.github/workflows/network-deploy.yml
2929
with:
3030
ref: master
31+
cluster: aztec-gke-private
3132
namespace: masternet
3233
values_file: rc-1.yaml
3334
aztec_docker_image: aztecprotocol/aztec@${{ needs.get-latest-commit.outputs.commit }}

Earthfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ noir-projects-with-cache:
243243
FROM +bootstrap
244244
ENV CI=1
245245
ENV USE_CACHE=1
246-
LET artifact=noir-projects-ci-tests-$(./noir-projects/bootstrap.sh hash)
246+
LET artifact=noir-projects-ci-tests-$(./noir-projects/bootstrap.sh hash)-$(ci3/cache_content_hash yarn-project/txe)
247247
IF ci3/test_should_run $artifact
248248
# could be changed to bootstrap once txe solution found
249249
WAIT

aztec-nargo/compile_then_postprocess.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# run nargo and then postprocess any created artifacts.
66
#
77
# Usage: compile_then_postprocess.sh [nargo args]
8-
set -eu
8+
set -euo pipefail
99

1010
NARGO=${NARGO:-nargo}
1111
TRANSPILER=${TRANSPILER:-avm-transpiler}

barretenberg/.gitrepo

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[subrepo]
77
remote = https://github.com/AztecProtocol/barretenberg
88
branch = master
9-
commit = e67c50dbf5e3c978662b5eab0789fd2b3aefb47d
10-
parent = ad604ea017b6158efa2ea8934721d9a557ef946b
9+
commit = 2b718dec0624621c81bdc406bed8db0c30ed2a77
10+
parent = 6ce23892c8762ffde6fc3198e1e392cd1a72969b
1111
method = merge
1212
cmdver = 0.4.6

barretenberg/acir_tests/browser-test-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "module",
77
"scripts": {
88
"build": "rm -rf dest && webpack",
9-
"serve:dest:st": "serve -n -L -p ${PORT:-8080} dest",
9+
"serve:dest:st": "serve -n -L -p ${PORT:-8080} -c ../serve.st.json dest",
1010
"serve:dest:mt": "serve -n -L -p ${PORT:-8080} -c ../serve.mt.json dest"
1111
},
1212
"devDependencies": {

barretenberg/acir_tests/browser-test-app/serve.mt.json

+11
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@
1212
"value": "same-origin"
1313
}
1414
]
15+
},
16+
{
17+
"source" : "**/*.gz",
18+
"headers" : [{
19+
"key" : "Content-Encoding",
20+
"value" : "gzip"
21+
},
22+
{
23+
"key" : "Content-Type",
24+
"value" : "application/wasm"
25+
}]
1526
}
1627
]
1728
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"headers": [
3+
{
4+
"source" : "**/*.gz",
5+
"headers" : [{
6+
"key" : "Content-Encoding",
7+
"value" : "gzip"
8+
},
9+
{
10+
"key" : "Content-Type",
11+
"value" : "application/wasm"
12+
}]
13+
}
14+
]
15+
}

barretenberg/acir_tests/browser-test-app/src/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<title>My Test bb.js App</title>
55
</head>
66
<body>
7-
<script src="index.js"></script>
7+
<script type="module" src="index.js"></script>
88
</body>
99
</html>

barretenberg/acir_tests/browser-test-app/webpack.config.js

+22
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ export default {
1212
index: "./src/index.ts",
1313
},
1414
module: {
15+
parser: {
16+
javascript: { importMeta: false },
17+
},
1518
rules: [
19+
{
20+
test: /\.gz$/,
21+
type: 'asset/resource',
22+
},
1623
{
1724
test: /\.tsx?$/,
1825
use: [{ loader: "ts-loader" }],
@@ -23,8 +30,23 @@ export default {
2330
path: resolve(dirname(fileURLToPath(import.meta.url)), "./dest"),
2431
filename: "[name].js",
2532
chunkFilename: "[name].chunk.js", // This naming pattern is used for chunks produced from code-splitting.
33+
library: {
34+
type: 'module',
35+
},
36+
chunkFormat: 'module',
37+
},
38+
experiments: {
39+
outputModule: true,
2640
},
2741
plugins: [
42+
new CopyWebpackPlugin({
43+
patterns: [
44+
{
45+
context: '../../ts/dest/browser',
46+
from: '*.gz',
47+
},
48+
],
49+
}),
2850
new HtmlWebpackPlugin({ inject: false, template: "./src/index.html" }),
2951
new webpack.DefinePlugin({ "process.env.NODE_DEBUG": false }),
3052
],

barretenberg/acir_tests/browser-test-app/yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ __metadata:
66
cacheKey: 10c0
77

88
"@aztec/bb.js@file:../../ts::locator=browser-test-app%40workspace%3A.":
9-
version: 0.67.1
10-
resolution: "@aztec/bb.js@file:../../ts#../../ts::hash=cd38cd&locator=browser-test-app%40workspace%3A."
9+
version: 0.72.1
10+
resolution: "@aztec/bb.js@file:../../ts#../../ts::hash=2e6237&locator=browser-test-app%40workspace%3A."
1111
dependencies:
1212
comlink: "npm:^4.4.1"
1313
commander: "npm:^12.1.0"
@@ -17,7 +17,7 @@ __metadata:
1717
tslib: "npm:^2.4.0"
1818
bin:
1919
bb.js: ./dest/node/main.js
20-
checksum: 10c0/c6c1476f5f5d5cc1ea7022043e00870ee0743fd73a532c171586ab74bac53f3888c648bd4057de5a602e4a556cbb5d91454f57e0875ab002ccc87e7f83f12e43
20+
checksum: 10c0/174074ea937d9e4888e1aa600717ace0f0c5745d15bdd23730c136d927c2d58eec87ba83cb21fbfb72f7aa00ec128a564d7fa6d822f709e0327e01aa6475e255
2121
languageName: node
2222
linkType: hard
2323

0 commit comments

Comments
 (0)