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

rust-bitcoin / rust-bitcoin / 7800336497
83%

Build:
DEFAULT BRANCH: master
Ran 06 Feb 2024 01:20PM UTC
Jobs 1
Files 87
Run time 7s
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

06 Feb 2024 01:19PM UTC coverage: 84.147%. Remained the same
7800336497

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#2450: kani: fix Amount overflow test

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/343510d3a017f770cdbfbaa7057c8d109773a575">343510d3a kani: fix Amount overflow test (Andrew Poelstra)

Pull request description:

  Our Kani CI job is currently failing. See https://github.com/rust-bitcoin/rust-bitcoin/actions/runs/7770495422/job/21190756253

  This fixes one of the issues; the other is that we're hitting a multiplication assertion in the test we added in https://github.com/rust-bitcoin/rust-bitcoin/pull/2393 which I'm unsure how to deal with.

  For reference, testing this was a bit of a PITA. I needed to

  ```
  # Ok, these steps are easy/obvious
  cargo install kani-verifier
  cargo kani
  ```

  This will give you an error located in core/panic.rs or something with the description `This is a placeholder message; Kani doesn't support message formatted at runtime` which is not super helpful. To get the actual failure, you need to write

  ```
  cargo kani --enable-unstable --concrete-playback=inplace
  ```

  which will add a weird unit test which calls into Kani to exercise the original test with a specific input value. Because it calls into Kani you can't just run it with `cargo test`. You need to run

  ```
  RUST_BACKTRACE=1 CARGO_INCREMENTAL=0 cargo kani playback -Z concrete-playback -- kani_concrete_playback_check_div_rem_8626518785677487871
  ```

  where `CARGO_INCREMENTAL=0` disables incremental compilation (this was causing rustc to flame out with a "filename too long" error because it was trying to create some intermediate file with multiple hashes and crate names in it), and the `kani_concrete_playback_123456789` thing is the name of the test that gets added (which you can easily find by reading `git diff`).

ACKs for top commit:
  tcharding:
    ACK 343510d3a017f770cdbfbaa7057c8d109773a575
  Kixunil:
    ACK 343510d3a017f770cdbfbaa7057c8d109773a575

Tree-SHA512: 398ce3c61b8645ec84df7e2a30bb5467660e77a... (continued)

19326 of 22967 relevant lines covered (84.15%)

16811.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7800336497.1 06 Feb 2024 01:20PM UTC 0
84.15
GitHub Action Run
Source Files on build 7800336497
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #7800336497
  • 06dc05c5 on github
  • Prev Build on master (#7786905064)
  • Next Build on master (#7800670843)
  • Delete
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