Skip to content

ENG-469 Stabilize integration suites: Electrum skips, retries, env RPC, keep-common bump#3844

Open
piotr-roslaniec wants to merge 7 commits into
mainfrom
release/v2.3.1-rc
Open

ENG-469 Stabilize integration suites: Electrum skips, retries, env RPC, keep-common bump#3844
piotr-roslaniec wants to merge 7 commits into
mainfrom
release/v2.3.1-rc

Conversation

@piotr-roslaniec

@piotr-roslaniec piotr-roslaniec commented Nov 30, 2025

Copy link
Copy Markdown
Collaborator

Summary

Stabilization patch for the v2.3.1-rc integration suites. Rebased onto current main; superseded changes (WSS skip helper, sepolia peer refresh, direct keep-common version bump) have been dropped because main now handles them.

  • Use a header-only block fetch in pkg/chain/ethereum to avoid transaction type not supported errors from upstream providers.
  • Read ETHEREUM_MAINNET_RPC_URL from the environment in TestBaseChain_GetBlockNumberByTimestamp; skip (not fail) when unset so local go test -tags=integration ./... stays friendly. CI sets the secret.
  • Pass ETHEREUM_MAINNET_RPC_URL into the integration job in .github/workflows/client.yml.
  • Increase the electrs-esplora retry window in the Electrum integration test (*2*6) to absorb slower public endpoints.
  • Replace fmt.Errorf with errors.New in pkg/tbtcpg/internal/test/marshaling.go so the unmarshaled error string is not interpreted as a format directive.

Testing

  • go vet ./pkg/chain/ethereum/... ./pkg/bitcoin/electrum/... ./pkg/tbtcpg/...
  • go test ./config (unchanged on this branch)
  • go test -tags=integration ./pkg/bitcoin/electrum (electrs retries extended)
  • go test -tags=integration ./pkg/chain/ethereum with ETHEREUM_MAINNET_RPC_URL set
  • go test -v ./pkg/tbtcpg/internal/test

Follow-ups (not in this PR)

  • The leaked Infura project ID previously hardcoded in ethereum_integration_test.go (f41c6e3d505d44c182a5e5adefdaa43f) is still reachable via git log. Rotate it in the Infura dashboard.
  • blockByNumber is now functionally equivalent to headerByNumber. Collapse post-release.

Closes ENG-469.

@piotr-roslaniec piotr-roslaniec changed the title Stabilize integration suites: Electrum skips, extended retries, env RPC Stabilize integration suites: Electrum skips, retries, env RPC, keep-common bump Nov 30, 2025
@piotr-roslaniec piotr-roslaniec changed the title Stabilize integration suites: Electrum skips, retries, env RPC, keep-common bump ENG-469 Stabilize integration suites: Electrum skips, retries, env RPC, keep-common bump Nov 30, 2025
@linear

linear Bot commented Nov 30, 2025

Copy link
Copy Markdown

@piotr-roslaniec piotr-roslaniec force-pushed the release/v2.3.1-rc branch 2 times, most recently from 56e8412 to 726ada4 Compare March 16, 2026 10: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.

1 participant