|
Ran
|
Jobs
1
|
Files
946
|
Run time
1min
|
Badge
README BADGES
|
push
github
improve generation of the plot_cache.pickle file (#21561) generate individual caches per test, as they are generated, then merge them at the end. This resolves an issue where the plot_cache.pickle would grow indefinitely as chains were tweaked <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Test-only infrastructure changes affect CI cache correctness and runtime; production paths are untouched but a bad merge/prune could slow or destabilize local/CI test runs. > > **Overview** > Replaces the old **process-exit merge** into `plot_cache.pickle` with **per-test plot lookup recordings** under `plot_cache_tests/`, keyed by parametrized pytest node IDs. Each passing test persists its hits/misses; **session finish** rebuilds the shared cache from those recordings only, so stale entries from tweaked chains no longer accumulate indefinitely. > > **pytest** hooks wrap every test in `record_test()`, skip recording for **persistent fixture-chain generation** (`ignore_recording()` in blockchain helpers), **prune** recordings for removed/renamed tests on full-file collection, and **merge** into `plot_cache.pickle` when the run succeeds (not on workers, `collectonly`, or failed sessions). Chain file writes use **atomic replace**; docs in `test_build_chains.py` describe the new workflow. **Timelord** test job timeout increases from 40s to 60s. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit b741fdb61. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
20112 of 25098 branches covered (80.13%)
Branch coverage included in aggregate %.
226 of 233 new or added lines in 5 files covered. (97.0%)
48 existing lines in 11 files now uncovered.118557 of 128423 relevant lines covered (92.32%)
1.85 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 5 |
84.03
|
-0.02% | chia/_tests/conftest.py |
| 1 |
0.0
|
0.0% | chia/_tests/timelord/config.py |
| 1 |
96.44
|
2.12% | chia/_tests/util/plot_cache.py |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 11 |
70.21
|
-1.25% | chia/timelord/timelord.py |
| 10 |
95.5
|
0.0% | chia/full_node/block_store.py |
| 6 |
83.99
|
-0.25% | chia/full_node/full_node.py |
| 6 |
75.19
|
-1.05% | chia/server/node_discovery.py |
| 5 |
76.47
|
-1.47% | chia/introducer/introducer.py |
| 2 |
85.84
|
-0.21% | chia/data_layer/data_layer.py |
| 2 |
86.2
|
-0.18% | chia/full_node/full_node_api.py |
| 2 |
99.37
|
0.02% | chia/_tests/core/full_node/stores/test_block_store.py |
| 2 |
97.0
|
-0.9% | chia/_tests/core/test_farmer_harvester_rpc.py |
| 1 |
84.31
|
-0.2% | chia/seeder/dns_server.py |
| 1 |
85.03
|
0.11% | chia/wallet/wallet_node.py |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 40033972967.1 | 1892 |
90.33
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|