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

openvax / topiary / 34904426888-1
94%

Build:
DEFAULT BRANCH: master
Ran 14 Sep 2026 10:35PM UTC
Jobs 1
Files 43
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

14 Sep 2026 10:30PM UTC coverage: 92.154% (+0.02%) from 92.138%
34904426888-1

push

github

web-flow
Give CachedPredictorCoverageError a __str__; catch RuntimeError in the CLI (#311)

* Give CachedPredictorCoverageError a __str__; catch RuntimeError in the CLI

A review of 5.56.1 found that my "test gap closed" claim was only half
true, and that the fix sat at the wrong layer. Both confirmed by running
them.

The vacuous assertion. The check meant to guard the coverage-error
unwrap was:

    assert "\"'CachedPredictor" not in captured.err

KeyError's str() reprs its argument, and repr picks double quotes when
the text itself contains single ones - which both coverage messages do
("Missed peptides: ['GILGFVFTL']", and {peptide!r}). So the unquoted
form starts with "C, never "'C, and that assertion could not fail in
either direction. Confirmed by deleting the entire unwrap branch: all
five CLI tests stayed green. The OSError test added in 5.56.1 was
genuinely effective; this one was not.

The wrong layer. The CLI was special-casing one exception's formatting,
so every non-CLI caller still got the quoted message - a library user or
vaxrank reading a traceback saw

    CachedPredictorCoverageError: "CachedPredictor: 'SIINFEKLA' occurs ..."

quotes and all, with newlines as literal \n. The class now defines
__str__ returning its single argument, so the readable form reaches
tracebacks, logs and the CLI alike, and falls back to KeyError's default
for the multi-arg case rather than silently dropping the extra args.

The CLI's unwrap is gone with it. That unwrap is what needed a type
guard to avoid printing OSError's errno, the guard got dropped once
while an adjacent comment was edited, and there is now no guard left to
drop: str(e) is correct for every type the handler catches. The
5.56.0/5.56.1 regression shape is structurally gone, not just patched.

RuntimeError added to the handler. mhcflurry_composite_version raises it
for setup the user has to finish - "mhcflurry has no active model
release. Run `mhcflurry-downloads fetch`" - and that advice was reac... (continued)

11 of 13 new or added lines in 3 files covered. (84.62%)

7129 of 7736 relevant lines covered (92.15%)

0.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
91.03
0.09% topiary/cached.py
Jobs
ID Job ID Ran Files Coverage
1 34904426888-1.1 14 Sep 2026 10:35PM UTC 43
92.15
GitHub Action Run
Source Files on build 34904426888-1
  • Tree
  • List 43
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34904426...
  • 862b6ade on github
  • Prev Build on master (#34803732...)
  • Next Build on master (#34989490...)
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