Repository navigation
fix(ci): restore green master build after #1471/#1476/#1478 - #1479
Merged
Merged
Conversation
- rate_limit_enforcement_tests (from #1476) never compiled: it imported a non-existent crate::test_utils, called CircuitBreaker::set_state and CircuitBreakerState::Open which do not exist, and lacked the testutils Ledger trait import. Its tests also registered a second, uninitialised contract after setup, so they could not pass. Drop the module; the rate-limiter enforcement changes from #1476 are kept. - BudgetGuard::check compared *consumed* instructions against the "minimum remaining" threshold, so distribute_payouts aborted with OperationWouldExceedBudget after 100k instructions. This was hidden while resolution auto-distributed with `let _ =`; #1471 made distribution an explicit call and its payout gating tests exposed it. Compute remaining headroom against a per-transaction ceiling instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… limit #1476 changed the voting bucket key from (user, market) to user, making the voting limit global per user. The old test still expected a fresh budget on a second market. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…indow #1471 removed the automatic distribution from resolve_market_manual, so the conservation test must wait out the post-resolution dispute window and call distribute_payouts before checking credited balances. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Master has been red since #1471, #1476 and #1478 were merged.
rate_limit_enforcement_tests.rs(from fix(rate-limiter): enforce bet and oracle limits and use ledger units… #1476) referenced a non-existentcrate::test_utils, non-existentCircuitBreaker::set_state/CircuitBreakerState::Open, and was missing thetestutils::Ledgerimport. Its tests also registered a fresh, uninitialised contract after setup, so they could not pass. The module is removed; the rate-limiter enforcement code from fix(rate-limiter): enforce bet and oracle limits and use ledger units… #1476 stays.payout_gating_testsfrom fix(resolution): make resolution one-way and gate payouts on dispute window #1471):BudgetGuard::checkcompared consumed instructions against the "minimum remaining" threshold, sodistribute_payoutsreturnedOperationWouldExceedBudget(Metadata max length limits #444) after only 100k instructions. Before, resolution auto-distributed withlet _ =and swallowed this. The check now computes remaining headroom against a per-transaction ceiling.🤖 Generated with Claude Code