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

chore: bump kustoris #168

Merged
merged 5 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt install kurtosis-cli=1.3.0
sudo apt install kurtosis-cli=1.4.1
kurtosis version

- name: Disable kurtosis analytics
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
with:
repository: 0xPolygon/kurtosis-cdk
path: "kurtosis-cdk"
ref: "v0.2.15"
ref: "v0.2.18"

- name: Setup Bats and bats libs
uses: bats-core/bats-action@2.0.0
Expand Down
29 changes: 14 additions & 15 deletions .github/workflows/test-resequence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,21 @@ jobs:
working-directory: ./cdk-erigon
run: .github/scripts/test_resequence.sh

- name: Prepare logs
if: always()
working-directory: ./kurtosis-cdk
- name: Dump enclave logs
if: failure()
run: kurtosis dump ./dump

- name: Generate archive name
if: failure()
run: |
mkdir -p ci_logs
cd ci_logs
kurtosis service logs cdk-v1 cdk-erigon-node-001 --all > cdk-erigon-node-001.log
kurtosis service logs cdk-v1 cdk-erigon-sequencer-001 --all > cdk-erigon-sequencer-001.log
kurtosis service logs cdk-v1 zkevm-agglayer-001 --all > zkevm-agglayer-001.log
kurtosis service logs cdk-v1 zkevm-prover-001 --all > zkevm-prover-001.log
kurtosis service logs cdk-v1 cdk-node-001 --all > cdk-node-001.log
kurtosis service logs cdk-v1 zkevm-bridge-service-001 --all > zkevm-bridge-service-001.log

archive_name="dump_run_with_args_${{matrix.e2e-group}}_${{ github.run_id }}"
echo "ARCHIVE_NAME=${archive_name}" >> "$GITHUB_ENV"
echo "Generated archive name: ${archive_name}"
kurtosis service exec cdk cdk-node-001 'cat /etc/cdk/cdk-node-config.toml' > ./dump/cdk-node-config.toml

- name: Upload logs
if: always()
if: failure()
uses: actions/upload-artifact@v4
with:
name: logs_${{ github.run_id }}
path: ./kurtosis-cdk/ci_logs
name: ${{ env.ARCHIVE_NAME }}
path: ./dump
2 changes: 1 addition & 1 deletion crates/cdk/versions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"agglayer_image": "ghcr.io/agglayer/agglayer:0.2.0-rc.5",
vcastellm marked this conversation as resolved.
Show resolved Hide resolved
"cdk_erigon_node_image": "hermeznetwork/cdk-erigon:v2.1.2",
"cdk_node_image": "ghcr.io/0xpolygon/cdk:0.4.0-beta4",
"cdk_node_image": "ghcr.io/0xpolygon/cdk:0.4.0-beta5",
"cdk_validium_node_image": "0xpolygon/cdk-validium-node:0.7.0-cdk",
"zkevm_bridge_proxy_image": "haproxy:3.0-bookworm",
"zkevm_bridge_service_image": "hermeznetwork/zkevm-bridge-service:v0.6.0-RC1",
Expand Down
4 changes: 2 additions & 2 deletions scripts/local_config
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function export_portnum_from_kurtosis_or_fail(){
###############################################################################
function export_ports_from_kurtosis(){
export_portnum_from_kurtosis_or_fail l1_rpc_port el-1-geth-lighthouse rpc
export_portnum_from_kurtosis_or_fail zkevm_rpc_http_port cdk-erigon-node-001 http-rpc rpc
export_portnum_from_kurtosis_or_fail zkevm_rpc_http_port cdk-erigon-rpc-001 http-rpc rpc
export_portnum_from_kurtosis_or_fail zkevm_data_streamer_port cdk-erigon-sequencer-001 data-streamer
export_portnum_from_kurtosis_or_fail aggregator_db_port postgres-001 postgres
export_portnum_from_kurtosis_or_fail agglayer_port agglayer agglayer
Expand Down Expand Up @@ -371,4 +371,4 @@ EOF
echo " -----------------------------------------------------------"
echo " "
echo " - rembember to clean previous execution data: "
echo " rm -Rf ${path_rw_data}/*"
echo " rm -Rf ${path_rw_data}/*"
5 changes: 4 additions & 1 deletion test/bridge-e2e.bats
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ setup() {
local initial_receiver_balance=$(cast balance "$receiver" --rpc-url "$l2_rpc_url")
echo "Initial receiver balance of native token on L2 $initial_receiver_balance" >&3

local initial_mint_balance=$(cast balance "0x8943545177806ED17B9F23F0a21ee5948eCaa776" --rpc-url "$l1_rpc_url")
echo "Initial minter balance on L1 $initial_mint_balance" >&3
vcastellm marked this conversation as resolved.
Show resolved Hide resolved

# Query for initial sender balance
run query_contract "$l1_rpc_url" "$gas_token_addr" "$balance_of_fn_sig" "$sender_addr"
assert_success
Expand All @@ -85,7 +88,7 @@ setup() {
# Mint gas token on L1
local tokens_amount="0.1ether"
local wei_amount=$(cast --to-unit $tokens_amount wei)
local minter_key=${MINTER_KEY:-"42b6e34dc21598a807dc19d7784c71b2a7a01f6480dc6f58258f78e539f1a1fa"}
local minter_key=${MINTER_KEY:-"bcdf20249abf0ed6d944c0288fad489e33f66b3960d9e6229c1cd214ed3bbe31"}
run mint_erc20_tokens "$l1_rpc_url" "$gas_token_addr" "$minter_key" "$sender_addr" "$tokens_amount"
assert_success

Expand Down
2 changes: 1 addition & 1 deletion test/helpers/common-setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ _common_setup() {
readonly enclave=${KURTOSIS_ENCLAVE:-cdk}
readonly contracts_container=${KURTOSIS_CONTRACTS:-contracts-001}
readonly contracts_service_wrapper=${KURTOSIS_CONTRACTS_WRAPPER:-"kurtosis service exec $enclave $contracts_container"}
readonly erigon_rpc_node=${KURTOSIS_ERIGON_RPC:-cdk-erigon-node-001}
readonly erigon_rpc_node=${KURTOSIS_ERIGON_RPC:-cdk-erigon-rpc-001}
readonly l2_rpc_url=${L2_ETH_RPC_URL:-"$(kurtosis port print $enclave $erigon_rpc_node rpc)"}
}
2 changes: 1 addition & 1 deletion test/scripts/batch_verification_monitor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ timeout="$2"
start_time=$(date +%s)
end_time=$((start_time + timeout))

rpc_url="$(kurtosis port print cdk cdk-erigon-node-001 rpc)"
rpc_url="$(kurtosis port print cdk cdk-erigon-rpc-001 rpc)"

while true; do
verified_batches="$(cast to-dec "$(cast rpc --rpc-url "$rpc_url" zkevm_verifiedBatchNumber | sed 's/"//g')")"
Expand Down
Loading