Fix or quarantine Warbow benchmark forge tests #353
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega#353
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Transition Gap Analysis (#342) — P2 #13. Bundles M-C5.
Current codebase
TimeArenaWarbowBenchmark.t.sol:test_benchmark_warbow_10k_player_ranking(timer not armed),test_benchmark_warbow_steal_10k_player_ranking(level) failed in gap-analysis CI run.forge testsignal (215 pass / 6 fail with 4 expected fork airdrop misses).Why needed
Clean
forge testsignal is required for agent/CI verification; benchmark flakes block transition-gap follow-up work.Constraints / guardrails
FOUNDRY_PROFILEor explicitvm.skip+ issue link — document inci.md.Relevant files
contracts/test/TimeArenaWarbowBenchmark.t.soldocs/testing/ci.mdRecommended direction
TimeArena.t.sol).forge testpasses except knowndoub.csvfork tests.Acceptance criteria
forge testin CI/agent docs no longer reports unexpected Warbow benchmark failures.Test plan
cd contracts && forge test --match-contract TimeArenaWarbowBenchmarkcd contracts && forge testAttack / abuse test plan
N/A — test infrastructure only.
Verification criteria
forge test --match-contract TimeArenaWarbowBenchmarkexits 0.mentioned in issue #342
mentioned in merge request !524
mentioned in commit
078c379d56Verification — issue #353 (PASS)
Verified on
main@078c379d(merge ofissue-353-warbow-benchmark-slots).Acceptance criteria
cd contracts && forge test --match-contract TimeArenaWarbowBenchmark→ exit 0; 2/2 passed (test_benchmark_warbow_10k_player_ranking,test_benchmark_warbow_steal_10k_player_ranking)forge testno longer reports unexpected Warbow benchmark failurescd contracts && forge test→ 227 passed; Warbow benchmarks included in suite; only 4 failures are expectedDoubAirdropMegaethForktests missing gitignoredairdrop/doub.csvTimeArenaWarbowBenchmark.t.solstorage slot constants (SLOT_CACHED_LEVEL106, etc.) updated after layout drift;TimeArena.solranking logic unchangedRoot cause (already fixed on main)
Benchmark setup used stale
vm.storeslots afterTimeArenaappend-only layout drift — timer roll failed withtimer not armed; steal benchmark failedlevelgate. Fix (df74d3fa): refresh slots fromforge inspect TimeArena storage-layout, arm WarBow podium via level-4buy()on top-3 players (mirrorsTimeArena.t.solpatterns). No quarantine needed.Docs / invariants
docs/testing/ci.md— WarBow benchmarks documented as included in full suite (#353)docs/testing/warbow-ranking-benchmark-312.md— slot refresh note links #353INV-TIME-ARENA-WARBOW-RANK-312referencesTimeArenaWarbowBenchmarkgas probesNo additional repo changes required from this verification pass.