Skip to content

fix(ci): use pre-funded PRIVATE_KEY on mainnet tempo checks#14608

Draft
decofe wants to merge 3 commits into
masterfrom
fix/mainnet-ci-use-private-key
Draft

fix(ci): use pre-funded PRIVATE_KEY on mainnet tempo checks#14608
decofe wants to merge 3 commits into
masterfrom
fix/mainnet-ci-use-private-key

Conversation

@decofe
Copy link
Copy Markdown
Contributor

@decofe decofe commented May 6, 2026

Problem

The nightly CI Tempo workflow (#14606) fails on mainnet because tempo-check.sh unconditionally creates a fresh wallet and calls tempo_fundAddress. The mainnet faucet funds token 0x20c0...16c6514b53947fdc, but the script polls balanceOf on PathUSD (0x20c0...0000) — a different token — so the balance never appears and fund_and_wait times out after ~50s.

Fix

Use the pre-funded PRIVATE_KEY env var when available (set for mainnet via secrets.THROW_AWAY_MAINNET_PKEY), matching the pattern tempo-deploy.sh already uses. Faucet funding remains the default for devnet/testnet where no PRIVATE_KEY is set.

Fixes #14606

On mainnet, tempo-check.sh was unconditionally creating a fresh wallet
and calling tempo_fundAddress (faucet RPC). The mainnet faucet funds a
different token than the default PathUSD the script polls for, causing
fund_and_wait to timeout after ~50s.

Use the provided PRIVATE_KEY (which is already funded) on mainnet,
matching the pattern tempo-deploy.sh already uses. Faucet funding
remains the default for devnet/testnet where no PRIVATE_KEY is set.

Fixes #14606

Amp-Thread-ID: https://ampcode.com/threads/T-019dfbd8-8dbe-744c-905b-a4dd55880a7b
These stress tests (GasBurner 15M gas, MaxSizeContract 24KB EIP-170)
are already validated through other means and account for ~68% of
mainnet gas spend per nightly run.

Amp-Thread-ID: https://ampcode.com/threads/T-019dfbd8-8dbe-744c-905b-a4dd55880a7b
@zerosnacks zerosnacks marked this pull request as ready for review May 8, 2026 08:55
Copy link
Copy Markdown
Collaborator

@mablr mablr left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@zerosnacks zerosnacks marked this pull request as draft May 8, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

bug: tempo nightly workflow failed

3 participants