Skip to content

Commit

Permalink
feat(spartan): cl layer in spartan
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Jan 17, 2025
1 parent 6a75010 commit 1d723d9
Show file tree
Hide file tree
Showing 2,189 changed files with 49,358 additions and 121,550 deletions.
2 changes: 1 addition & 1 deletion .github/ensure-builder/install
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ export -f install_parallel
if ! command -v parallel >/dev/null; then
DENOISE=1 ci3/denoise ci3/retry install_parallel
fi
[ -x /usr/local/bin/earthly ] || ci3/dump_fail ci3/earthly_install
[ -x /usr/local/bin/earthly ] || ci3/dump_fail ci3/earthly_install
2 changes: 1 addition & 1 deletion .github/ensure-builder/run
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ fi
echo "exit_code=$exit_code" >> $GITHUB_OUTPUT
if [ $exit_code = 155 ]; then
echo "Spot eviction detected - retrying with on-demand."
fi
fi
1 change: 1 addition & 0 deletions .github/ensure-tester/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ inputs:
default: BestEffort
runs:
# define an action, runs in OS of caller
# ami-052a1e16394277fdf is an ubuntu 22.04.4 jammy
using: composite
steps:
- name: Select Instance Type and AMI
Expand Down
6 changes: 6 additions & 0 deletions .github/ensure-tester/run
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ scripts/run_on_tester "
}
export RUN_ID GIT_COMMIT
export -f clone
# update fs limits for k8s
sudo sysctl -w fs.inotify.max_user_watches=65536
sudo sysctl -w fs.inotify.max_user_instances=65536
ulimit -n 32768
flock /var/lock/clone.lock bash -c clone
cd ~/run-$RUN_ID
# reuse script from ensure-builder, but don't set up chron
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ jobs:
./bootstrap.sh image-e2e
- name: "Test"
timeout-minutes: 40
continue-on-error: true
run: |
./bootstrap.sh e2e-test uniswap_trade_on_l1_from_l2
./bootstrap.sh test-e2e uniswap_trade_on_l1_from_l2
rerun-check:
runs-on: ubuntu-20.04
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/ci-mac.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
name: CI (Mac)

on:
push:
branches:
- master
- '*/*mac-build'
pull_request:
types: [synchronize, labeled]

jobs:
build-mac-intel:
name: Build on Mac x86_64-apple-darwin
# Run this job if it's a direct push OR if a PR is labeled with "macos-ci".
if: >
github.event_name == 'push' ||
(github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'macos-ci'))
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ inputs.tag || env.GITHUB_REF }}

- name: Create Mac Build Environment
run: brew install cmake ninja llvm@16
Expand All @@ -29,12 +35,15 @@ jobs:
build-mac-m1:
name: Build on Mac aarch64-apple-darwin
# Run this job if it's a direct push OR if a PR is labeled with "macos-ci".
if: >
github.event_name == 'push' ||
(github.event_name == 'pull_request' &&
contains(github.event.pull_request.labels.*.name, 'macos-ci'))
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ inputs.tag || env.GITHUB_REF }}

- name: Create Mac Build Environment
run: brew install cmake ninja
Expand All @@ -48,7 +57,7 @@ jobs:
build-check:
name: Check builds are successful
needs: [build-mac-intel, build-mac-m1]
if: ${{ always() }}
if: always()
runs-on: ubuntu-latest
steps:
- name: Report overall success
Expand Down
96 changes: 40 additions & 56 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ jobs:
id: filter
with:
filters: |
base-images:
- 'build-images/**'
noir:
- 'noir/noir-repo/**'
bb:
Expand Down Expand Up @@ -127,6 +129,8 @@ jobs:
runner_type: builder-x86
username: ${{ needs.configure.outputs.username }}
run: |
sudo apt install unzip
curl "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "awscliv2.zip" && unzip awscliv2.zip && sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update && rm -rf aws awscliv2.zip
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u aztecprotocolci --password-stdin
./build-images/bootstrap.sh ci
Expand Down Expand Up @@ -235,7 +239,7 @@ jobs:
ci3/cache_upload_flag "$artifact"
fi
# all the benchmarking end-to-end integration tests for aztec (not required to merge)
# All the benchmarking end-to-end integration tests for aztec (not required to merge)
bench-e2e:
needs: [images-e2e, configure]
if: needs.configure.outputs.e2e-all == 'true' || needs.configure.outputs.bench-list != '[]'
Expand All @@ -256,15 +260,28 @@ jobs:
if ci3/test_should_run "$artifact"; then
docker pull aztecprotocol/aztec:${{ env.GIT_COMMIT }}
docker pull aztecprotocol/end-to-end:${{ env.GIT_COMMIT }}
export FORCE_COLOR=1
export EARTHLY_BUILD_ARGS="${{ env.EARTHLY_BUILD_ARGS }}"
./yarn-project/end-to-end/scripts/e2e_test.sh ${{ matrix.test }}
export COMMIT_HASH=${{ env.GIT_COMMIT }}
export PULL_REQUEST=${{ github.event.pull_request.number }}
export BRANCH=${{ github.ref_name }}
scripts/logs/upload_logs_to_s3.sh /usr/var/log
FORCE_COLOR=1 ./yarn-project/end-to-end/scripts/e2e_test.sh ${{ matrix.test }}
ci3/cache_upload_flag "$artifact"
fi
- name: Inspect data folder
continue-on-error: true
run: tree ./yarn-project/end-to-end/out
- name: Store benchmark result
if: github.ref == 'refs/heads/master'
continue-on-error: true
uses: benchmark-action/github-action-benchmark@4de1bed97a47495fc4c5404952da0499e31f5c29
with:
name: "End-to-end Benchmark"
benchmark-data-dir-path: "dev/e2e-bench"
tool: "customSmallerIsBetter"
output-file-path: ./yarn-project/end-to-end/out/bench.json
github-token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
auto-push: true
alert-threshold: "150%"
comment-on-alert: true
fail-on-alert: false
alert-comment-cc-users: "@philwindle @spalladino"
max-items-in-chart: 50

# Only e2e test that can't run on standard github runner
e2e-prover-full:
Expand Down Expand Up @@ -316,49 +333,6 @@ jobs:
ci3/cache_upload_flag acir-bench-$(./barretenberg/acir_tests/bootstrap.sh hash)
fi
# TODO(ci3) fix and reinstate
# bench-summary:
# if: needs.configure.outputs.e2e-all == 'true'
# needs:
# - acir-bench
# - bench-e2e
# - configure
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 100 # Downloading base benchmark from master requires access to history
# ref: "${{ github.event.pull_request.head.sha }}"
# - uses: ./.github/ci-setup-action
# - name: "Build and upload bench aggregate file"
# uses: ./.github/ensure-builder
# with:
# runner_type: builder-x86
# username: ${{ needs.configure.outputs.username }}
# run: scripts/earthly-ci ./yarn-project/scripts/+bench-aggregate
# - name: "Download base benchmark and package into earthly"
# if: github.event_name == 'pull_request'
# uses: ./.github/run-on-builder
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# BENCH_FOLDER: "./scripts/logs/tmp/bench"
# PULL_REQUEST: "${{ github.event.pull_request.number }}"
# with:
# run: |
# # Download the base benchmark locally (requires AWS creds and .git history)
# mkdir -p $BENCH_FOLDER
# ./scripts/logs/download_base_benchmark_from_s3.sh
# # Package it into an earthly artifact to read from bench-comment
# scripts/earthly-ci ./scripts/logs+pack-base-benchmark
# - name: "Generate summary comment if pull request"
# if: github.event_name == 'pull_request'
# uses: ./.github/run-on-builder
# env:
# AZTEC_BOT_GITHUB_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
# with:
# run: scripts/earthly-ci ./yarn-project/scripts/+bench-comment

# barretenberg (prover) native, AVM (public VM) and Merkle tree (world state) tests
# ran on own runner for resource reasons (memory x cpu intensive)
bb-native-tests:
Expand Down Expand Up @@ -405,6 +379,15 @@ jobs:
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u aztecprotocolci --password-stdin
cd yarn-project/end-to-end
NAMESPACE=smoke FRESH_INSTALL=true VALUES_FILE=ci-smoke.yaml ./scripts/network_test.sh ./src/spartan/smoke.test.ts
- name: Copy Network Logs
if: always()
run: scripts/copy_from_tester yarn-project/end-to-end/scripts/network-test.log network-test.log || true
- name: Upload Network Logs
if: always()
uses: actions/upload-artifact@v4
with:
name: kind-network-smoke.log
path: network-test.log

kind-network-test:
needs: [images-e2e, configure]
Expand All @@ -414,10 +397,10 @@ jobs:
fail-fast: false
matrix:
config:
- test: reorg.test.ts
values: ci
runner_type: 16core-tester-x86-high-memory
timeout: 60
# - test: reorg.test.ts
# values: ci
# runner_type: 16core-tester-x86-high-memory
# timeout: 60
- test: 4epochs.test.ts
values: ci
runner_type: 16core-tester-x86
Expand Down Expand Up @@ -514,6 +497,7 @@ jobs:
- uses: actions/checkout@v4
with: { ref: "${{ github.event.pull_request.head.sha }}" }
- uses: ./.github/ci-setup-action

- name: Build Boxes
uses: ./.github/ensure-builder
timeout-minutes: 40
Expand Down Expand Up @@ -600,7 +584,7 @@ jobs:

public-functions-size-report:
needs: [ci-rest, configure]
if: github.ref_name == 'master' || needs.configure.outputs.non-docs == 'true'
if: github.ref_name == 'master' || needs.configure.outputs.non-docs == 'true'
runs-on: ubuntu-latest
permissions:
pull-requests: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/devnet-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
PXE_PORT="$(jq -r .pxe.service.nodePort helm_values.json)"
FAUCET_PORT="$(jq -r .faucet.apiServerPort helm_values.json)"
ETHEREUM_PORT="$(jq -r .ethereum.service.port helm_values.json)"
ETHEREUM_PORT="$(jq -r .ethereum.execution.service.port helm_values.json)"
L1_CHAIN_ID="$(jq -r .ethereum.chainId helm_values.json)"
MNEMONIC="$(jq -r .aztec.l1DeploymentMnemonic helm_values.json)"
Expand Down
2 changes: 1 addition & 1 deletion .noir-sync-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ebc4d2cf2b91658a10393733407f33d50a0faaf1
9471e28ad6f02bf2fae3782c3db68106b615595f
8 changes: 4 additions & 4 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
".": "0.69.1",
".": "0.70.0",
"yarn-project/cli": "0.35.1",
"yarn-project/aztec": "0.69.1",
"barretenberg": "0.69.1",
"barretenberg/ts": "0.69.1"
"yarn-project/aztec": "0.70.0",
"barretenberg": "0.70.0",
"barretenberg/ts": "0.70.0"
}
Binary file added .yarn/install-state.gz
Binary file not shown.
Loading

0 comments on commit 1d723d9

Please sign in to comment.