tests: split the grab-bag module, share the builders, move benches out, and close the coverage gaps found in review
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 22/100
Direzione di ricerca
Start with tests/test_util.py and conftest.py, where the shared chunk, read and alignment builders would move, then check signal_refine.py lines 101-141 for the pickle cache that needs an autouse redirect to a temp dir. Work through the listed coverage gaps in training.py (lines 789-794) and commands/merge_split.py (lines 44-88). Done means the split modules collect with no slower collect time, each gap has a test or a stated reason, and CI runtime is reported before and after.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Tier P3 · effort M · from the 2026-09-13 review (CLI F15; models F16; training F15; inference F23; prep F15)
Structure: tests/test_util.py (1,686 lines) holds TestComputeMetrics,
TestLoadModelFromCheckpoint, TestModelBundle, TestAggregatePairwise,
TestModelExport, TestVmapBundle, TestVmapInferenceIntegration,
TestResolvePairLabels. def make_chunks is defined in four files,
_make_synthetic_read and _make_mock_alignment in two each;
conftest.py's sample_chunks serves one shape. signal_refine.py:101-141
writes levels.txt.pkl (5.5 MB) beside tests/fixtures/levels.txt and
src/leech/data/*.pkl on first run. Four tests/bench_*.py are not collected
and two point at /path/to/reads.bam. 1,598 tests collect in 12.9 s.
Gaps, each named by the reviewer that found it:
- models:
test_all_models_forwardcovers 10 of 29 names withtorch.randnfor the one-hot sequence; the export test covers 1; no(B, 36, L)test for the hand-written classes; no 2-channelTCNDwellResidualforward outside the parity file; no batched-vs-per-sample augmentation distribution test; CRF has no end-to-end CPU "train two epochs, loss falls, decode improves" test; 8 CUDA-only tests never run in CI. - training: no test runs the adversarial/CL head through
torch.compile(a CPU test withbackend="eager"would; if the pre-hook is not traced,_adversarial_lossreturns zero silently,training.py:789-794). - inference: Remora loading (
is_remora,RemoraModelWrapper,_extract_remora_metadata) has zero tests; eval on a multiclass checkpoint is untested;_write_mega_batch_predictionsbinary MP/ML only via fixture integration. - prepare:
focus_mapis only tested as a bypass reason;_propagate_prepare_config(commands/merge_split.py:44-88) has no test.
Acceptance criteria
test_util.pyis split by module under test; the chunk/read/alignment builders live inconftest.pywith parameters for shape;bench_*.pymove toscripts/bench/with real fixture paths or are deleted; the pickle cache is redirected to a temp dir under pytest by an autouse fixture.- Each gap above has a test, or a one-line reason in the PR why not.
- Collect time does not grow; CI runtime is reported before/after.
Non-goals
- Enabling xdist in CI (the memory note: it stalls under srun; the 4-minute job does not need it).
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 0
- Merge medio
- 11h 17m
- PR unite (30g)
- 23
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rnabioco/leech
-
load_model_from_checkpoint drops num_out/signal_in_channels for models whose __init__ takes **kwargsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 Più di una settimana Idoneità per principianti 18/100
I maintainer di solito rispondono entro 1 giorno
-
model train-many: one launcher that owns an allocation and trains a queue of configs across its GPUsAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 18/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di rnabioco/leech
Issue simili
-
docs: powerpc not supportedAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
microsoft/TokenEconomizer#360 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
reasons-gate
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
benthomasson/reasons-service#190 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno