Skip to content

Harden staking precompile test against CI flakiness#2967

Merged
masih merged 2 commits intomainfrom
masih/undelegate-flake-fix
Feb 23, 2026
Merged

Harden staking precompile test against CI flakiness#2967
masih merged 2 commits intomainfrom
masih/undelegate-flake-fix

Conversation

@masih
Copy link
Collaborator

@masih masih commented Feb 23, 2026

Stabilize EVMPrecompileTest staking flow by removing brittle assumptions and adding retries around timing/gas-sensitive operations.

  • choose a usable validator (prefer non-jailed bonded) instead of validators[0]
  • add helper sleep() and retry delegation query after delegate
  • make undelegate resilient with escalating gas limits (1m, 2m, 5m)
  • retry post-undelegate delegation check to handle eventual state visibility
  • improve failure messages for easier CI diagnosis

This is test-only and does not change runtime precompile behavior.

Stabilize EVMPrecompileTest staking flow by removing brittle assumptions and
adding retries around timing/gas-sensitive operations.

- choose a usable validator (prefer non-jailed bonded) instead of validators[0]
- add helper sleep() and retry delegation query after delegate
- make undelegate resilient with escalating gas limits (1m, 2m, 5m)
- retry post-undelegate delegation check to handle eventual state visibility
- improve failure messages for easier CI diagnosis

This is test-only and does not change runtime precompile behavior.
@github-actions
Copy link

github-actions bot commented Feb 23, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedFeb 23, 2026, 9:01 PM

@masih masih enabled auto-merge (squash) February 23, 2026 20:53
@masih masih merged commit 68fa79f into main Feb 23, 2026
33 checks passed
@masih masih deleted the masih/undelegate-flake-fix branch February 23, 2026 21:21
yzang2019 added a commit that referenced this pull request Feb 24, 2026
* main:
  fix: use correct EVM storage key prefix in benchmark key generation (#2966)
  Harden staking precompile test against CI flakiness (#2967)
  Don't sync flatKV DBs when committing  (#2964)
  Fix flaky `TestStateLock_POLSafety1` (#2962)
yzang2019 added a commit that referenced this pull request Feb 27, 2026
* main: (66 commits)
  feat(flatkv): include legacyDB in ApplyChangeSets, LtHash, and read path (#2978)
  Deflake mempool tests with Eventually-based block waits (#2983)
  Demote noisy gasless classification log to debug level (#2982)
  Harden `TestStateLock_NoPOL` against proposal/timeout race (#2980)
  added a config parameter to limit outbound p2p connections. (#2974)
  merged unconditional and persistent peers status (#2977)
  Fix race between file pruning and in-flight parquet queries (#2975)
  fix(giga): don't migrate balance on failed txs (#2961)
  Fix hanging upgrade tests by adding timeouts to wait_for_height (#2976)
  Add snapshot import for Giga Live State (#2970)
  Fix Rocksdb MVCC read timestamp lifetime for iterators (#2971)
  Reduce exposed tendermint RPC endpoint (#2968)
  Deflake `TestStateLock_NoPOL` by widening propose timeout in test (#2969)
  go bench read + write receipts/logs for parquet vs pebble (#2794)
  [giga] clear up cache after Write (#2827)
  fix: use correct EVM storage key prefix in benchmark key generation (#2966)
  Harden staking precompile test against CI flakiness (#2967)
  Don't sync flatKV DBs when committing  (#2964)
  Fix flaky `TestStateLock_POLSafety1` (#2962)
  Add metrics for historical proof success/failure rate (#2958)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants