Skip to content

ci(measure): the held-out fetchers resume a short transfer instead of restarting it (#1386) - #1391

Merged
DrunkOnJava merged 2 commits into
mainfrom
ci/holdout-fetch-resume
Nov 4, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
ci/holdout-fetch-resume

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Refs #1386. #1387 made tools/fetch-reference-models.sh resume a reference model the CDN returned short. The held-out fetchers (tools/ci/fetch-holdout-models.sh, tools/ci/fetch-holdout-archives.sh) still used curl --retry 3, which restarts from zero on every retry. Measure run 41917795170's held-out shard reported "held-out models NOT MEASURED: a file could not be downloaded", so #1382's holdout check measured nothing.

Both now go through tools/ci/fetch-resume.sh (fetch_resume URL OUT):

  • curl -C - resumes a partial file.
  • A server that refuses the range (curl 33 or 36) starts the file again.
  • Six attempts, with a pause of 10, 20 … 60 s.

The pin checks (sha256 and byte count, exit 1 on a mismatch, 2 when a file cannot be fetched) are unchanged.

Testing

  • Resume on the real file: fetch_resume resumed a 300,000-byte partial of Einhoven (media.githubusercontent.com) to 913,408 bytes, and the result matches its pinned sha256.
  • A missing URL: it retries, then returns non-zero.
  • Syntax and lint: bash -n and shellcheck -x are clean on all three scripts.
  • Measure: the next held-out run exercises it.

…short, through one shared helper, instead of restarting it (#1386)
@DrunkOnJava
DrunkOnJava merged commit bb68561 into main Nov 4, 2026
29 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/holdout-fetch-resume branch November 4, 2026 22:08
DrunkOnJava added a commit that referenced this pull request Nov 4, 2026
) (#1393)

## Summary

Closes #1392. A Measure run asked for the held-out check could finish
green with no held-out model measured. That happened in two ways:
- a download failure, which was only a warning (run 41917795170);
- a `models` input that excluded every held-out model (run 41919975103).

Changes:
- **Download failure:** a held-out file that still cannot be fetched
after the resumed retries of #1391 is now an error with NOT MEASURED.
- **New step, "The held-out check measured something":** it fails a
shard asked for the held-out check that produced no `holdout-*` or
`spent-*` result. The error names the cause and the `models` value to
use.

## Testing

Two dispatched runs on this branch:
- `holdout=true models=zzz-no-model` must fail at the new step.
- `holdout=true` with no `models` must stay green with the held-out
models counted.

Measured: run 41920834074 (`holdout=true models=zzz-no-model`) failed at
the new step with "held-out and spent models measured: 0" and the error
naming the models input. Run 41920848554 (`holdout=true
models="holdout-* spent-*"`) passed it with the held-out models counted.
The workflow parses, and actionlint reports nothing new.

## Related issues

#1386, #1391
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