From ebb7b006519a9f4723151b39fc58e98529efe18b Mon Sep 17 00:00:00 2001 From: lesterli Date: Mon, 7 Oct 2024 19:39:47 +0800 Subject: [PATCH 1/4] fix: CI cannot find the devnet data --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55c2bbe8..bad6d229 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,6 +54,8 @@ jobs: uses: actions/setup-go@v4 with: go-version: '1.22' + - name: Set up the devnet data + run: make op-e2e-devnet - name: Run e2e OP tests run: make test-e2e-op From e80d4764a680c21fdbd30ca88ff4cabd1d69d9cc Mon Sep 17 00:00:00 2001 From: lesterli Date: Tue, 8 Oct 2024 20:01:33 +0800 Subject: [PATCH 2/4] fix: debugging --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bad6d229..d650ce91 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,7 +57,7 @@ jobs: - name: Set up the devnet data run: make op-e2e-devnet - name: Run e2e OP tests - run: make test-e2e-op + run: make test-e2e-op GOFLAGS="-v" docker_pipeline: uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.1.0 From 24a4b5d5a3a223586ae8121eecbc2032aaf596a1 Mon Sep 17 00:00:00 2001 From: lesterli Date: Wed, 9 Oct 2024 09:41:43 +0800 Subject: [PATCH 3/4] fix: debugging ci --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fe58612e..184d1803 100644 --- a/Makefile +++ b/Makefile @@ -112,9 +112,8 @@ test-e2e-bcd: clean-e2e install-babylond install-bcd test-e2e-wasmd: clean-e2e install-babylond install-wasmd @go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E) -count=1 --tags=e2e_wasmd -FILTER ?= . test-e2e-op: clean-e2e install-babylond - @go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E_OP) -count=1 --tags=e2e_op --run ^$(FILTER)$ + @go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E_OP) -count=1 --tags=e2e_op test-e2e-op-ci: clean-e2e install-babylond go test -list . ./itest/opstackl2 --tags=e2e_op | grep Test \ From 9295d53cc8a9ee8450d77bc7cf2150086ed1324b Mon Sep 17 00:00:00 2001 From: lesterli Date: Wed, 9 Oct 2024 10:40:59 +0800 Subject: [PATCH 4/4] fix: add target for filter --- .github/workflows/ci.yml | 2 +- Makefile | 4 ++++ itest/opstackl2/README.md | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d650ce91..bad6d229 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,7 +57,7 @@ jobs: - name: Set up the devnet data run: make op-e2e-devnet - name: Run e2e OP tests - run: make test-e2e-op GOFLAGS="-v" + run: make test-e2e-op docker_pipeline: uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.1.0 diff --git a/Makefile b/Makefile index 184d1803..4e3942d2 100644 --- a/Makefile +++ b/Makefile @@ -115,6 +115,10 @@ test-e2e-wasmd: clean-e2e install-babylond install-wasmd test-e2e-op: clean-e2e install-babylond @go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E_OP) -count=1 --tags=e2e_op +FILTER ?= . +test-e2e-op-filter: clean-e2e install-babylond + @go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E_OP) -count=1 --tags=e2e_op --run ^$(FILTER)$ + test-e2e-op-ci: clean-e2e install-babylond go test -list . ./itest/opstackl2 --tags=e2e_op | grep Test \ | circleci tests run --command \ diff --git a/itest/opstackl2/README.md b/itest/opstackl2/README.md index f833b909..c18acb22 100644 --- a/itest/opstackl2/README.md +++ b/itest/opstackl2/README.md @@ -11,6 +11,9 @@ Then run the following command to start the e2e tests: ```bash $ make test-e2e-op +# Run all tests +$ make test-e2e-op + # Filter specific test -$ make test-e2e-op FILTER=TestFinalityGadget +$ make test-e2e-op-filter FILTER=TestFinalityGadget ```