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

Chia-Network / chia-blockchain / 23662684159
91%

Build:
DEFAULT BRANCH: main
Ran 27 Mar 2026 08:42PM UTC
Jobs 1
Files 902
Run time 2min
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

27 Mar 2026 06:58PM UTC coverage: 91.162% (-0.08%) from 91.246%
23662684159

push

github

web-flow
Fix flaky test_trade_bad_spend: use set_remainder for post-block CAT balance (#20731)

The post_block_balance_updates for both wallet environments previously used
`"cat": {}` (assert no change from pre-block snapshot). But the pre-block
snapshot is taken with `set_remainder: True`, which captures the wallet's
live state at that instant. Because this test submits a deliberately bad
spend (zeroed BLS signature), the CAT wallet's unconfirmed_wallet_balance
is non-deterministic at snapshot time — it may be 4 (pending bad tx) or 0
(rejection already processed). After the block is farmed the wallet always
settles to 0, so if pre-block captured 4, the post-block assertion fails.

Fix: use `"cat": {"set_remainder": True}` in both post_block_balance_updates
so the checker snapshots the final state rather than asserting a delta. The
important behavioral guarantee (trade ends up FAILED) is still verified by
the `get_trade_and_status` assertion at the end of the test.

10450 of 11632 branches covered (89.84%)

Branch coverage included in aggregate %.

106057 of 116170 relevant lines covered (91.29%)

1.83 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
85.42
-0.34% chia/cmds/plotnft_funcs.py
1
96.88
-0.28% chia/full_node/block_store.py
1
87.03
-0.07% chia/full_node/full_node_api.py
1
81.9
-0.86% chia/introducer/introducer.py
1
94.52
-0.68% chia/server/chia_policy.py
1
99.82
-0.06% chia/_tests/core/mempool/test_mempool_manager.py
1
96.88
-1.56% chia/_tests/core/util/test_file_keyring_synchronization.py
1
99.42
-0.58% chia/_tests/rpc/test_rpc_server.py
1
94.65
0.14% chia/wallet/wallet_state_manager.py
1
98.18
-1.82% chia/wallet/wallet_user_store.py
2
95.52
-0.18% chia/data_layer/data_store.py
2
98.57
-0.57% chia/full_node/coin_store.py
2
98.06
-0.65% chia/_tests/core/test_farmer_harvester_rpc.py
2
96.58
-1.03% chia/util/db_wrapper.py
2
98.23
-0.71% chia/util/file_keyring.py
2
81.82
-13.64% chia/util/json_util.py
4
90.94
-1.25% chia/rpc/rpc_server.py
5
85.66
-0.61% chia/data_layer/data_layer.py
5
87.45
-0.13% chia/full_node/full_node.py
5
70.0
-3.57% chia/timelord/timelord_launcher.py
6
89.04
-8.22% chia/_tests/core/server/test_event_loop.py
7
80.62
-0.84% chia/daemon/server.py
7
80.56
-1.22% chia/server/node_discovery.py
10
86.25
-0.51% chia/wallet/wallet_node.py
11
73.18
-1.28% chia/timelord/timelord.py
26
77.42
-13.36% chia/_tests/core/util/test_lockfile.py
Jobs
ID Job ID Ran Files Coverage
1 23662684159.1 27 Mar 2026 08:42PM UTC 1804
91.16
GitHub Action Run
Source Files on build 23662684159
  • Tree
  • List 902
  • Changed 28
  • Source Changed 1
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23662684159
  • 6ea8b068 on github
  • Prev Build on main (#23648650961)
  • Next Build on main (#23662689468)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc