From 3886ab01fc3333372341dd91050ccea3a8054d72 Mon Sep 17 00:00:00 2001 From: inphi Date: Thu, 18 Dec 2025 12:51:44 -0500 Subject: [PATCH 1/2] fix(proofs/action): Fix interop action tests --- .github/workflows/proof.yaml | 2 -- tests/justfile | 28 ++++++++-------------------- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/proof.yaml b/.github/workflows/proof.yaml index d5ddb07717..b99a0af836 100644 --- a/.github/workflows/proof.yaml +++ b/.github/workflows/proof.yaml @@ -20,8 +20,6 @@ jobs: kind: ["single", "interop"] parallel: [4] index: [0, 1, 2, 3] # Remember to update step 'Merge reports' as well. - exclude: - - kind: "interop" # See https://github.com/op-rs/kona/issues/3010 steps: - name: Checkout sources uses: actions/checkout@v6 diff --git a/tests/justfile b/tests/justfile index 2a731a2e5b..79836724a4 100644 --- a/tests/justfile +++ b/tests/justfile @@ -184,10 +184,10 @@ long-running-test FILTER="" OUTPUT_LOGS_DIR="": cd {{SOURCE}} && go test -count=1 -timeout 0 -v ./node/long-running $FILTER # Run action tests for the single-chain client program on the native target -action-tests-single test_name='Test_ProgramAction' *args='': action-tests-single-build (action-tests-single-run test_name args) +action-tests-single test_name='Test_ProgramAction' *args='': action-tests-build (action-tests-single-run test_name args) -# Build action tests for the single-chain client program on the native target -action-tests-single-build: +# Build action tests for host program +action-tests-build: #!/bin/bash echo "Building contract artifacts for the optimism" just unzip-contract-artifacts {{SOURCE}}/optimism/packages/contracts-bedrock @@ -206,28 +206,16 @@ action-tests-single-run test_name='Test_ProgramAction' *args='': cd {{SOURCE}}/optimism/op-e2e/actions/proofs && GITHUB_ACTIONS=false gotestsum --format=short-verbose -- -count=1 -timeout 60m -run "{{test_name}}" {{args}} # Run action tests for the interop client program on the native target -action-tests-interop test_name='TestInteropFaultProofs' *args='': - #!/bin/bash - echo "Building contract artifacts for the optimism" - just unzip-contract-artifacts {{SOURCE}}/optimism/packages/contracts-bedrock - - echo "Building host program for the native target" - just build-native --bin kona-host - export KONA_HOST_PATH="{{justfile_directory()}}/target/debug/kona-host" +action-tests-interop test_name='TestInteropFaultProofs' *args='': action-tests-build (action-tests-interop-run test_name args) +action-tests-interop-run test_name='TestInteropFaultProofs' *args='': + #!/bin/bash + export KONA_HOST_PATH="{{SOURCE}}/../target/debug/kona-host" # GitHub actions patch - do not print logs. # https://github.com/gotestyourself/gotestsum/blob/b4b13345fee56744d80016a20b760d3599c13504/testjson/format.go#L442-L444 echo "Running action tests for the client program on the native target" - cd {{SOURCE}}/optimism/op-e2e/actions/interop && GITHUB_ACTIONS=false gotestsum --format=testname -- -run "{{test_name}}" {{args}} -count=1 ./... - -action-tests-interop-build test_name='TestInteropFaultProofs' *args='': - #!/bin/bash - echo "Not implemented. See https://github.com/op-rs/kona/issues/3010" - -action-tests-interop-run test_name='TestInteropFaultProofs' *args='': - #!/bin/bash - echo "Not implemented. See https://github.com/op-rs/kona/issues/3010" + cd {{SOURCE}}/optimism/op-e2e/actions/interop && GITHUB_ACTIONS=false gotestsum --format=short-verbose -- -count=1 -timeout 60m -run "{{test_name}}" {{args}} unzip-contract-artifacts DEST_DIR="": #!/bin/bash From 1dcd69758e6f3057682dab19e8e90b4a8d0b8e6b Mon Sep 17 00:00:00 2001 From: inphi Date: Thu, 18 Dec 2025 13:27:56 -0500 Subject: [PATCH 2/2] split action test cwd by matrix kind --- .github/workflows/proof.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/proof.yaml b/.github/workflows/proof.yaml index b99a0af836..4d1a0d62fc 100644 --- a/.github/workflows/proof.yaml +++ b/.github/workflows/proof.yaml @@ -55,7 +55,7 @@ jobs: with: total: ${{ matrix.parallel }} index: ${{ matrix.index }} - working-directory: ./tests/optimism/op-e2e/actions/proofs + working-directory: ./tests/optimism/op-e2e/actions/${{ matrix.kind == 'single' && 'proofs' || 'interop' }} - name: Build and Run Action Tests run: |