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

daniel1noble / BACE / 42741869243
89%

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

10 Nov 2026 02:18AM UTC coverage: 88.456% (+0.03%) from 88.429%
42741869243

push

github

daniel1noble
NEWS and regression tests for the 1.0.2 category-label fix

Covers the fix committed in 0a4742c alongside the version bump.

When a level of an ordered or categorical response is never observed in
training, MCMCglmm re-indexes the response to 1:K_eff in DECLARATION order, so
the prediction comes back with fewer columns than the factor has levels. The
right vocabulary is then the OBSERVED levels in declaration order.
.impute_levels() passed no observed set, so .align_levels_to_probs() fell back
to "the first n_cols DECLARED levels" -- correct only when the unobserved
levels happen to sit at the end:

  declared 2|3|4, prediction has 2 columns
    observed 2,3  -> returned 2,3   (right, by luck: the gap is last)
    observed 3,4  -> returned 2,3   WRONG, every value shifted one category
    observed 2,4  -> returned 2,3   WRONG

The other call site already passed `levels_observed` and was correct. The
observed set and the response name now go through both, so the warning also
names the variable instead of reporting '(unknown)'.

Reached in practice, not hypothetically: the 2026-11 campaign's ordinal trait
realises only three declared levels at phylo signal 0.3, with the top one
observed once (counts 38 / 61 / 1) or not at all after missingness. The
warning was firing seven times in a single scenario of the campaign's own
smoke test.

Tests pin the numbers: the three observed-set cases above, the old answer and
the new one side by side, and that the warning names the variable.

Suite 1914 pass / 0 fail / 0 error; R CMD check on 1.0.2 is 0/0/0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

4559 of 5154 relevant lines covered (88.46%)

1382.22 hits per line

Coverage Regressions

Lines Coverage ∆ File
67
81.58
0.24% R/model_functions.R
Jobs
ID Job ID Ran Files Coverage
1 42741869243.1 10 Nov 2026 02:22AM UTC 21
88.46
GitHub Action Run
Source Files on build 42741869243
  • Tree
  • List 21
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42741869243
  • 7651da42 on github
  • Prev Build on main (#42739930860)
  • Next Build on main (#42742940679)
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