chore: move tests to arbitrum sepolia fork#557
Merged
PierreJeanjacquot merged 7 commits intonextfrom Apr 22, 2026
Merged
Conversation
🐳 Hadolint Dockerfile Lint ResultsClick to expand detailed resultsDockerfile:17 DL3016 warning: Pin versions in npm. Instead of `npm install <package>` use `npm install <package>@<version>` |
eef1b0e to
54c70f7
Compare
54c70f7 to
7d0137c
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates the test stack and test suite to run against an Anvil fork of Arbitrum Sepolia (and keeps Bellecour fork coverage where ENS/native behavior is needed), aligning local integration tests with Arbitrum Sepolia environments.
Changes:
- Replace the legacy custom token chain setup with Arbitrum Sepolia fork (plus an “unknown chain” fork) and update E2E/CLI tests accordingly.
- Switch test wallet funding from “faucet sends” to Anvil JSON-RPC state mutation (
anvil_setBalance,anvil_setStorageAt). - Add/adjust scripts and docker-compose services to prepare and run the multi-fork test stack.
Reviewed changes
Copilot reviewed 44 out of 45 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test/test-utils.js | Updates test chain definitions and replaces faucet-based funding with Anvil RPC balance/storage setters. |
| test/test-config-utils.js | Makes getTestConfig() async and funds generated wallets via setBalance(). |
| test/scripts/prepare-test-env.js | Generates .env with fork URLs + fork block numbers for Bellecour and Arbitrum Sepolia. |
| test/scripts/prepare-forks-for-tests.js | New script to prepare both forks (fund admin + transfer hub ownership via impersonation). |
| test/scripts/prepare-bellecour-fork-for-tests.js | Removes the Bellecour-only preparation script (replaced by the combined script). |
| test/mock/compass/data.json | Updates Compass mock data to Arbitrum Sepolia fork and adds workerpools used by tests. |
| test/lib/e2e/workflow.test.js | Runs workflow E2E against arbitrum-sepolia-fork and adapts config calls to async. |
| test/lib/e2e/utils.test.js | Adjusts signer/nonce-management test to arbitrum-sepolia-fork and funds wallet via Anvil. |
| test/lib/e2e/IExecWorkerpoolModule.test.js | Migrates workerpool module tests to arbitrum-sepolia-fork; keeps Bellecour for ENS-specific assertions. |
| test/lib/e2e/IExecWalletModule.test.js | Splits token vs native-chain expectations (Arbitrum Sepolia fork vs Bellecour fork) and updates calls to async config. |
| test/lib/e2e/IExecTaskModule.test.js | Migrates task tests to arbitrum-sepolia-fork and updates hardcoded task IDs/expected errors. |
| test/lib/e2e/IExecStorageModule.test.js | Migrates storage tests to arbitrum-sepolia-fork and async config creation. |
| test/lib/e2e/IExecSecretsModule.test.js | Migrates secrets tests to arbitrum-sepolia-fork and async config creation. |
| test/lib/e2e/IExecResultModule.test.js | Migrates result tests to arbitrum-sepolia-fork and async config creation. |
| test/lib/e2e/IExecOrderbookModule.test.js | Migrates orderbook tests to arbitrum-sepolia-fork and async config creation. |
| test/lib/e2e/IExecOrderModule.test.js | Migrates order module tests to arbitrum-sepolia-fork and updates a burned-tags expectation to on-chain behavior. |
| test/lib/e2e/IExecHubModule.test.js | Migrates hub tests to arbitrum-sepolia-fork and updates expected category fields. |
| test/lib/e2e/IExecEnsModule.test.js | Keeps ENS module tests on Bellecour fork but updates config calls to async. |
| test/lib/e2e/IExecDealModule.test.js | Migrates deal tests to arbitrum-sepolia-fork and async config creation. |
| test/lib/e2e/IExecDatasetModule.test.js | Migrates dataset tests to arbitrum-sepolia-fork and fixes async config usage in encryption key test. |
| test/lib/e2e/IExecConfig.test.js | Migrates config tests to arbitrum-sepolia-fork and updates unknown-chain fixture. |
| test/lib/e2e/IExecAppModule.test.js | Migrates app tests to arbitrum-sepolia-fork and async config creation. |
| test/lib/e2e/IExecAccountModule.test.js | Migrates account tests to arbitrum-sepolia-fork; keeps Bellecour fork for native-asset paths. |
| test/docker-compose.yml | Reworks the test stack to run Bellecour + Arbitrum Sepolia forks and associated services (SMS, result-proxy, market, compass). |
| test/cli/cli-tx-options.test.js | Removes the CLI gas-price option test suite (gas-price becoming non-applicable). |
| test/cli/cli-test-utils.js | Updates wallet setup helpers to optionally fund new wallets using defaultInitBalance. |
| test/cli/cli-iexec-workerpool.test.js | Migrates workerpool CLI tests to arbitrum-sepolia-fork and removes gas-price assertions / ENS API-url steps. |
| test/cli/cli-iexec-wallet.test.js | Migrates wallet CLI tests to arbitrum-sepolia-fork; updates sweep logic and native-vs-token expectations. |
| test/cli/cli-iexec-task.test.js | Migrates task CLI tests to arbitrum-sepolia-fork and updates wallet setup helper usage. |
| test/cli/cli-iexec-storage.test.js | Migrates storage CLI tests to arbitrum-sepolia-fork and updates wallet setup helper usage. |
| test/cli/cli-iexec-result.test.js | Migrates result CLI tests to arbitrum-sepolia-fork and updates wallet setup helper usage. |
| test/cli/cli-iexec-requester.test.js | Migrates requester CLI tests to arbitrum-sepolia-fork and updates wallet setup helper usage. |
| test/cli/cli-iexec-order.test.js | Migrates order CLI tests to arbitrum-sepolia-fork and removes gas-price assertions. |
| test/cli/cli-iexec-init.test.js | Migrates init CLI tests to arbitrum-sepolia-fork. |
| test/cli/cli-iexec-info.test.js | Splits iexec info CLI test into bellecour + arbitrum-sepolia cases. |
| test/cli/cli-iexec-ens.test.js | Pins ENS CLI tests to Bellecour fork and updates wallet setup helper usage. |
| test/cli/cli-iexec-deal.test.js | Migrates deal CLI tests to arbitrum-sepolia-fork and updates wallet setup helper usage. |
| test/cli/cli-iexec-dataset.test.js | Migrates dataset CLI tests to arbitrum-sepolia-fork and removes gas-price assertions. |
| test/cli/cli-iexec-category.test.js | Migrates category CLI tests to arbitrum-sepolia-fork and removes gas-price assertions. |
| test/cli/cli-iexec-app.test.js | Migrates app CLI tests to arbitrum-sepolia-fork and removes gas-price assertions. |
| test/cli/cli-iexec-account.test.js | Migrates account CLI tests to arbitrum-sepolia-fork; uses setNRlcBalance for funding. |
| src/lib/utils.d.ts | Marks gasPrice signer option as TODO for removal (not applicable on supported chains). |
| src/common/utils/signers.js | Same TODO annotation for gasPrice option. |
| src/cli/utils/cli-helper.js | Adds TODO note to remove --gas-price option help text. |
| package.json | Updates test:prepare to use the combined fork preparation script. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
|
cli_template.md: The JSON example still shows IExecOrderModule.test.js: An expectation still contains the URL |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.