Skip to content

[bot] Re-baseline test fixtures after GO pipeline file migration - #171

Merged
kltm merged 2 commits into
mainfrom
fix/rebaseline-fixtures-pipeline-migration
Jul 28, 2026
Merged

[bot] Re-baseline test fixtures after GO pipeline file migration#171
kltm merged 2 commits into
mainfrom
fix/rebaseline-fixtures-pipeline-migration

Conversation

@kltm

@kltm kltm commented Jul 28, 2026

Copy link
Copy Markdown
Member

[bot] Opened by a Claude Code agent on behalf of @kltm.

What

Re-baselines test fixtures against the new GO annotation files. tests/unit goes from 6 failed / 135 passed to 141 passed, 1 skipped. No production code changes — tests/ only.

Why

The GO pipeline migrated to a new annotation file layout and naming (go-technical-announcements#20). The new MOD-centric GAFs carry smaller gene coverage and lower per-gene annotation counts than the legacy files they replace, and GOlr is a faithful load of the new files:

Legacy New pipeline GOlr
Zebrafish genes zfin.gaf.gz — 19,738 gaf/DANRE-mod.gaf.gz — 15,163 15,163
Fly genes fb.gaf.gz — 13,633 gaf/DROME-mod.gaf.gz — 12,392 12,392
Fly annotations 169,872 161,834 161,834
FBgn0051155 aspects F=5 P=9 C=8 F=2 P=6 C=7 F=2 P=6 C=7

Counts match to the digit. The failing tests were baselined on legacy-pipeline data, so this is a re-baseline to current upstream truth — not a defect in go-fastapi or GOlr, and not assertions being relaxed to get green. Background and the full investigation are in #170.

Changes

Repoint ZFIN:ZDB-GENE-980526-388ZFIN:ZDB-GENE-990415-72 (9 files). The old ID is bmp2a, which has zero rows in DANRE-mod.gaf and therefore 404s on the bioentity, function and slimmer endpoints. It is still a live, valid, unmerged ZFIN gene — it is simply not in the new data. The new ID is the actual fgf8a, verified to resolve on all three endpoints with all three slim groups populated.

This also fixes a long-standing misnomer: test_slimmer_endpoint_fgf8a had been querying bmp2a, not fgf8a. It now tests what its name claims.

Drop the dead ID from test_ribbon.py's gene_ids rather than repointing, since that list already contained ZFIN:ZDB-GENE-990415-72.

Re-baseline test_fly_ribbon's molecular-function threshold, 4 → 2. This is the one assertion that is genuinely weaker, so it carries an in-place comment explaining that DROME-mod.gaf has 2 MF annotations for FBgn0051155 where the legacy file had 5, and that GOlr matches the new file exactly. The BP (>= 5) and CC (>= 5) thresholds still hold and are untouched, as are the label and taxon assertions.

Testing

tests/unit141 passed, 1 skipped against live services, versus 6 failed / 135 passed on main. codespell clean. ruff check tests/ is unchanged from main (and tox -e lint-fix only covers app/).

Scope note

Two things deliberately left alone:

— Posted by Claude Code agent on behalf of @kltm.

🤖 Generated with Claude Code

kltm and others added 2 commits July 28, 2026 16:08
The GO pipeline migrated to a new annotation file layout and naming
(go-technical-announcements#20). The new MOD-centric GAFs carry smaller gene
coverage and lower per-gene annotation counts than the legacy files, and GOlr
is a faithful load of the new files -- gene counts match to the digit. The
failing tests were baselined on legacy-pipeline data.

- Repoint the ZFIN:ZDB-GENE-980526-388 fixtures to ZFIN:ZDB-GENE-990415-72.
  The old ID is bmp2a, which has no rows in the new DANRE-mod.gaf and so 404s
  on the bioentity, function and slimmer endpoints. The new ID is the actual
  fgf8a, which resolves cleanly -- and it corrects a long-standing misnomer,
  since test_slimmer_endpoint_fgf8a had been querying bmp2a.
- Drop the dead ID from test_ribbon.py's gene_ids, which already listed
  ZFIN:ZDB-GENE-990415-72.
- Re-baseline the test_fly_ribbon molecular-function threshold from 4 to 2.
  DROME-mod.gaf carries 2 MF annotations for FBgn0051155 where the legacy
  fb.gaf carried 5; GOlr matches the new file exactly. The BP and CC
  thresholds still hold and are unchanged. Commented in place with the reason
  so it does not read as arbitrary relaxation.

No production code changes. tests/unit: 141 passed, 1 skipped (was 6 failed,
135 passed).

Addresses #170.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
ZFIN:ZDB-GENE-050417-357 (twist1b) has no rows in the new DANRE-mod.gaf, so
the bioentity function scenario 404s. Repoint to ZFIN:ZDB-GENE-010302-1
(foxc1a), which is present in the new data and carries the same GO:0030500
"regulation of bone mineralization" annotation the scenario asserts on.

Only the gene ID changes; the GO term and label assertions are untouched, so
the scenario tests exactly what it did before.

I had noted this ID in #170 as "not asserted on today" -- that was wrong, it
is asserted in the integration suite, which I had not run.

tests/integration: 7 passed. tests/unit: 141 passed, 1 skipped.

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

kltm commented Jul 28, 2026

Copy link
Copy Markdown
Member Author

Re-aligning tests with current reality.

@kltm
kltm merged commit 960efdc into main Jul 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant