• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Chia-Network / chia-blockchain / 39283186220
91%

Build:
DEFAULT BRANCH: main
Ran 19 Oct 2026 05:42PM UTC
Jobs 1
Files 940
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Oct 2026 04:08PM UTC coverage: 90.257% (-0.07%) from 90.33%
39283186220

push

github

web-flow
Make timelord MMR test independent of fixture proof ordering (#21516)

## summary
- construct the stale-parent timing scenario instead of searching the
cached chain for an incidental nonzero-SP candidate
- use existing `skip_slots=2` and `force_overflow=True` block-generation
options; no generation monkeypatch or production changes
- preserve correct/stale MMR-root assertions and verify the parent was
infused before the candidate signage point

## verification
- all 5 `TestCommitments` tests passed on Python 3.13.12 / chia_rs
0.50.0
- in-memory stale-parent mutation fails at the final timelord MMR-root
assertion, as expected
- lint, formatting, diff checks, and commit hooks (including mypy)
passed
- used isolated regenerated block fixtures because the existing local
cache failed with `INVALID_SUB_EPOCH_SUMMARY`
- plot-group-specific dependencies and the full repository suite were
not tested locally

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Test-only change to block-commitment/timelord MMR coverage with no
runtime or consensus logic touched.
> 
> **Overview**
> **Refactors** `test_timelord_mmr_includes_peak_parent_before_sp` so
the stale-parent / nonzero-signage-point scenario is **built
deterministically** instead of discovered via `_late_parent_candidate`
on the cached fixture chain.
> 
> The test now picks a post-HF2, in-sub-slot parent from block records,
extends the chain with
`fork_height2_500_block_tools.get_consecutive_blocks` (`skip_slots=2`,
`force_overflow=True`), and uses the new tip as the candidate. It adds
checks that the candidate has a nonzero signage point and that the
parent was infused before the candidate’s SP. **Timelord MMR-root
expectations and the unfinished-block mutation are unchanged.**
> 
> No production code changes; `_late_parent_candidate` remains for other
tests.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
918a21fa0. Bugbot is set up for autom... (continued)

20011 of 25014 branches covered (80.0%)

Branch coverage included in aggregate %.

7 of 7 new or added lines in 1 file covered. (100.0%)

87 existing lines in 25 files now uncovered.

117912 of 127798 relevant lines covered (92.26%)

1.85 hits per line

Coverage Regressions

Lines Coverage ∆ File
26
76.11
-13.27% chia/_tests/core/util/test_lockfile.py
11
70.21
-1.34% chia/timelord/timelord.py
7
88.37
-6.4% chia/server/chia_policy.py
6
83.72
-12.79% chia/_tests/core/server/test_event_loop.py
6
93.19
-3.0% chia/util/db_wrapper.py
4
84.16
-0.21% chia/full_node/full_node.py
3
74.74
-1.05% chia/server/node_discovery.py
3
84.81
-0.39% chia/wallet/wallet_node.py
2
92.36
-0.26% chia/consensus/blockchain.py
2
93.85
-0.3% chia/data_layer/data_store.py
2
96.73
-0.98% chia/util/file_keyring.py
2
76.0
-16.0% chia/util/json_util.py
1
86.8
-0.29% chia/cmds/plotnft_funcs.py
1
95.5
-0.5% chia/full_node/block_store.py
1
54.43
-0.61% chia/plotters/bladebit.py
1
87.95
-0.51% chia/rpc/rpc_server.py
1
90.03
-0.13% chia/server/ws_connection.py
1
99.37
-0.05% chia/_tests/core/mempool/test_mempool_manager.py
1
94.12
-2.94% chia/_tests/core/util/test_file_keyring_synchronization.py
1
99.34
-0.33% chia/_tests/rpc/test_rpc_server.py
1
93.84
-0.59% chia/_tests/simulation/test_simulation.py
1
96.88
0.0% chia/_tests/util/test_replace_str_to_bytes.py
1
90.0
-1.67% chia/util/files.py
1
92.18
-0.05% chia/wallet/wallet_state_manager.py
1
96.61
-3.39% chia/wallet/wallet_user_store.py
Jobs
ID Job ID Ran Files Coverage
1 39283186220.1 19 Oct 2026 05:42PM UTC 1880
90.26
GitHub Action Run
Source Files on build 39283186220
  • Tree
  • List 940
  • Changed 35
  • Source Changed 1
  • Coverage Changed 35
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #39283186220
  • 7d2ee9b7 on github
  • Prev Build on main (#39258501453)
  • Next Build on main (#39303762252)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc