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

daniel1noble / BACE / 42455092080
89%

Build:
DEFAULT BRANCH: main
Ran 08 Nov 2026 06:35AM UTC
Jobs 1
Files 21
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

08 Nov 2026 06:31AM UTC coverage: 87.98% (-0.09%) from 88.071%
42455092080

push

github

daniel1noble
Fix two ways a resume could silently return a wrong answer

Found by an adversarial review of the checkpoint feature, both reproduced
before fixing.

1. The manifest verdict was computed and then never used in the final
   phase: cached runs were loaded on file.exists() alone. With the manifest
   missing or unreadable, bace_final_imp() returned ANOTHER analysis's
   imputations - cells that were missing in this analysis came back holding
   the other analysis's observed values, identical across every imputation,
   with no error or warning. Saved runs are now reused only when the
   manifest confirms they belong to this analysis (the chained phase already
   did this correctly). A missing or unreadable manifest with saved files
   beside it now refuses, rather than trusting them or deleting them.

2. run_one accepted any readable object as a completed run, so a stray .rds
   was pooled as an imputation: that imputation silently became NULL, the
   pooled chain lost a sixth of its draws, and n_final still reported the
   requested number. Loaded files are now checked for the expected shape and
   recomputed otherwise.

Also fixed:

* With sample_size set, a resumed run did NOT match an uninterrupted one -
  the documented guarantee. The pooled subsample was drawn from wherever
  the ambient RNG stream sat, and a resume skips the chained phase, so it
  sat elsewhere. The subsample is now seeded from , which also makes
  sample_size reproducible for ordinary runs.
* round(runs * 1.5^k) can repeat a value (runs = 1 gives 1, 2, 2), so two
  retry attempts shared a chain file and the third silently replayed the
  second. Each attempt now has its own file.
* checkpoint_compress is a proper bace() argument instead of riding ... and
  triggering the unused-argument warning.
* The compression figures in the docs were wrong by an order of magnitude
  in both directions. Measured on real run objects: about 40% smaller for
  roughly ten times the write time, not ... (continued)

51 of 62 new or added lines in 4 files covered. (82.26%)

4472 of 5083 relevant lines covered (87.98%)

863.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
84.26
-3.24% R/checkpoint.R
4
88.95
-0.48% R/bace_final_imp.R
Jobs
ID Job ID Ran Files Coverage
1 42455092080.1 08 Nov 2026 06:35AM UTC 21
87.98
GitHub Action Run
Source Files on build 42455092080
  • Tree
  • List 21
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42455092080
  • 9478360b on github
  • Prev Build on main (#42453884692)
  • Next Build on main (#42516082343)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc