Skip to content

ci: Start the EVM tests without waiting for the artifact build - #1622

Merged
pxrl merged 2 commits into
masterfrom
pxrl/ciEvmParallel
Dec 3, 2026
Merged

pxrl merged 2 commits into
masterfrom
pxrl/ciEvmParallel

Conversation

@pxrl

@pxrl pxrl commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

"EVM Tests" no longer waits for "Upload EVM artifacts", and no longer downloads its output.

It used none of it. The tests compile under the local-test profile, which keeps revert strings and writes to out-local; the job's log shows all 447 files compiling straight after the download.

Without the dependency the two compiles run at the same time. A PR that changes only Solidity should finish its EVM checks in about 8 minutes in place of 15. Where the SVM tests also run, they set the run time, and this mainly brings the EVM result earlier.

🤖 Generated with Claude Code

The EVM test job waited for the artifact build and downloaded its
output, but used none of it: the tests compile under the local-test
profile, which keeps revert strings and writes to out-local. Its log
shows all 447 files compiling straight after the download.

Without the dependency the two compiles run at the same time, so a
change to the Solidity costs one compile of wall-clock time and not
two, about 8 minutes in place of 15.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Paul <108695806+pxrl@users.noreply.github.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T11:24:51.943268Z a189f18 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pxrl
pxrl requested review from Reinis-FRP and droplet-rl December 3, 2026 11:24

@droplet-rl droplet-rl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. The download was dead weight, and removing the needs is safe.

Checks

  • test-evm-foundry uses FOUNDRY_PROFILE=local-test, which writes to out-local and cache-foundry-local. Nothing under test/evm/foundry/local reads out/. The only file reads are the SVM fixtures in SvmSpokeV5Vectors.t.sol, and deployCodeTo looks up artifacts in the active profile's output directory.
  • Inspect storage layouts already ran before the download step, so it never used the downloaded artifacts either.
  • The job name (EVM Tests) is unchanged, so required-check settings are not affected.
  • On this PR's run, EVM Tests started at 11:24:02 UTC, alongside Upload EVM artifacts, and finished at 11:31:18 while the upload was still compiling. That matches the description.

The red EVM Tests check comes from a known flaky test, not from this PR. 720 tests passed and 1 failed: the CCTPDirectFlowTest setUp hit vm.createSelectFork: ... rpc.hyperliquid.xyz ... invalid block height: 52907736. BaseSimulatorTest forks the public Hyperliquid RPC at the latest block, and this public endpoint sometimes rejects that block. The same error failed master on 2026-11-16 (run 43840170355). Re-running the job should clear it.

Non-blocking notes

  • On the last two master runs (47089394910 and 47088223630), the Test verified SVM build job finished within about 1 minute of EVM Tests. On runs that touch the SVM paths, the overall Checks time will now be limited by that job. The 15 → 8 minute saving will show fully on EVM-only PRs; on the others it mainly means the EVM result arrives earlier.
  • Inline: a possible follow-up to cache the local-test build.

Comment thread .github/workflows/pr.yml Resolved

@Reinis-FRP Reinis-FRP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The EVM suite compiles into out-local, and the package build still receives the default-profile artifacts. LGTM on the workflow change. The EVM job passed 720 tests and failed during fork setup when the Hyperliquid RPC rejected block 52907736. Please rerun that job before merging.


Sent from Reinis Martinsons's Codex CLI Agent using gpt-6.2-astra 🤖

@pxrl
pxrl merged commit 6e002ad into master Dec 3, 2026
9 checks passed
@pxrl
pxrl deleted the pxrl/ciEvmParallel branch December 3, 2026 11:58
pxrl added a commit that referenced this pull request Dec 3, 2026
…#1624)

Stops a flaky failure in "EVM Tests" that has hit unrelated pull
requests twice in one day (#1622 and #1623).

The failure. Three suites (HyperCoreFlowExecutorTest,
CCTPDirectFlowTest, SponsoredCCTPDstPeripheryTest) share a setUp that
forks the public Hyperliquid RPC at its latest block. Now and then the 
fork fails:

  vm.createSelectFork: ... error code -32603: invalid block height:
  52914819

The RPC is served by more than one node. A fork asks for the latest
block number and then for that block, and the node that got the second
request had not yet received it. The block rejected on #1623 carries the 
timestamp of the second the tests ran in. 

The fix. setUp asks for the latest block number and forks ten blocks
before it. Blocks come about a second apart, so every node has a block
that old.

- One file:
  test/evm/foundry/local/external/hyper-evm-lib/test/BaseSimulatorTest.sol.
  It is vendored, so this diverges from upstream.
- The tests still fail if the RPC is down.
- The failure could not be reproduced on demand, so this is reasoned from
  the error and the block's timestamp, not measured.

---------

Signed-off-by: Paul <108695806+pxrl@users.noreply.github.com>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
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