Skip to content

Wait for the flagging job's result in the hash set import test - #288

Merged
abrignoni merged 1 commit into
mainfrom
fix/hashset-import-test-wait
Oct 14, 2026
Merged

abrignoni merged 1 commit into
mainfrom
fix/hashset-import-test-wait

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Fixes the flaky hash set import test that failed once on windows-smoke in run 38505076312 (attempt 1).

  • The job is marked running before the import request returns, so the first poll was never the problem. The poll gave up after about 2 s and the test read the flags while the job was still writing them. That test took 5.6 s on the failed attempt and 1.2 s on the rerun.
  • Reproduced locally by delaying the flagging job 3 s: same assertion, same line.
  • The test now waits, bounded, for the job to report done with one hit. A job that errors fails there with its own message.

🤖 Generated with Claude Code

The test polled /api/job about 2 s and then read the flags whether or
not the job had finished. On a slow Windows runner the job was still
running and hashset_hit read None. Wait with a bound and assert the
job reports done with one hit, so a slow job is waited for and a failed
one fails with its own error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni
abrignoni merged commit ec390cf into main Oct 14, 2026
8 checks passed
@abrignoni
abrignoni deleted the fix/hashset-import-test-wait branch October 14, 2026 04:12
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