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

Neptune-Crypto / neptune-core / 14607972517
75%

Build:
DEFAULT BRANCH: master
Ran 23 Apr 2025 02:01AM UTC
Jobs 1
Files 213
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

23 Apr 2025 01:20AM UTC coverage: 84.99% (+0.5%) from 84.452%
14607972517

push

github

dan-da
test: fix race_condition_with_one_new_block

This test was hanging forever in CI.

There were two problems:

1. The CLI args were using the default auto-detected TxProvingCapability which
results in PrimitiveWitness capability on the CI machine which causes the proof
upgrader job to log an error and return (abort).

2. The test was passing a cloned channel sender to handle_upgrade() then calling
recv() on the receiver prior to dropping the original sender.  So after
handle_upgrade() aborts and returns the test waits for this message which will
never come because handle_upgrade() already dropped that sender.  But the test
is holding the original sender so it never gets dropped.  deadlock.

The fix for (1) is set the CLI args capability to match the capability in each
iteration of the loop [ProofCollection, SingleProof].

The fix for (2) is simply to *move* the sender into handle_upgrade() instead of
cloning it, so that it gets dropped when the fn ends.  THen the recv().await
immediately returns an error because the channel is closed.

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

2475 existing lines in 50 files now uncovered.

54831 of 64515 relevant lines covered (84.99%)

165910.85 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
90.74
-0.14% src/util_types/mutator_set/mutator_set_accumulator.rs
2
69.7
1.84% src/models/state/blockchain_state.rs
3
76.14
-0.81% src/locks/tokio/atomic_rw.rs
3
92.59
1.06% src/models/blockchain/transaction/utxo.rs
4
0.0
0.0% src/main.rs
4
97.67
0.06% src/models/blockchain/block/block_header.rs
4
92.98
-4.69% src/models/proof_abstractions/verifier.rs
5
81.33
3.27% src/config_models/cli_args.rs
5
78.26
0.99% src/job_queue/traits.rs
5
84.17
62.64% src/lib.rs
6
87.04
-9.84% src/config_models/network.rs
6
98.75
-0.01% src/models/blockchain/block/validity/block_program.rs
7
97.94
1.94% src/models/blockchain/transaction/mod.rs
7
27.91
0.0% src/models/channel.rs
7
78.13
-21.88% src/models/state/wallet/unlocked_utxo.rs
8
78.95
-16.7% src/macros.rs
8
75.95
0.75% src/models/peer.rs
9
98.83
-0.09% src/models/blockchain/transaction/validity/single_proof.rs
10
80.37
0.19% src/models/blockchain/type_scripts/mod.rs
10
98.25
0.0% src/models/blockchain/type_scripts/native_currency.rs
10
89.43
0.0% src/models/state/wallet/address/symmetric_key.rs
10
87.8
-3.68% src/models/state/wallet/rusty_wallet_database.rs
11
99.07
0.02% src/models/state/wallet/mod.rs
13
98.57
-0.21% src/models/blockchain/transaction/validity/tasm/single_proof/update_branch.rs
15
93.42
-1.94% src/models/state/transaction_details.rs
16
55.26
23.44% src/models/state/tx_proving_capability.rs
17
95.8
0.02% src/models/blockchain/type_scripts/native_currency_amount.rs
17
89.34
0.0% src/models/state/wallet/address/generation_address.rs
18
95.35
0.06% src/models/state/mempool.rs
19
80.95
1.12% src/models/blockchain/transaction/lock_script.rs
21
91.97
0.4% src/models/blockchain/block/difficulty_control.rs
23
0.0
0.0% src/bin/dashboard_src/receive_screen.rs
23
97.13
0.01% src/models/state/archival_state.rs
27
81.64
1.81% src/database/neptune_leveldb.rs
35
92.14
-1.4% src/job_queue/queue.rs
38
95.76
-0.27% src/models/blockchain/transaction/primitive_witness.rs
47
86.98
0.26% src/models/proof_abstractions/tasm/program.rs
54
92.8
8.51% src/main_loop/proof_upgrader.rs
54
86.52
-12.65% src/models/blockchain/transaction/validity/proof_collection.rs
66
87.16
-8.4% src/models/state/wallet/transaction_output.rs
73
84.73
1.53% src/models/blockchain/block/mod.rs
80
0.0
0.0% src/bin/dashboard_src/send_screen.rs
91
46.26
10.47% src/models/proof_abstractions/tasm/prover_job.rs
107
0.0
0.0% src/bin/neptune-cli.rs
168
95.16
0.13% src/models/state/wallet/wallet_state.rs
189
92.75
-0.61% src/models/state/mod.rs
211
63.57
0.53% src/mine_loop.rs
266
74.46
18.14% src/main_loop.rs
266
86.69
1.81% src/peer_loop.rs
376
85.26
-4.41% src/rpc_server.rs
Jobs
ID Job ID Ran Files Coverage
1 14607972517.1 23 Apr 2025 02:01AM UTC 213
84.99
GitHub Action Run
Source Files on build 14607972517
  • Tree
  • List 213
  • Changed 74
  • Source Changed 66
  • Coverage Changed 61
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14607972517
  • df937177 on github
  • Prev Build on master (#14133619659)
  • Next Build on master (#14609014407)
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