You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Data integrity: score or leaderboard write fails after Finished status #2423
The compute worker sets submission status to FINISHEDbefore uploading scores and outputs. If push_scores() or push_output() fails (network error, timeout, API failure), the submission is marked Finished but has no scores or outputs.
Root Cause
In compute_worker.py, the flow was:
run.start() # Sets status to FINISHED at line 1448ifrun.is_scoring:
run.push_scores() # Upload scores AFTER status updaterun.push_output() # Upload outputs AFTER status update
If push_scores() fails, the submission stays Finished with no scores → data integrity violation.
Impact
Users see Finished submissions with no results
Leaderboard is incomplete
No retry mechanism exists to recover
This bug was discovered during the EEG Foundation Challenge incident analysis.
Solution
Reorder operations: upload scores/outputs before setting status to FINISHED
Add retry logic to push_scores() with exponential backoff
Validate HTTP responses and raise errors on 4xx/5xx
New Flow
run.start() # Completes scoring but doesn't set FINISHEDifrun.is_scoring:
run.push_scores() # Upload scores first (with retries)run.push_output() # Then upload outputsifrun.is_scoring:
run._update_status(SubmissionStatus.FINISHED) # Only now mark as FINISHED
Testing
Added comprehensive K6 integration test:
tests/k6/test_m8_finished_has_scores.js — verifies invariant: Finished ⟹ has scores
changed the title [-]Score or leaderboard write fails after Finished (M8)[/-][+]Data integrity: score or leaderboard write fails after Finished status[/+]on Jun 19, 2026
Activity
Fix data integrity: ensure FINISHED status only after successful scor…
[-]Score or leaderboard write fails after Finished (M8)[/-][+]Data integrity: score or leaderboard write fails after Finished status[/+]