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

daniel1noble / BACE / 42565391149
89%

Build:
DEFAULT BRANCH: main
Ran 09 Nov 2026 05:10AM 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

09 Nov 2026 04:58AM UTC coverage: 87.951% (+0.01%) from 87.941%
42565391149

push

github

daniel1noble
Fix two crashes found by the simulation (#19, #20)

Both abort a run outright, and both were hit on an ordinary 54-scenario grid.

#19 sim_bace(): softmax overflow in mnom_liab2cat()

  probs <- exp(liab_full) / rowSums(exp(liab_full))

A liability above about 710 overflows exp() to Inf, and Inf/Inf is NaN, which
sample(prob = ) rejects with "NA in probability vector". Large liabilities are
ordinary when the response has several predictors with a strong phylogenetic
effect; it killed 3 of 54 scenarios, all at n = 500 with high signal.

Fixed by subtracting each row's maximum before exponentiating. Softmax is
invariant to adding a constant to every element of a row, so this changes
nothing mathematically. Verified: the failing input now returns the correct
category, and ordinary input is unchanged (class proportions 0.329/0.324/0.347).

#20 bace(): unguarded coda::geweke.diag() in the per-variable diagnostics

coda::geweke.diag() calls stats::ar(), which stops with "zero-variance series"
when a parameter's draws never moved. That took down the whole run -- after the
expensive fitting had already been paid for. The package already wraps the
identical call in tryCatch at R/phylo_signal_summary.R:850, so the hazard was
known; it was just missing at R/model_functions.R:1635.

Each of the three diagnostics is now guarded on its own and reports NA when it
cannot be computed. The surrounding isTRUE() tests treat NA as "not ok", so a
parameter whose diagnostics failed is flagged rather than assumed converged.

A first attempt also pre-empted the degenerate case into the existing "Fixed"
branch. That broke test-final-diagnostics.R, which pins that a gaussian model's
`units` is NOT labelled Fixed even though the mock holds it constant. The test
was right and the pre-check was doing more than the bug required, so it was
dropped: the guards alone stop the crash and change nothing else.

Tests: 1714 pass, 0 fail. The n = 100 scenario that reproduced #20 now runs.

... (continued)

10 of 10 new or added lines in 2 files covered. (100.0%)

4489 of 5104 relevant lines covered (87.95%)

877.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 42565391149.1 09 Nov 2026 05:10AM UTC 21
87.95
GitHub Action Run
Source Files on build 42565391149
  • Tree
  • List 21
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42565391149
  • 5fe98e71 on github
  • Prev Build on main (#42559140766)
  • Next Build on main (#42566230934)
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