Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
24510a7
add e2e
temaniarpit27 Apr 3, 2025
5838293
fix
temaniarpit27 Apr 7, 2025
34441b3
fix
temaniarpit27 Apr 7, 2025
4860986
fix
temaniarpit27 Apr 7, 2025
8e9094b
fix
temaniarpit27 Apr 7, 2025
a0f1def
fix
temaniarpit27 Apr 7, 2025
829613c
fix
temaniarpit27 Apr 7, 2025
6342fbd
fix
temaniarpit27 Apr 7, 2025
84507fe
fix
temaniarpit27 Apr 7, 2025
9566caf
fix
temaniarpit27 Apr 7, 2025
510dbc9
fix
temaniarpit27 Apr 9, 2025
b761f00
change hash
temaniarpit27 Apr 14, 2025
63b3505
fix
temaniarpit27 Apr 14, 2025
e1b213f
debugging
temaniarpit27 Apr 14, 2025
a9c7b95
version change
temaniarpit27 Apr 14, 2025
ff40076
version change
temaniarpit27 Apr 16, 2025
57f99ba
add l1infotree
temaniarpit27 May 7, 2025
879ffd6
fix ci
temaniarpit27 May 7, 2025
2fdd435
fatalf to errorf
temaniarpit27 May 7, 2025
26c9859
fix ci
temaniarpit27 May 7, 2025
185283f
fix args
temaniarpit27 May 7, 2025
b8cb3ee
Merge branch 'arpit/aggkit-409' of github.com:0xPolygon/cdk into arpi…
temaniarpit27 May 8, 2025
ff84b91
fix ci
temaniarpit27 May 8, 2025
f68f3ce
fix ci
temaniarpit27 May 8, 2025
83a5231
fix ci
temaniarpit27 May 8, 2025
38e8a12
fix ci
temaniarpit27 May 8, 2025
392033b
fix ci
temaniarpit27 May 8, 2025
1c9d09a
update go mod
temaniarpit27 May 8, 2025
d12f4d8
update go mod
temaniarpit27 May 8, 2025
d8c6e21
review comments fix
temaniarpit27 May 8, 2025
7f4ec67
review comments fix
temaniarpit27 May 8, 2025
404e380
review comments fix
temaniarpit27 May 8, 2025
c0781bf
fix ci
temaniarpit27 May 8, 2025
9fa2f74
revert back
temaniarpit27 May 8, 2025
f533d3a
Merge branch 'arpit/325-2' of github.com:0xPolygon/cdk into arpit/325-2
temaniarpit27 May 8, 2025
bc426c3
fatalf to panicf
temaniarpit27 May 8, 2025
bcee59b
merge base
temaniarpit27 May 8, 2025
5555f49
fix ci
temaniarpit27 May 8, 2025
98d594c
fix ci
temaniarpit27 May 8, 2025
7499bcf
fix ci
temaniarpit27 May 8, 2025
dfb1c72
fix ci
temaniarpit27 May 8, 2025
16f1449
fix ci
temaniarpit27 May 8, 2025
aa78fc9
fix ci
temaniarpit27 May 8, 2025
7ea71f9
fix ci
temaniarpit27 May 8, 2025
a6bd0fc
fix ci
temaniarpit27 May 8, 2025
597173a
fix ci
temaniarpit27 May 8, 2025
0b8b04d
fix ci
temaniarpit27 May 8, 2025
3bf41f0
fix ci
temaniarpit27 May 8, 2025
19a0fa1
fix ci
temaniarpit27 May 8, 2025
76f39aa
fix ci
temaniarpit27 May 9, 2025
f5001ec
fix ci
temaniarpit27 May 9, 2025
977d71f
fix ci
temaniarpit27 May 9, 2025
02b2341
fix ci
temaniarpit27 May 9, 2025
ed3e423
fix ci
temaniarpit27 May 9, 2025
ac9118c
fix ci
temaniarpit27 May 9, 2025
ccc00fe
fix ci
temaniarpit27 May 9, 2025
2f0d9ad
fix ci
temaniarpit27 May 9, 2025
9471868
merge develop
temaniarpit27 May 12, 2025
b4b29fb
update hash
temaniarpit27 May 13, 2025
e6f941d
update hash
temaniarpit27 May 13, 2025
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
13 changes: 13 additions & 0 deletions .github/test_fork11_rollup_e2e_args.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"args": {
"zkevm_contracts_image": "leovct/zkevm-contracts:v7.0.0-rc.2-fork.11-patch.1",
"zkevm_prover_image": "hermeznetwork/zkevm-prover:v7.0.4-hotfix.2-fork.11",
"zkevm_node_image": "hermeznetwork/zkevm-node:v0.7.0-fork11",
"cdk_node_image": "cdk:local",
"gas_token_enabled": true,
"gas_token_address": "",
"data_availability_mode": "rollup",
"sequencer_type": "erigon",
"agglayer_image": "ghcr.io/agglayer/agglayer:0.2.0-rc.19"
}
}
11 changes: 11 additions & 0 deletions .github/test_fork12_cdk_validium_e2e_args.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"args": {
"zkevm_contracts_image": "jhkimqd/zkevm-contracts:v10.0.0-rc.6-fork.12",
"zkevm_prover_image": "hermeznetwork/zkevm-prover:v8.0.0-RC16-fork.12",
"cdk_node_image": "cdk:local",
"gas_token_enabled": true,
"gas_token_address": "",
"data_availability_mode": "cdk-validium",
"sequencer_type": "erigon"
}
}
11 changes: 11 additions & 0 deletions .github/test_fork12_rollup_e2e_args.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"args": {
"zkevm_contracts_image": "jhkimqd/zkevm-contracts:v10.0.0-rc.6-fork.12",
"zkevm_prover_image": "hermeznetwork/zkevm-prover:v8.0.0-RC16-fork.12",
"cdk_node_image": "cdk:local",
"gas_token_enabled": true,
"gas_token_address": "",
"data_availability_mode": "rollup",
"sequencer_type": "erigon"
}
}
17 changes: 17 additions & 0 deletions .github/test_fork9_cdk_validium_e2e_args.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"args": {
"zkevm_contracts_image": "leovct/zkevm-contracts:v6.0.0-rc.1-fork.9-patch.1",
"zkevm_prover_image": "hermeznetwork/zkevm-prover:v6.0.8",
"zkevm_node_image": "hermeznetwork/zkevm-node:v0.7.3",
"cdk_validium_node_image": "ghcr.io/0xpolygon/cdk-validium-node:0.6.4-cdk.10",
"cdk_node_image": "cdk:local",
"gas_token_enabled": true,
"gas_token_address": "",
"additional_services": [
"pless_zkevm_node"
],
"data_availability_mode": "cdk-validium",
"sequencer_type": "erigon",
"agglayer_image": "ghcr.io/agglayer/agglayer:0.2.0-rc.19"
}
}
192 changes: 122 additions & 70 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
workflow_dispatch: {}


permissions:
id-token: write
contents: write

jobs:
build-cdk-image:
runs-on: ubuntu-latest
Expand All @@ -30,79 +34,127 @@ jobs:
name: cdk
path: /tmp/cdk.tar

test-e2e:
read-test-args:
name: Read tests args
runs-on: ubuntu-latest
timeout-minutes: 60
needs: build-cdk-image
strategy:
fail-fast: false
matrix:
e2e-group:
- "fork9-validium"
- "fork11-rollup"
- "fork12-validium"
- "fork12-rollup"
outputs:
test-fork9-cdk-validium-e2e-args: ${{ steps.read-args.outputs.test-fork9-cdk-validium-e2e-args }}
test-fork11-rollup-e2e-args: ${{ steps.read-args.outputs.test-fork11-rollup-e2e-args }}
test-fork12-cdk-validium-e2e-args: ${{ steps.read-args.outputs.test-fork12-cdk-validium-e2e-args }}
test-fork12-rollup-e2e-args: ${{ steps.read-args.outputs.test-fork12-rollup-e2e-args }}
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Checkout Kurtosis CDK
uses: actions/checkout@v4
with:
repository: 0xPolygon/kurtosis-cdk
path: kurtosis-cdk
ref: c3caebc409c7f69354ae012f15cac76f3edf8503

- name: Install Kurtosis CDK tools
uses: ./kurtosis-cdk/.github/actions/setup-kurtosis-cdk

- name: Install polycli
run: |
POLYCLI_VERSION="${{ vars.POLYCLI_VERSION }}"
tmp_dir=$(mktemp -d)
curl -L "https://github.com/0xPolygon/polygon-cli/releases/download/${POLYCLI_VERSION}/polycli_${POLYCLI_VERSION}_linux_amd64.tar.gz" | tar -xz -C "$tmp_dir"
mv "$tmp_dir"/* /usr/local/bin/polycli
rm -rf "$tmp_dir"
sudo chmod +x /usr/local/bin/polycli
/usr/local/bin/polycli version
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bats and bats libs
uses: bats-core/bats-action@2.0.0

- name: Download cdk archive
uses: actions/download-artifact@v4
with:
name: cdk
path: /tmp

- name: Load cdk image
run: |
docker load --input /tmp/cdk.tar
docker image ls -a
- name: Read kurtosis-cdk-args from file
id: read-args
run: |
CONTENT=$(cat ./.github/test_fork9_cdk_validium_e2e_args.json | jq -c .)
echo "test-fork9-cdk-validium-e2e-args=${CONTENT}" >> $GITHUB_OUTPUT
CONTENT=$(cat ./.github/test_fork11_rollup_e2e_args.json | jq -c .)
echo "test-fork11-rollup-e2e-args=${CONTENT}" >> $GITHUB_OUTPUT
CONTENT=$(cat ./.github/test_fork12_cdk_validium_e2e_args.json | jq -c .)
echo "test-fork12-cdk-validium-e2e-args=${CONTENT}" >> $GITHUB_OUTPUT
CONTENT=$(cat ./.github/test_fork12_rollup_e2e_args.json | jq -c .)
echo "test-fork12-rollup-e2e-args=${CONTENT}" >> $GITHUB_OUTPUT

- name: Run e2e tests
run: make test-e2e-${{ matrix.e2e-group }}
working-directory: test
env:
KURTOSIS_FOLDER: ${{ github.workspace }}/kurtosis-cdk
BATS_LIB_PATH: /usr/lib/
agglayer_prover_sp1_key: ${{ secrets.SP1_PRIVATE_KEY }}

- name: Dump enclave logs
if: failure()
run: kurtosis dump ./dump
test-fork9-cdk-validium-e2e:
name: E2E test
needs:
- build-cdk-image
- read-test-args
uses: agglayer/e2e/.github/workflows/cdk-e2e.yml@41dd4252fec7e16d6b6199652a182c47b40b02d6
secrets: inherit
with:
kurtosis-cdk-ref: 651696273abfaf19eae8233a3863f5e93091c087
agglayer-e2e-ref: 41dd4252fec7e16d6b6199652a182c47b40b02d6
test-name: test-fork9-cdk-validium-e2e
kurtosis-cdk-args: ${{ needs.read-test-args.outputs.test-fork9-cdk-validium-e2e-args }}

- name: Generate archive name
if: failure()
run: |
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
check-fork9-cdk-validium-e2e-result:
name: Check E2E results
permissions:
id-token: write
contents: write
needs:
- test-fork9-cdk-validium-e2e
if: always()
runs-on: ubuntu-latest
steps:
- run: exit 1
if: ${{ contains(fromJSON('["failure", "cancelled"]'), needs.test-fork9-cdk-validium-e2e.result) }}

- name: Upload logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARCHIVE_NAME }}
path: ./dump
test-fork11-rollup-e2e:
name: E2E test
needs:
- build-cdk-image
- read-test-args
uses: agglayer/e2e/.github/workflows/cdk-e2e.yml@41dd4252fec7e16d6b6199652a182c47b40b02d6
secrets: inherit
with:
kurtosis-cdk-ref: 651696273abfaf19eae8233a3863f5e93091c087
agglayer-e2e-ref: 41dd4252fec7e16d6b6199652a182c47b40b02d6
test-name: test-fork11-rollup-e2e
kurtosis-cdk-args: ${{ needs.read-test-args.outputs.test-fork11-rollup-e2e-args }}

check-fork11-rollup-e2e-result:
name: Check E2E results
permissions:
id-token: write
contents: write
needs:
- test-fork11-rollup-e2e
if: always()
runs-on: ubuntu-latest
steps:
- run: exit 1
if: ${{ contains(fromJSON('["failure", "cancelled"]'), needs.test-fork11-rollup-e2e.result) }}

test-fork12-cdk-validium-e2e:
name: E2E test
needs:
- build-cdk-image
- read-test-args
uses: agglayer/e2e/.github/workflows/cdk-e2e.yml@41dd4252fec7e16d6b6199652a182c47b40b02d6
secrets: inherit
with:
kurtosis-cdk-ref: 651696273abfaf19eae8233a3863f5e93091c087
agglayer-e2e-ref: 41dd4252fec7e16d6b6199652a182c47b40b02d6
test-name: test-fork12-cdk-validium-e2e
kurtosis-cdk-args: ${{ needs.read-test-args.outputs.test-fork12-cdk-validium-e2e-args }}

check-fork12-cdk-validium-e2e-result:
name: Check E2E results
permissions:
id-token: write
contents: write
needs:
- test-fork12-cdk-validium-e2e
if: always()
runs-on: ubuntu-latest
steps:
- run: exit 1
if: ${{ contains(fromJSON('["failure", "cancelled"]'), needs.test-fork12-cdk-validium-e2e.result) }}

test-fork12-rollup-e2e:
name: E2E test
needs:
- build-cdk-image
- read-test-args
uses: agglayer/e2e/.github/workflows/cdk-e2e.yml@41dd4252fec7e16d6b6199652a182c47b40b02d6
secrets: inherit
with:
kurtosis-cdk-ref: 651696273abfaf19eae8233a3863f5e93091c087
agglayer-e2e-ref: 41dd4252fec7e16d6b6199652a182c47b40b02d6
test-name: test-fork12-rollup-e2e
kurtosis-cdk-args: ${{ needs.read-test-args.outputs.test-fork12-rollup-e2e-args }}

check-fork12-rollup-e2e-result:
name: Check E2E results
needs:
- test-fork12-rollup-e2e
if: always()
runs-on: ubuntu-latest
steps:
- run: exit 1
if: ${{ contains(fromJSON('["failure", "cancelled"]'), needs.test-fork12-rollup-e2e.result) }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ build-go:

.PHONY: build-docker
build-docker: ## Builds a docker image with the cdk binary
docker build -t cdk -f ./Dockerfile .
docker build -t cdk:local -f ./Dockerfile .

.PHONY: build-docker-nc
build-docker-nc: ## Builds a docker image with the cdk binary - but without build cache
Expand Down
119 changes: 0 additions & 119 deletions test/bats/access-list-e2e.bats

This file was deleted.

Loading
Loading