Skip to content

Add deterministic coverage for the EVM uuid partition-0 branch - #8637

Open
janezpodhostnik wants to merge 1 commit into
janez/flaky-test-regression-coverage-lifecyclefrom
janez/flaky-test-regression-coverage-evm
Open

Add deterministic coverage for the EVM uuid partition-0 branch#8637
janezpodhostnik wants to merge 1 commit into
janez/flaky-test-regression-coverage-lifecyclefrom
janez/flaky-test-regression-coverage-evm

Conversation

@janezpodhostnik

@janezpodhostnik janezpodhostnik commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

The EVM environment selects a UUID register partition from sha256(blockID)[0]. Partition 0 (probability 1/256 for a random block fixture) reuses the legacy uuid register, which changes metering and register counts. This branch made exact assertions flaky (#8629, and the ComputationUsed assertion fixed in #8634), and with random fixtures it is practically never exercised in CI.

Changes

  • Add blockFixtureWithUUIDPartitionZero, a block fixture that deterministically selects partition 0, and a block-parameterized variant of RunWithNewEnvironment.
  • Extract the dryRun-followed-by-run test case and run it in a new test with partition 0 forced, asserting the partition-0 metering value (79) that was previously only reachable 1 run in 256.
  • Strengthen the shared case: assert the exact updated-register count (4), verified to be partition-independent.

While investigating, confirmed the partition-dependent reads happen inside the dry-run's speculative (discarded) transaction: they are metered but do not appear in the returned execution snapshot, which is documented in the test.

Related: #8629, #8634


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@janezpodhostnik
janezpodhostnik requested a review from a team as a code owner August 3, 2026 14:39
@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d6bda31e-4499-44e2-80c3-9aa403916c2c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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