-
Notifications
You must be signed in to change notification settings - Fork 607
fix: 4epochs kind test et al #9358
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
Merged
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
09ed418
fixes
ludamad e924625
Merge remote-tracking branch 'origin/master'
ludamad cabe979
fixes
ludamad 754e438
fix
ludamad bec9fcb
Merge branch 'master' into ad/network-tests-fix
ludamad 8a7968b
Update ci.yml
ludamad e94ed26
fixes
ludamad 5f707fb
Merge remote-tracking branch 'origin/ad/network-tests-fix' into ad/ne…
ludamad d16ffb9
fixes
ludamad 69946d3
Update ci.yml
ludamad af44ffe
Update ci.yml
ludamad e72907d
fixes
ludamad e2b0377
Merge remote-tracking branch 'origin/ad/network-tests-fix' into ad/ne…
ludamad 946c12b
fix native test
ludamad 26d7208
fix
ludamad 7da5cac
use stern
ludamad 6666abf
pass
ludamad 8449ef3
fix network tests
ludamad dacf6e5
fix
ludamad f1b4708
always pull
ludamad d81b88b
try force upgrade
ludamad a5777f0
fix install
ludamad 7d7d7ff
fix
ludamad 34ecfc9
iterate on deploy spartan
ludamad 5373dc7
fix
ludamad 0db1443
fix
ludamad 01bb012
fix
ludamad f7586ab
update
ludamad f34742e
allow native-network scripts to be called
ludamad 34d0d7a
bett flock
ludamad 7fe087a
revert
ludamad c2e22b4
kind network e2e
ludamad 290d9ce
add cluster test
ludamad 79a9092
fix syntax
ludamad 967e8fc
make bot log better
ludamad 3b01d14
fix
ludamad 6db13a7
more verbose tests
ludamad ecfb39b
fix formatting
ludamad d727725
Merge remote-tracking branch 'origin/master' into ad/network-tests-fix
ludamad 58b1700
auth pulls
ludamad 7449ef2
try fix?
ludamad b7f4307
fix
ludamad b6bcf35
fix
ludamad 5e6a68c
Update Earthfile
ludamad 35d8b54
Merge branch 'master' into ad/network-tests-fix
ludamad 0d172c3
better kind config
ludamad fe30632
Merge remote-tracking branch 'origin/ad/network-tests-fix' into ad/ne…
ludamad a8facab
Update
ludamad ad84fc3
Update test_spartan.sh
ludamad 7c291d7
Update deploy_spartan.sh
ludamad cf8bc73
Update ci.yml
ludamad c3c3fdb
Update network_test.sh
ludamad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,71 @@ | ||
| #!/bin/bash | ||
| set -eu | ||
| set -eux | ||
| set -o pipefail | ||
|
|
||
| TAG=$1 | ||
| VALUES=$2 | ||
| NAMESPACE=${3:-spartan} | ||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
|
||
| if [ -z "$TAG" ]; then | ||
| echo "Usage: $0 <tag> <values>" | ||
| echo "Example: $0 latest 48-validators" | ||
| echo "Usage: $0 <docker image tag> <values> (optional: <namespace>)" | ||
| echo "Example: $0 latest 48-validators devnet" | ||
| exit 1 | ||
| fi | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| function cleanup() { | ||
| set +x | ||
| # kill everything in our process group except our process | ||
| trap - SIGTERM && kill $(pgrep -g $$ | grep -v $$) $(jobs -p) &>/dev/null || true | ||
| } | ||
| trap cleanup SIGINT SIGTERM EXIT | ||
|
|
||
| function show_status_until_pxe_ready() { | ||
| set +x | ||
| sleep 15 # let helm upgrade start | ||
| kubectl get pods -n $NAMESPACE | ||
| for i in {1..20} ; do | ||
| # Show once a minute x 20 minutes | ||
| kubectl get pods -n $NAMESPACE | ||
| sleep 60 | ||
| done | ||
| } | ||
| show_status_until_pxe_ready & | ||
|
|
||
| helm upgrade --install spartan $SCRIPT_DIR/../aztec-network \ | ||
| --namespace spartan \ | ||
| --create-namespace \ | ||
| --values $SCRIPT_DIR/../aztec-network/values/$VALUES.yaml \ | ||
| --set images.aztec.image="aztecprotocol/aztec:$TAG" \ | ||
| --set network.public=true \ | ||
| --wait \ | ||
| --wait-for-jobs=true \ | ||
| --timeout=30m | ||
| function log_stern() { | ||
| set +x | ||
| stern $NAMESPACE -n $NAMESPACE 2>&1 > "$SCRIPT_DIR/logs/$NAMESPACE-deploy.log" | ||
| } | ||
| log_stern & | ||
|
|
||
| function upgrade() { | ||
| # pull and resolve the image just to be absolutely sure k8s gets the latest image in the tag we want | ||
| docker pull --platform linux/amd64 aztecprotocol/aztec:$TAG | ||
| IMAGE=$(docker inspect --format='{{index .RepoDigests 0}}' aztecprotocol/aztec:$TAG) | ||
| if ! [ -z "${PRINT_ONLY:-}" ] ; then | ||
| helm template $NAMESPACE $SCRIPT_DIR/../aztec-network \ | ||
| --namespace $NAMESPACE \ | ||
| --create-namespace \ | ||
| --values $SCRIPT_DIR/../aztec-network/values/$VALUES.yaml \ | ||
| --set images.aztec.image="$IMAGE" \ | ||
| --set network.public=true | ||
| else | ||
| helm upgrade --install $NAMESPACE $SCRIPT_DIR/../aztec-network \ | ||
| --namespace $NAMESPACE \ | ||
| --create-namespace \ | ||
| --values $SCRIPT_DIR/../aztec-network/values/$VALUES.yaml \ | ||
| --set images.aztec.image="$IMAGE" \ | ||
| --set network.public=true \ | ||
| --wait \ | ||
| --wait-for-jobs=true \ | ||
| --timeout=30m 2>&1 | ||
| fi | ||
| } | ||
|
|
||
| # running the helm upgrade, but will try again if the setup l2 contracts job complains about being immutable | ||
| if ! upgrade | tee "$SCRIPT_DIR/logs/$NAMESPACE-helm.log" ; then | ||
|
ludamad marked this conversation as resolved.
|
||
| if grep 'cannot patch "'$NAMESPACE'-aztec-network-setup-l2-contracts"' "$SCRIPT_DIR/logs/$NAMESPACE-helm.log" ; then | ||
| kubectl delete job $NAMESPACE-aztec-network-setup-l2-contracts -n $NAMESPACE | ||
| upgrade | ||
| fi | ||
| fi | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| *.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| #!/bin/bash | ||
| # Targets a running cluster and tests 5 slots worth of transfers against it. | ||
| set -eu | ||
| set -o pipefail | ||
|
|
||
| # Test a deployed cluster | ||
|
|
||
| NAMESPACE=${1:-spartan} | ||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
|
||
| if [ -z "$NAMESPACE" ]; then | ||
| echo "Usage: $0 (optional: <namespace>)" | ||
| echo "Example: $0 devnet" | ||
| exit 1 | ||
| fi | ||
|
|
||
| echo "Note: Repo should be bootstrapped with ./bootstrap.sh fast." | ||
|
|
||
| # Fetch the service URLs based on the namespace for injection in the test-transfer.sh | ||
| export BOOTNODE_URL=http://$(kubectl get svc -n $NAMESPACE -o jsonpath="{.items[?(@.metadata.name=='$NAMESPACE-aztec-network-boot-node-lb-tcp')].status.loadBalancer.ingress[0].hostname}"):8080 | ||
|
ludamad marked this conversation as resolved.
|
||
| export PXE_URL=http://$(kubectl get svc -n $NAMESPACE -o jsonpath="{.items[?(@.metadata.name=='$NAMESPACE-aztec-network-pxe-lb')].status.loadBalancer.ingress[0].hostname}"):8080 | ||
| export ETHEREUM_HOST=http://$(kubectl get svc -n $NAMESPACE -o jsonpath="{.items[?(@.metadata.name=='$NAMESPACE-aztec-network-ethereum-lb')].status.loadBalancer.ingress[0].hostname}"):8545 | ||
|
|
||
| echo "BOOTNODE_URL: $BOOTNODE_URL" | ||
| echo "PXE_URL: $PXE_URL" | ||
| echo "ETHEREUM_HOST: $ETHEREUM_HOST" | ||
|
|
||
| # hack to ensure L2 contracts are considered deployed | ||
| touch $SCRIPT_DIR/../../yarn-project/end-to-end/scripts/native-network/state/l2-contracts.env | ||
| bash -x $SCRIPT_DIR/../../yarn-project/end-to-end/scripts/native-network/test-transfer.sh | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.