Skip to content

Commit 7948889

Browse files
authored
Switch integration tests to OffchainLabs/arbitrum-testnode action (#629)
* switch to OffchainLabs/arbitrum-testnode action for integration tests Replace OffchainLabs/actions/run-nitro-test-node with the new snapshot-backed OffchainLabs/arbitrum-testnode action. Uses pre-built Docker images instead of building from source, cutting testnode startup from ~20min to ~30sec. - fee-token-decimals input replaces --l3-fee-token args - Network config exported via env var instead of docker exec * bump testnode action to v0.1.1 * speed up withdrawal integration tests with event-based confirmation Replace polling-based waitUntilReadyToExecute (500ms interval, 5-7 RPC calls per poll) with a test utility that listens for NodeConfirmed / AssertionConfirmed events and resolves immediately. Also reduce mineUntilStop interval from 15s to 1s. * speed up integration confirmation waits * ci: point testnode action at testnode-workspace-migration branch Use the migrated action (l3-node -> l3-enabled input rename) and the nc-format fast snapshot image dl-ci-fast-2 from the arbitrum-testnode-ci package. * ci: use autopublished testnode v0.2.2 * ci: pin testnode action to v0.2.4 interface, keep v0.2.2 images * chore: allowlist 4 new undici advisories (<6.27.0) in audit-ci Adds GHSA-vxpw-j846-p89q, GHSA-p88m-4jfj-68fv, GHSA-35p6-xmwp-9g52, GHSA-g8m3-5g58-fq7m. All are dev-only via hardhat>undici (pinned 5.x); fixes require undici >=6.27.0 which hardhat does not yet allow.
1 parent 4a467b2 commit 7948889

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build-test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,14 @@ jobs:
168168
cache-key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-monorepo
169169

170170
- name: Set up the local node
171-
uses: OffchainLabs/actions/run-nitro-test-node@main
171+
uses: OffchainLabs/arbitrum-testnode@v0.2.4
172172
with:
173-
nitro-testnode-ref: release
174-
l3-node: ${{ matrix.orbit-test == '1' }}
175-
args: ${{ matrix.decimals == 16 && '--l3-fee-token --l3-fee-token-decimals 16' || matrix.decimals == 20 && '--l3-fee-token --l3-fee-token-decimals 20' || matrix.decimals == 18 && '--l3-fee-token' || '' }}
173+
version: v0.2.2
174+
image-repository: ghcr.io/offchainlabs/arbitrum-testnode-ci
175+
l3-enabled: ${{ matrix.orbit-test == '1' }}
176+
fee-token-decimals: ${{ matrix.decimals }}
177+
github-token: ${{ secrets.GITHUB_TOKEN }}
178+
network-config-path: packages/sdk/localNetwork.json
176179

177180
- name: Copy .env
178181
run: cp ./.env-sample ./.env
@@ -182,9 +185,6 @@ jobs:
182185
yarn gen:abi
183186
yarn build
184187
185-
- name: Generate network file
186-
run: yarn gen:network
187-
188188
- name: Run integration tests
189189
env:
190190
NODE_OPTIONS: --no-experimental-strip-types

0 commit comments

Comments
 (0)