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

Chia-Network / chia-blockchain / 24906861735
91%

Build:
DEFAULT BRANCH: main
Ran 24 Apr 2026 08:33PM UTC
Jobs 1
Files 906
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

24 Apr 2026 07:01PM UTC coverage: 91.185% (-0.04%) from 91.227%
24906861735

push

github

web-flow
[CHIA-4180] Detect spend bundle rejections early in wallet test framework (#20768)

* Detect spend bundle rejections early in wallet test framework

The mempool-wait loop in wait_transaction_records_entered_mempool now
optionally checks the wallet's transaction store for non-recoverable
rejection errors and raises immediately instead of waiting for the full
timeout. process_pending_states error messages now include the original
exception for better CI diagnostics.

* Bump transaction rejection logs from INFO to WARNING

The ValueError and ValidationError rejection messages in
respond_transaction were logged at INFO level, which is below the
captured log threshold in tests. This made INVALID_SPEND_BUNDLE
rejections invisible in CI output — only the wallet-side warning
appeared, with no indication of the actual rejection reason (e.g.
"timeout 2.3 s", "too many pairs", validation error code).

Bumping to WARNING ensures the rejection reason appears in captured
test logs alongside the wallet rejection warning.

* Fix false-positive rejection detection for retried transactions

Address bugbot finding: sent_to accumulates both FAILED and SUCCESS
entries since increment_sent always appends. A transaction rejected by
one peer then accepted by another would trigger a spurious RuntimeError
on the stale FAILED entry.

Fix: (1) prune tx names from the rejection check set once their bundle
is found in the mempool, and (2) skip records that already report
is_in_mempool() (have a SUCCESS or PENDING entry), matching the
semantics of TransactionRecord.is_valid().

* Add tests for rejection detection and ValueError coverage paths

Cover the four lines flagged by diff-cover:
- full_node.py:2818 — ValueError handler in add_transaction
- full_node_simulator.py:536 — continue when wallet reports in_mempool
- full_node_simulator.py:538,543 — fast-fail RuntimeError on non-recoverable rejection

* Revert unrelated log level change per review feedback

Drop the info→warning bu... (continued)

10525 of 11725 branches covered (89.77%)

Branch coverage included in aggregate %.

87 of 87 new or added lines in 3 files covered. (100.0%)

80 existing lines in 23 files now uncovered.

107378 of 117576 relevant lines covered (91.33%)

1.83 hits per line

Coverage Regressions

Lines Coverage ∆ File
26
77.42
-13.36% chia/_tests/core/util/test_lockfile.py
8
86.42
-0.51% chia/wallet/wallet_node.py
7
80.62
-0.84% chia/daemon/server.py
6
89.04
-8.22% chia/_tests/core/server/test_event_loop.py
4
80.38
-0.52% chia/server/node_discovery.py
3
87.77
0.13% chia/full_node/full_node.py
3
85.56
-0.53% chia/server/server.py
3
71.43
-0.71% chia/timelord/timelord_launcher.py
2
85.68
-0.24% chia/data_layer/data_layer.py
2
95.55
-0.17% chia/data_layer/data_store.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
1
85.42
-0.34% chia/cmds/plotnft_funcs.py
1
96.88
-0.28% chia/full_node/block_store.py
1
90.94
-0.31% chia/rpc/rpc_server.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
99.42
-0.58% chia/_tests/rpc/test_rpc_server.py
1
96.49
-0.32% chia/_tests/simulation/test_simulation.py
1
92.98
-1.75% chia/util/files.py
1
94.48
-0.05% chia/wallet/wallet_state_manager.py
1
98.18
-1.82% chia/wallet/wallet_user_store.py
Jobs
ID Job ID Ran Files Coverage
1 24906861735.1 24 Apr 2026 08:33PM UTC 1812
91.18
GitHub Action Run
Source Files on build 24906861735
  • Tree
  • List 906
  • Changed 28
  • Source Changed 3
  • Coverage Changed 27
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24906861735
  • 3f72d820 on github
  • Prev Build on main (#24781358263)
  • Next Build on main (#24932031266)
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