Skip to content

Flake batch 29: rebind diagnostics test retries the non-blocking job snapshot - #1220

Merged
ualtinok merged 3 commits into
mainfrom
land/flake-batch-29
Oct 30, 2026
Merged

ualtinok merged 3 commits into
mainfrom
land/flake-batch-29

Conversation

@aft-alfonso

@aft-alfonso aft-alfonso Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Main's run 41117835406 (commit d3b75e8) failed subc::tests::rebind_wait_diagnostics_name_active_job_without_waiting_on_database_slot. The diagnostic printed root jobs (None means scheduler locked): None: the executor's root-job snapshot is a non-blocking read and reports None while the scheduler holds its lock, by design, so a single read can miss the held writer.

The test now retries the diagnostic for up to 10 s while it still holds the database slot, until the snapshot gets through. Every assertion is unchanged. It's the same class as the startup-deadline test fixed in #1212.

Test-only. Checked on the build server: the test passed 3 times, formatting and the Windows check passed.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Fixes the flaky rebind_wait_diagnostics_name_active_job_without_waiting_on_database_slot test.

The diagnostic read the executor's root-job snapshot once, and that snapshot reports None while the scheduler holds its lock. The test now retries the diagnostic for up to 10 s while the database slot is held, so the assertions check snapshot contents rather than lock timing. All assertions are unchanged; the change is test-only, with a slice descriptor for the flake batch.

Written for commit 13ea09e. Summary will update on new commits.

View guided diff Turn on auto-fix

ualtinok and others added 3 commits October 30, 2026 21:05
rebind_wait_diagnostics_name_active_job_without_waiting_on_database_slot read
the executor's root-job snapshot once. That snapshot is a non-blocking read
and reports None while the scheduler holds its lock, so on main (run
41117835406) the diagnostic printed 'root jobs ... None' and missed the held
writer. Retry while the database slot stays held, up to 10 s; every
assertion is unchanged.

Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
Co-authored-by: alfonso-aft <289616620+alfonso-aft@users.noreply.github.com>
@ualtinok
ualtinok added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 0c58965 Oct 30, 2026
87 of 90 checks passed
@ualtinok
ualtinok deleted the land/flake-batch-29 branch October 30, 2026 22:08
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