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

openvax / topiary / 33445739087
94%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2026 10:23PM UTC
Jobs 3
Files 35
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

31 Aug 2026 10:20PM UTC coverage: 91.261% (+0.02%) from 91.24%
33445739087

push

github

web-flow
Put the genotype in the cache key (#230)

CachedPredictor keyed on (peptide, allele, peptide_length, kind,
n_flank, c_flank). MHCflurry presentation in haplotype mode scores a
peptide against a whole genotype and reports the deconvolved best
allele, so two genotypes deconvolving to the same best allele collided
on every key column and the lookup silently returned one of them.

_CACHE_COLUMNS already explained why the genotype matters -- "without it
a cached presentation row reads as a prediction for its deconvolved best
allele" -- and then allele_set was not in the key. The reasoning was
written down and not applied one field over, which is the third instance
of that shape this week.

allele_set joins the key on the argument the key already makes for
n_flank/c_flank: the same peptide in a different context produces a
different score, so the context is part of the identity. Blank genotypes
coexist with populated ones the way absent flanks do, and every spelling
of "no genotype" is one key rather than four -- adding a key dimension is
a chance to add the absent-versus-empty bug on a new axis, so it goes
through the same is_stated rule as everything else.

Provenance stays out: source_sequence_name, peptide_offset and
sample_name say where a peptide was found, not what was predicted about
it. Keying on them would defeat the cache by re-predicting the same
peptide once per source protein.

This replaces the closed #228, which tried to refuse duplicate keys
instead. That was a workaround on a wrong key and it introduced silent
data loss; fixing the key removes the collisions it was trying to
police.

Also updates five tests that hand-wrote the key tuple. They pinned the
key's shape rather than the behavior, so they broke on a new dimension
for no behavioral reason -- and would have passed just as happily with a
wrong key. They ask the key builder now.

9 tests. Version 5.36.0.

Claude-Session: https://claude.ai/code/session_01BAUqjqDDPXaTdtUDJqapJG

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

5890 of 6454 relevant lines covered (91.26%)

2.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python-3.12 - 33445739087.1 31 Aug 2026 10:24PM UTC 35
91.26
GitHub Action Run
2 python-3.11 - 33445739087.2 31 Aug 2026 10:23PM UTC 35
91.26
GitHub Action Run
3 python-3.10 - 33445739087.3 31 Aug 2026 10:23PM UTC 35
91.26
GitHub Action Run
Source Files on build 33445739087
  • Tree
  • List 35
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33445739087
  • 32732025 on github
  • Prev Build on master (#33436561538)
  • Next Build on master (#33451310661)
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