-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: e2e test Pesimisstic L2 to L2 claim (#239)
- E2E to test L2 to L2 bridges - RPC for aggsender: changes components names - Added `tools` folder that contains `aggsender_find_imported_bridge` required by e2e test - Add configuration to aggsender: `DryRun` and `EnableRPC` --------- Co-authored-by: Stefan Negovanović <93934272+Stefan-Ethernal@users.noreply.github.com> Co-authored-by: Rachit Sonthalia <54906134+rachit77@users.noreply.github.com> Co-authored-by: Goran Rojovic <100121253+goran-ethernal@users.noreply.github.com>
- Loading branch information
1 parent
e53a878
commit 6e5bd04
Showing
39 changed files
with
1,965 additions
and
102 deletions.
There are no files selected for viewing
This file contains 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,85 @@ | ||
# based on: https://github.com/0xPolygon/kurtosis-cdk/blob/jhilliard/multi-pp-testing/multi-pp-test.sh.md | ||
name: Test e2e multi pp | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
workflow_dispatch: {} | ||
|
||
|
||
jobs: | ||
test-e2e-multi_pp: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go-version: [ 1.22.x ] | ||
goarch: [ "amd64" ] | ||
e2e-group: | ||
- "fork12-pessimistic" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
env: | ||
GOARCH: ${{ matrix.goarch }} | ||
|
||
|
||
- name: Build Docker | ||
run: make build-docker | ||
|
||
- name: Build Tools | ||
run: make build-tools | ||
|
||
- name: Checkout kurtosis-cdk | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 0xPolygon/kurtosis-cdk | ||
path: kurtosis-cdk | ||
ref: jhilliard/multi-pp-testing | ||
|
||
- name: Install Kurtosis CDK tools | ||
uses: ./kurtosis-cdk/.github/actions/setup-kurtosis-cdk | ||
|
||
- name: Install polycli | ||
run: | | ||
git clone https://github.com/0xPolygon/polygon-cli -b jhilliard/alonso | ||
cd polygon-cli | ||
make install | ||
cp ~/go/bin/polycli /usr/local/bin/polycli | ||
/usr/local/bin/polycli version | ||
- name: Setup Bats and bats libs | ||
uses: bats-core/bats-action@2.0.0 | ||
|
||
- name: Test | ||
run: make test-e2e-fork12-multi-pessimistic | ||
|
||
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 | ||
|
||
- 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 | ||
- name: Upload logs | ||
if: failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.ARCHIVE_NAME }} | ||
path: ./dump |
This file contains 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 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 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.