Skip to content

fix(e2e): import the shared trustbase URL instead of the deleted testnet.json - #776

Merged
MastaP merged 1 commit into
mainfrom
fix/e2e-trustbase-url
Sep 4, 2026
Merged

fix(e2e): import the shared trustbase URL instead of the deleted testnet.json#776
MastaP merged 1 commit into
mainfrom
fix/e2e-trustbase-url

Conversation

@MastaP

@MastaP MastaP commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

bft-trustbase.testnet.json was deleted upstream as obsolete. Three e2e suites hardcoded its raw URL and throw on a non-200, so each now fails at setup with Failed to download trustbase: 404.

The deletion only revealed the defect. That file declared networkId 3 (the retired v1 testnet) while all three suites pass network: 'testnet' — which since #765 aliases testnet2, networkId 4. The oracle derives the engine's network id from the file at trustBasePath, so the engine was being built for a network the gateway does not serve.

tests/e2e/support/staging.ts already exports the correct, env-overridable TRUSTBASE_URL (testnet2, networkId 4). Importing it collapses four copies of the constant into one and takes the network mismatch with it.

Verified: the new URL returns 200 with networkId: 4; the old one returns 404 cache-busted. typecheck:tests and lint clean. These suites run in no CI job, so nothing went red.

Closes #775

…net.json

Three suites hardcoded the raw URL of bft-trustbase.testnet.json, deleted
upstream as obsolete, and throw on a non-200 -- so each fails at setup with
"Failed to download trustbase: 404".

The deletion only revealed the defect. That file declared networkId 3 (the
retired v1 testnet) while all three pass network: 'testnet', which since #765
aliases testnet2, networkId 4. The oracle derives the engine's network id from
the file at trustBasePath, so the engine was being built for a network the
gateway does not serve.

tests/e2e/support/staging.ts already exports the correct, env-overridable
TRUSTBASE_URL (testnet2, networkId 4). Import it -- one definition instead of
four, and the network mismatch goes with it.

Closes #775
@MastaP
MastaP merged commit bdebdfc into main Sep 4, 2026
3 checks passed
@MastaP
MastaP deleted the fix/e2e-trustbase-url branch September 4, 2026 15:02
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.

e2e: three suites download the deleted (and wrong-network) bft-trustbase.testnet.json

1 participant