Skip to content

Conversation

@arvidn
Copy link
Contributor

@arvidn arvidn commented Nov 18, 2025

Purpose:

This test is ensuring unfinished blocks ended up accepted by the timelord. However, the timelord sometimes record unfinished blocks in the overflows list.

This makes the test pick either of the lists, and therefore makes it more robust as we add new test chains. We'll add additional test chains for the 3.0 hard fork.

@arvidn arvidn requested a review from a team as a code owner November 18, 2025 19:04
@arvidn arvidn requested a review from almogdepaz November 18, 2025 19:04
@coveralls-official
Copy link

Pull Request Test Coverage Report for Build 19477990032

Details

  • 10 of 11 (90.91%) changed or added relevant lines in 2 files are covered.
  • 23 unchanged lines in 7 files lost coverage.
  • Overall coverage increased (+0.02%) to 90.785%

Changes Missing Coverage Covered Lines Changed/Added Lines %
chia/_tests/timelord/test_new_peak.py 8 9 88.89%
Files with Coverage Reduction New Missed Lines %
chia/wallet/util/wallet_sync_utils.py 1 85.57%
chia/data_layer/data_layer.py 2 86.22%
chia/_tests/core/test_farmer_harvester_rpc.py 2 98.06%
chia/timelord/timelord.py 3 71.68%
chia/wallet/wallet_node.py 3 86.61%
chia/introducer/introducer.py 5 81.9%
chia/daemon/server.py 7 80.62%
Totals Coverage Status
Change from base Build 19476368417: 0.02%
Covered Lines: 102541
Relevant Lines: 112775

💛 - Coveralls

@arvidn arvidn added Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog Tests Changes to tests and removed coverage-diff labels Nov 18, 2025
@almogdepaz
Copy link
Contributor

so this was failing whenever the blocks turned out to be overflow ?

i think it would be better to check if the block is overflow or not and check the relevant list

@arvidn
Copy link
Contributor Author

arvidn commented Nov 19, 2025

so this was failing whenever the blocks turned out to be overflow ?

Yes. I suspect that with the new chains I generated, some of these blocks happened to be overflow blocks, by chance.

@arvidn arvidn requested a review from almogdepaz November 19, 2025 18:52
@arvidn arvidn requested a review from wjblanke November 20, 2025 10:19
@github-actions
Copy link
Contributor

File Coverage Missing Lines
chia/_tests/timelord/test_new_peak.py 93.3% lines 25
Total Missing Coverage
17 lines Unknown 94%

Copy link
Contributor

@wjblanke wjblanke left a comment

Choose a reason for hiding this comment

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

aok

@arvidn arvidn added ready_to_merge Submitter and reviewers think this is ready and removed coverage-diff labels Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fixed Required label for PR that categorizes merge commit message as "Fixed" for changelog ready_to_merge Submitter and reviewers think this is ready Tests Changes to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants