Skip to content

fix(core): reject a stop_check workload shorter than concurrency x waves - #3

Merged
seyfal merged 1 commit into
eagle-hq:mainfrom
kevin9327:fix-stop-check-short-data
Oct 27, 2026
Merged

seyfal merged 1 commit into
eagle-hq:mainfrom
kevin9327:fix-stop-check-short-data

Conversation

@kevin9327

Copy link
Copy Markdown
Contributor

Licensing, attribution, and third-party content

  • I have checked whether my changes contain or modify Eagle 4-licensed files,
    and have preserved required license, copyright, attribution, and NOTICE text.
  • Materially modified Eagle files are identified with the date, modifier,
    and the affected file or component (or an appropriately mapped change log).
  • Any added third-party code, data, or weights are compatible with the
    repository's licensing and contain required third-party notices.
  • If this is a public fork or derivative distribution, I have followed
    the Eagle Trademark Policy and preserved the required
    non-affiliation and distinguishable-branding disclosures.
  • I have reviewed the contribution terms (PDF)
    and any requirements stated in CONTRIBUTING.md.

Modified: 2026-10-22 by kevin9327, files: tools/stop_check.py, tests/test_stop_check.py (new). Existing copyright and SPDX headers are unchanged.

Change summary

tools/stop_check.py reads the first --concurrency * --waves conversations of --data (default 16 x 2 = 32), but never checked that the file had that many. prompts[i] then raised IndexError inside the submit loop, after earlier requests had already hit the server and without writing --out. The fix checks the count right after reading and exits with a message naming the file, the count and what is needed. Touches tools/stop_check.py and adds tests/test_stop_check.py.

Testing and impact

pytest tests/test_stop_check.py (new; stubs transformers and requests, no server or tokenizer download): fails on main with IndexError, passes with the fix. tests/test_check_headers.py passes for the new file.

Lint: ruff==0.15.1 check on the changed files passes. CPU only; no GPU, model weights or torch needed.

Third-party materials and dependencies

None

AI-assisted or generated content

Grok Bot (an AI assistant) helped find the bug by reading the code, and drafted the fix, the test and this description. I reviewed the diff and ran the new test before the fix (fails) and after (passes), plus the rest of the touched test file.

Documentation and notices

None

first_turns() returns at most the file's conversations, but main() indexed
prompts[i] for every request of every wave. With a short --data file the
tool crashed with IndexError while submitting, after earlier requests had
already been sent and with no output written. Check the count up front
and exit with a usage message.

Test: tests/test_stop_check.py fails before (IndexError), passes after.
@seyfal

seyfal commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Merged in 508f021. Thanks for the fix and the test that fails without it.

The export that publishes this repo first landed your fix without your name on it. I've fixed the export, and your original commit is now in main's history, so this PR shows as merged under your name.

@seyfal seyfal closed this Oct 26, 2026
@seyfal seyfal reopened this Oct 27, 2026
@seyfal
seyfal merged commit f1915c0 into eagle-hq:main Oct 27, 2026
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.

2 participants