Skip to content

test(invariants): enforce fail_on_revert and add nightly Foundry profile + workflow#29

Merged
fgimenez merged 1 commit into
mainfrom
fgimenez/foundry-invariant-tuning
Jul 17, 2026
Merged

test(invariants): enforce fail_on_revert and add nightly Foundry profile + workflow#29
fgimenez merged 1 commit into
mainfrom
fgimenez/foundry-invariant-tuning

Conversation

@fgimenez

@fgimenez fgimenez commented May 5, 2026

Copy link
Copy Markdown
Contributor

Closes: https://app.asana.com/0/1213822431665320/1214550187808659

Tunes the Foundry invariant config in two ways:

  • fail_on_revert = true on the default profile. Previously handler reverts were silently discarded, so unexpected reverts in our invariant suite were invisible. Both existing handlers (StakingHandler, HeartbeatHandler) already guard preconditions with early returns, so flipping this is non-disruptive — verified locally with 0 reverts at default settings (256×500) and at 8× scale (500×1000).
  • New nightly profile with runs=2500, depth=1500 (~25× the default search space) so longer random sequences get explored without slowing PR CI.

Adds a nightly-invariants.yml GitHub Actions workflow that runs the invariant suite with FOUNDRY_PROFILE=nightly daily at 03:00 UTC (also workflow_dispatch).

@fgimenez
fgimenez requested a review from jcabrero May 5, 2026 17:34
@fgimenez
fgimenez merged commit 56f4a8f into main Jul 17, 2026
2 checks passed
@fgimenez
fgimenez deleted the fgimenez/foundry-invariant-tuning branch July 17, 2026 16:30
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