Skip to content

fix test_get_puzzle_and_solution() - #1187

Merged
arvidn merged 1 commit into
mainfrom
less-checkpoints
Aug 1, 2025
Merged

fix test_get_puzzle_and_solution()#1187
arvidn merged 1 commit into
mainfrom
less-checkpoints

Conversation

@arvidn

@arvidn arvidn commented Aug 1, 2025

Copy link
Copy Markdown
Contributor

don't reuse the same allocator, as the debug-allocator feature has a limit on the number of times you can restore to a previous checkpoint.

Fixes this issue: https://github.com/Chia-Network/chia_rs/actions/runs/16680635805/job/47218189564#step:9:2763

---- get_puzzle_and_solution::test::test_get_puzzle_and_solution::case_02 stdout ----
file: ../../generator-tests/block-6fe59b24.txt

thread 'get_puzzle_and_solution::test::test_get_puzzle_and_solution::case_02' panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clvmr-0.16.1/src/allocator.rs:383:9:
assertion failed: self.versions.len() <= 255
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

… the debug-allocator feature has a limit on the number of times you can restore to a previous checkpoint
@arvidn
arvidn requested review from Rigidity and jack60612 August 1, 2025 17:19

@jack60612 jack60612 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

@arvidn
arvidn merged commit 7dd252c into main Aug 1, 2025
57 of 58 checks passed
@arvidn
arvidn deleted the less-checkpoints branch August 1, 2025 17:52
@coveralls-official

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 16681132147

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 66.09%

Totals Coverage Status
Change from base Build 16680635818: 0.0%
Covered Lines: 11542
Relevant Lines: 17464

💛 - Coveralls

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.

3 participants