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

feat: Testnet Deploy Branch #9788

Closed
wants to merge 56 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
86762a1
feat: sequencer is aware of slot progression (#9767)
just-mitch Nov 6, 2024
5bae479
fix: don't crash sequencer when it is too slow (#9790)
just-mitch Nov 6, 2024
7bc5e56
chore: more descriptive slack alert take 2 (#9791)
ludamad Nov 6, 2024
c95e5fd
feat: constify eccvm and translator (#9661)
lucasxia01 Nov 7, 2024
01f7c01
git subrepo push --branch=master barretenberg
AztecBot Nov 7, 2024
28d469b
chore: replace relative paths to noir-protocol-circuits
AztecBot Nov 7, 2024
91bfe6c
git_subrepo.sh: Fix parent in .gitrepo file. [skip ci]
AztecBot Nov 7, 2024
7a7e75c
git subrepo push --branch=master noir-projects/aztec-nr
AztecBot Nov 7, 2024
2fcf94e
feat: process tagged logs (#9623)
Thunkar Nov 7, 2024
d5e9a98
chore: range error flake (#9784)
LHerskind Nov 7, 2024
2509e2f
chore: Boring names (#9725)
LHerskind Nov 7, 2024
f1cdc2d
feat: prove openings of masking polynomials in ECCVM and Translator (…
iakovenkos Nov 7, 2024
f6f0be8
chore: update boundary in test (#9728)
LHerskind Nov 7, 2024
65b1cd2
refactor: Improve input validation in bootstrap.sh and refactor bit_t…
cypherpepe Nov 7, 2024
0cb0343
feat: add canPruneAtTime (#9751)
LHerskind Nov 7, 2024
1b41d38
chore: reverts "cleanup and address comments after refactor" (#9801)
dbanks12 Nov 7, 2024
f4c6f0e
fix: re-enable p2p tests (#9777)
Maddiaa0 Nov 7, 2024
ae7cfe7
feat: Constrain App function VKs (#9756)
sirasistant Nov 7, 2024
d77e473
feat: Origin Tags part 3 (Memory) (#9758)
Rumata888 Nov 7, 2024
58e75cd
feat: extract gossipsub / discv5 dependency gauge prometheus metrics …
Maddiaa0 Nov 7, 2024
48969ce
feat(telemetry): configurable collection time (#9741)
Maddiaa0 Nov 7, 2024
4660381
feat: introduce avm circuit public inputs (#9759)
LeilaWang Nov 7, 2024
9de9e4d
feat(docs): add Sandbox PXE proving doc (#9815)
critesjosh Nov 7, 2024
2a98ebb
Chore: Fix for boot node pod dns in Google Kubernetes Engine (#9818)
stevenplatt Nov 7, 2024
ddba505
chore: remove some more warnings (#9819)
nventuro Nov 8, 2024
bd2a4f7
git subrepo push --branch=master barretenberg
AztecBot Nov 8, 2024
1c6cca5
chore: replace relative paths to noir-protocol-circuits
AztecBot Nov 8, 2024
2f42b47
git_subrepo.sh: Fix parent in .gitrepo file. [skip ci]
AztecBot Nov 8, 2024
f96ce2f
git subrepo push --branch=master noir-projects/aztec-nr
AztecBot Nov 8, 2024
0ebd52e
chore: rename aggregation object to pairing point accumulator (#9817)
lucasxia01 Nov 8, 2024
3a49cfb
fix: ci.yml, use correct runner (#9824)
ludamad Nov 8, 2024
2096dc2
feat: mega zk features (#9774)
iakovenkos Nov 8, 2024
f6875ee
test: deflaker CI for testnet branch (#9820)
ludamad Nov 8, 2024
e06b192
fix(docs): Add missing dependency in token tutorial (#9845)
critesjosh Nov 8, 2024
2e13938
refactor: nuking `pay_refund_with_shielded_rebate` flow (#9639)
benesjan Nov 8, 2024
9bc5a2f
feat: send G_0 in proof to reduce tube size (#9766)
lucasxia01 Nov 8, 2024
3a8e8bf
chore: disable rediscovery test (#9844)
Maddiaa0 Nov 8, 2024
90696cd
feat: bb.js tests of ClientIVC (#9412)
codygunton Nov 8, 2024
61c33a0
chore: bump runner cache disk size (#9849)
ludamad Nov 8, 2024
82fd125
feat: domain separate block proposals and attestations (#9842)
Maddiaa0 Nov 8, 2024
23ff518
feat: zk shplemini (#9830)
iakovenkos Nov 8, 2024
9978c97
fix: Fix mac build by calling `count` on durations (#9855)
codygunton Nov 8, 2024
6f10be3
fix: bench prover test (#9856)
benesjan Nov 8, 2024
fccbb36
fix(build): l1-contracts .rebuild_patterns did not cover test files (…
ludamad Nov 8, 2024
23c122d
fix: tree heights that last past 3 days (#9760)
ludamad Nov 8, 2024
059c895
git subrepo push --branch=master barretenberg
AztecBot Nov 9, 2024
e044c67
chore: replace relative paths to noir-protocol-circuits
AztecBot Nov 9, 2024
7b7fc2a
git_subrepo.sh: Fix parent in .gitrepo file. [skip ci]
AztecBot Nov 9, 2024
402cfc3
git subrepo push --branch=master noir-projects/aztec-nr
AztecBot Nov 9, 2024
bfd4f2c
chore: Move epoch and slot durations to config (#9861)
spalladino Nov 9, 2024
5299f5f
fix: Revert changes to ci.yml (#9863)
codygunton Nov 9, 2024
5246251
fix: fixing devcontainers to use the sandbox docker-compose file (#9782)
signorecello Nov 9, 2024
6554122
chore: Validate RPC inputs (#9672)
spalladino Nov 10, 2024
5be770f
fix: deploy l2 contracts fails on 48 validator (#9860)
just-mitch Nov 11, 2024
7d1c797
Revert "fix: deploy l2 contracts fails on 48 validator" (#9871)
ludamad Nov 11, 2024
dd83d52
chore: Revert "chore: Validate RPC inputs" (#9875)
ludamad Nov 11, 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
  •  
  •  
  •  
8 changes: 3 additions & 5 deletions .devcontainer/scripts/onCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
TYPE=$1
NAME=$2

curl -s install.aztec.network | NON_INTERACTIVE=1 BIN_PATH=/usr/local/bin bash -s
docker compose -f $HOME/.aztec/docker-compose.yml pull
curl -s install.aztec.network | NON_INTERACTIVE=1 bash -s
docker compose -f $HOME/.aztec/docker-compose.sandbox.yml pull

if ! grep -q "PXE_URL" ~/.bashrc; then
echo "export PXE_URL=https://\$CODESPACE_NAME-8080.preview.\$GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN" >> ~/.bashrc
fi

if ! grep -q "alias sandbox" ~/.bashrc; then
echo "alias sandbox=\"npx aztec-app sandbox\"" >> ~/.bashrc
fi

corepack enable

if [ "$TYPE" != "sandbox_only" ]; then
Expand Down
61 changes: 1 addition & 60 deletions .devcontainer/scripts/postAttachCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,63 +4,4 @@ apt update
apt install gh
gh codespace ports visibility 8080:public -c $CODESPACE_NAME

npx aztec-app sandbox start

r=$(tput sgr0) # Reset color
bold=$(tput bold) # Bold text
g=$(tput setaf 46) # Light Green
b=$(tput setaf 21) # Bright Blue
p=$(tput setaf 13) # Magenta
y=$(tput setaf 226) # Bright Yellow
c=$(tput setaf 51) # Cyan
o=$(tput setaf 208) # Orange

# Function to print colored text
print_colored() {
case $2 in
green)
color=$g
;;
blue)
color=$b
;;
magenta)
color=$p
;;
yellow)
color=$y
;;
cyan)
color=$c
;;
orange)
color=$o
;;
*)
color=$r
;;
esac
echo "${color}$1${r}"
}

echo
echo "${bold}${c} █████╗ ███████╗████████╗███████╗ ██████╗${r}"
echo "${bold}${o}██╔══██╗╚══███╔╝╚══██╔══╝██╔════╝██╔════╝${r}"
echo "${bold}${g}███████║ ███╔╝ ██║ █████╗ ██║${r}"
echo "${bold}${b}██╔══██║ ███╔╝ ██║ ██╔══╝ ██║${r}"
echo "${bold}${p}██║ ██║███████╗ ██║ ███████╗╚██████╗${r}"
echo "${bold}${y}╚═╝ ╚═╝╚══════╝ ╚═╝ ╚══════╝ ╚═════╝${r}"
echo
print_colored "${bold}Your codespace is ready with your chosen box! 🎉" "cyan"
print_colored "You can now yarn dev or any other package.json script." "cyan"
echo
print_colored "Manage the running development network by running:" "magenta"
print_colored "sandbox [start, stop, logs, etc]" "green"
print_colored "example: \"sandbox logs\""
echo
print_colored "You can also connect your local environment to it." "magenta"
print_colored "To do so, prepend your commands with this codespace's sandbox URL:" "magenta"
print_colored "${PXE_URL}" "green"
print_colored "example: PXE_URL=\"${PXE_URL}\" yarn dev"
echo
print_colored "${bold}Enjoy your sandbox! 🏖️" "orange"
aztec start --sandbox
2 changes: 1 addition & 1 deletion .github/ensure-builder/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ runs:
# 128-core x86 instance types, aws chooses for us based on capacity
echo "instance_type=m6a.32xlarge m6i.32xlarge m6in.32xlarge m7a.32xlarge r6a.32xlarge r6i.32xlarge r6in.32xlarge" >> $GITHUB_OUTPUT
echo "ami_id=ami-04d8422a9ba4de80f" >> $GITHUB_OUTPUT
echo "ebs_cache_size=256" >> $GITHUB_OUTPUT
echo "ebs_cache_size=300" >> $GITHUB_OUTPUT
echo "runner_concurrency=20" >> $GITHUB_OUTPUT
echo "runner_label=$USERNAME-x86" >> $GITHUB_OUTPUT
echo "ttl=40" >> $GITHUB_OUTPUT
Expand Down
178 changes: 178 additions & 0 deletions .github/workflows/ci-deflake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
# A testnet release-oriented set of tests to run 5 times to deflake them.
name: CI (deploy branch)
on:
push:
branches:
- release/testnet*
- '*/*deflake'
workflow_dispatch:
inputs: {}

concurrency:
# force parallelism in master
group: ci-${{ github.ref_name == 'master' && github.run_id || github.ref_name }}
cancel-in-progress: true

env:
DOCKERHUB_PASSWORD: "${{ secrets.DOCKERHUB_PASSWORD }}"
RUN_ID: ${{ github.run_id }}
RUN_ATTEMPT: ${{ github.run_attempt }}
GITHUB_TOKEN: ${{ github.token }}
GH_SELF_HOSTED_RUNNER_TOKEN: ${{ secrets.GH_SELF_HOSTED_RUNNER_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
BUILD_INSTANCE_SSH_KEY: ${{ secrets.BUILD_INSTANCE_SSH_KEY }}
GIT_COMMIT: ${{ github.event.pull_request.head.sha || github.sha }}
# kludge until we move away from runners
WAIT_FOR_RUNNERS: false

jobs:
configure:
runs-on: ubuntu-20.04
# Required permissions.
permissions:
pull-requests: read
# Set job outputs to values from filter step.
# Set username to a value derived from our github username.
outputs:
username: ${{ steps.compute_username.outputs.username }}
steps:
- uses: actions/checkout@v4
with: { ref: "${{ env.GIT_COMMIT }}" }
- name: Compute Username
id: compute_username
shell: bash
env:
REPO: "${{ github.repository }}"
BRANCH: "${{ github.ref_name }}"
run: |
GIT_HASH="${{ github.sha }}"
GIT_HASH_LAST8=${GIT_HASH: -8}
GIT_HASH_LAST8_DEC=$(printf "%d" 0x$GIT_HASH_LAST8)
GIT_HASH_MODULO_8=$((GIT_HASH_LAST8_DEC % 8))
echo "username=master-${GIT_HASH_MODULO_8}"
echo "username=master-${GIT_HASH_MODULO_8}" >> $GITHUB_OUTPUT

setup:
needs: [configure]
uses: ./.github/workflows/setup-runner.yml
with:
username: ${{ needs.configure.outputs.username }}
runner_type: builder-x86
secrets: inherit

build:
needs: [setup, configure]
runs-on: ${{ needs.configure.outputs.username }}-x86
steps:
- uses: actions/checkout@v4
with: { ref: "${{ env.GIT_COMMIT }}" }
- uses: ./.github/ci-setup-action
with:
concurrency_key: build-x86
# prepare images locally, tagged by commit hash
- name: "Build E2E Image"
timeout-minutes: 40
run: |
earthly-ci ./yarn-project+export-e2e-test-images

# run specific end to end tests to deflake
e2e:
needs: [build, configure]
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
test:
- e2e_2_pxes
- e2e_block_building
- e2e_prover_coordination
- e2e_prover_full
- e2e_p2p_gossip
- e2e_p2p_rediscovery
- e2e_p2p_reqresp
steps:
- uses: actions/checkout@v4
with: { ref: "${{ env.GIT_COMMIT }}" }
- uses: ./.github/ci-setup-action
- name: Determine runner type
id: runner_type
run: |
runner=$(./scripts/ci/select_runner.sh ${{ matrix.test }})
echo "type=$runner" >> $GITHUB_OUTPUT
- name: Setup and Test
timeout-minutes: 200
uses: ./.github/ensure-tester-with-images
env:
USERNAME: ${{ needs.configure.outputs.username }}
with:
runner_type: ${{ steps.runner_type.outputs.type }}
builder_type: builder-x86
builder_images_to_copy: aztecprotocol/aztec:${{ env.GIT_COMMIT }} aztecprotocol/end-to-end:${{ env.GIT_COMMIT }}
builder_command: scripts/earthly-ci ./yarn-project+export-e2e-test-images
tester_ttl: 200
run: |
set -eux
cd ./yarn-project/end-to-end/
export FORCE_COLOR=1
for i in {1..5} ; do
echo "START OF RUN $i"
./scripts/e2e_test.sh ${{ matrix.test }}
echo "END OF RUN $i"
done

# note: proving disabled
kind-network-test:
needs: [build, configure]
runs-on: ${{ needs.configure.outputs.username }}-x86
strategy:
fail-fast: false
matrix:
config:
- test: reorg.test.ts
values: 16-validators
runner_type: 16core-tester-x86-high-memory
timeout: 360
- test: 4epochs.test.ts
values: 48-validators
runner_type: 32core-tester-x86
timeout: 300
steps:
- uses: actions/checkout@v4
with: { ref: "${{ env.GIT_COMMIT }}" }
- uses: ./.github/ci-setup-action
with:
concurrency_key: kind-network-${{ matrix.config.test }}
- name: Setup and KIND Network Test
timeout-minutes: ${{ matrix.config.timeout }}
uses: ./.github/ensure-tester-with-images
env:
USERNAME: ${{ needs.configure.outputs.username }}
with:
runner_type: ${{ matrix.config.runner_type }}
spot_strategy: None # use on-demand machines
builder_type: builder-x86
# these are copied to the tester and expected by the earthly command below
# if they fail to copy, it will try to build them on the tester and fail
builder_images_to_copy: aztecprotocol/aztec:${{ env.GIT_COMMIT }} aztecprotocol/end-to-end:${{ env.GIT_COMMIT }}
# command to produce the images in case they don't exist
builder_command: scripts/earthly-ci ./yarn-project+export-e2e-test-images
tester_ttl: ${{ matrix.config.timeout }}
run: |
cd yarn-project/end-to-end
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u aztecprotocolci --password-stdin
test=${{ matrix.config.test }}
for i in {1..5} ; do
echo "START OF RUN $i"
NAMESPACE="${test%.test.ts}" FRESH_INSTALL=true VALUES_FILE=${{ matrix.config.values }}.yaml ./scripts/network_test.sh ./src/spartan/$test
echo "END OF RUN $i"
done
- name: Copy Network Logs
if: always() # Run on failure too
run: copy_from_tester /home/ubuntu/run-${{ env.RUN_ID }}/yarn-project/end-to-end/scripts/network-test.log network-test.log
- name: Upload Network Logs
if: always() # Run on failure too
uses: actions/upload-artifact@v4
with:
name: kind-network-test-${{ matrix.config.values }}-${{ matrix.config.test }}.log
path: network-test.log
Loading
Loading