Skip to content

fix(ingest): a set's description names its method, not the producer's record - #1301

Merged
github-actions[bot] merged 1 commit into
developfrom
fix/ingested-set-names-its-method
Nov 24, 2026
Merged

github-actions[bot] merged 1 commit into
developfrom
fix/ingested-set-names-its-method

Conversation

@frapercan

Copy link
Copy Markdown
Owner

What was wrong

ingest_method_predictions wrote the producer's whole record into the prediction set's description, so the public page of the champion's set read:

The predictions of method {'name': 'own-annotations-ranked-coan-lafa-194', 'driver': 'via1/ordena1.py', 'rounds': 1517, ...}, ingested from a file hashing to ...

The change

  • _set_description builds the text from the method's name: "The predictions of method own-annotations-ranked-coan-lafa-194, ingested from a file hashing to ...". A record without a name reads as "an unnamed method".
  • The record itself stays where it was, in meta["producer"], which the seal reads as identity. No identity field changes.
  • Moving the text into a helper also keeps execute under the 60-line limit of the smells gate.

The sets already written keep their old text until it is corrected in each store; that is a data fix, separate from this PR.

Tests

  • test_the_description_names_the_method_not_its_record pins the text and that no dict is printed.
  • Locally, tests/test_ingest_method_predictions.py, tests/test_register_ingested_method.py and tests/test_run_lab_method.py pass.
  • Locally, ruff-check, smells, sets and openapi-refs pass. The local ruff-format ratchet fails, because its base still names a deleted branch. The four lines it flags are a fixture that develop's copy of the same file formats the same way, and this PR leaves it untouched.

… record

ingest_method_predictions wrote the producer's whole record into the
prediction set's description ("The predictions of method {'name': ...,
'driver': ..., ...}"), and the public page of the set shows that text.
The description now names the method; the record stays in meta, where
the seal reads it as identity. A record without a name reads as "an
unnamed method".

The text moves to a helper, which also keeps execute under the 60-line
limit of the smells gate.
@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.64%. Comparing base (7edfb68) to head (5fb3bdd).
⚠️ Report is 6 commits behind head on develop.

❌ Your project check has failed because the head coverage (83.90%) is below the target coverage (85.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1301      +/-   ##
===========================================
- Coverage    85.69%   85.64%   -0.05%     
===========================================
  Files          471      471              
  Lines        37374    37411      +37     
===========================================
+ Hits         32026    32040      +14     
- Misses        5348     5371      +23     
Files with missing lines Coverage Δ
...rotea/core/operations/ingest_method_predictions.py 99.45% <100.00%> (+<0.01%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@frapercan
frapercan marked this pull request as ready for review November 24, 2026 16:57
@github-actions
github-actions Bot merged commit 52623ea into develop Nov 24, 2026
21 of 23 checks 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