-
Notifications
You must be signed in to change notification settings - Fork 392
feat: charge cycles for log memory resize in update_settings #9883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
35fa444
refactor: improve canister logging test helpers
maksymar db6f7ce
feat: charge cycles for log memory resize in update_settings
maksymar 1c85187
refactor: simplify LogResizeNotEnoughCycles to tuple variant
maksymar 316f234
test: improve resize test structure and add coverage
maksymar 40eabed
refactor: remove LogResizeNotEnoughCycles, reuse InsufficientCyclesIn…
maksymar b54d97a
refactor: simplify resize tests to use realistic 100-byte messages
maksymar 230624d
merge master
maksymar 8fa3adb
refactor: compute repeat count from estimated record size
maksymar 5a2ca1a
test: remove unreliable no_charge_without_limit test
maksymar 061fdf3
docs: improve LOG_RESIZE_COST_PER_BYTE doc comment
maksymar 98e37f7
refactor: add InsufficientCyclesInLogResize error variant
maksymar a9c27ab
test: improve log resize charging tests
maksymar 81a9e94
test: replace magic number with named variable in resize test
maksymar f237b2a
typo
maksymar 67048a1
fix: avoid recomputing freezing threshold in log resize cycle deduction
maksymar 0b8371f
typo
maksymar e6f1c13
refactor: consolidate log_memory_limit validation into a single if/else
maksymar 451e2de
fix: charge log resize based on pre-mutation bytes_used
maksymar 2ab7012
.
maksymar 06cdb77
cleanup
maksymar 79c2064
fix: account for reservation_cycles in log resize affordability check
maksymar ee9ce82
fix: skip log resize charge when resize would be a no-op
maksymar fb8f721
refactor: unify would_resize and resize_impl no-op logic
maksymar af1e42a
refactor: replace InsufficientCyclesInLogResize with LogResizeNotEnou…
maksymar 0cc3b3c
test: remove redundant test_would_resize_matches_resize
maksymar 6dbf8b2
LOG_MEMORY_STORE_FEATURE_ENABLED false
maksymar 16a973a
Merge branch 'master' into maksym/log-resize-charging
maksymar 6a490ea
cleanup
maksymar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.