Skip to content

chore: move tests to arbitrum sepolia fork#557

Merged
PierreJeanjacquot merged 7 commits intonextfrom
chore/tests-on-arbitrum-sepolia
Apr 22, 2026
Merged

chore: move tests to arbitrum sepolia fork#557
PierreJeanjacquot merged 7 commits intonextfrom
chore/tests-on-arbitrum-sepolia

Conversation

@PierreJeanjacquot
Copy link
Copy Markdown
Member

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

🐳 Hadolint Dockerfile Lint Results

Click to expand detailed results
Dockerfile:17 DL3016 warning: Pin versions in npm. Instead of `npm install <package>` use `npm install <package>@<version>`

@PierreJeanjacquot PierreJeanjacquot force-pushed the chore/tests-on-arbitrum-sepolia branch from eef1b0e to 54c70f7 Compare April 20, 2026 12:46
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread test/test-config-utils.js
Comment thread test/scripts/prepare-forks-for-tests.js
Comment thread test/test-utils.js Outdated
@PierreJeanjacquot PierreJeanjacquot changed the title chore: run tests on arbitrum sepolia chore: move tests to arbitrum sepolia fork Apr 21, 2026
@PierreJeanjacquot PierreJeanjacquot marked this pull request as ready for review April 21, 2026 08:50
@abbesBenayache
Copy link
Copy Markdown
Contributor

abbesBenayache commented Apr 21, 2026

cli_template.md: The JSON example still shows "default": "bellecour", but src/cli/utils/templates.js defines it as 'arbitrum-sepolia-testnet'

IExecOrderModule.test.js: An expectation still contains the URL https://result.v8-bellecour.iex.ec.

Copy link
Copy Markdown
Contributor

@abbesBenayache abbesBenayache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PierreJeanjacquot PierreJeanjacquot merged commit c649267 into next Apr 22, 2026
9 checks passed
@PierreJeanjacquot PierreJeanjacquot deleted the chore/tests-on-arbitrum-sepolia branch April 22, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants