Skip to content

Fix: Executor should not send unmatched students file when Earthmover fails#63

Open
johncmerfeld wants to merge 2 commits into
developmentfrom
fix/executor-em-fail-w-unmatched
Open

Fix: Executor should not send unmatched students file when Earthmover fails#63
johncmerfeld wants to merge 2 commits into
developmentfrom
fix/executor-em-fail-w-unmatched

Conversation

@johncmerfeld
Copy link
Copy Markdown
Collaborator

Long ago a decision was made to show the user unmatched students even when Earthmover fails

image

This can happen when the file is pretty-good-but-still-wrong. We now recognize that this is buggy behavior because the file we give back to the user to fix will almost certainly fail when they re-upload it, plus we've filtered out the students that actually matched the first time but still weren't uploaded.

johncmerfeld and others added 2 commits May 14, 2026 16:25
…er run

When Earthmover crashes mid-pipeline it may still have produced match_rates.csv
and input_no_student_id_match.csv on disk. The except branch in execute() would
then upload both via upload_remaining_artifacts, surfacing partial results to
the user that don't reflect what actually happened.

The original decision (recovered from prior discussion) was that on any fatal
EM run we don't care about either file. Make the rule explicit by clearing
needs_upload on both artifacts inside _run_earthmover's finally when fatal,
before raising.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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