Repository navigation
test: de-flake drain_recordings joins-before-propagate - #24567
Merged
Merged
Conversation
CI: run 41638508738, attempts 3 and 4, Backend Unit shard 4/6 (PR #24504). Local: reported failures 2-5/5; current guarded baseline 0/5 failures. Validation: 10/10 focused runs (both orders), full file 89 passed; early-propagation mutation rejected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
De-flakes the main-side flake
backend/tests/unit/test_batch_pipeline_live.py::test_drain_joins_workers_before_propagating_store_failure(Backend Unit shard 4/6). Evidence: attempts 3/4 of run 41638508738 (config-only PR #24504, zero file overlap) failed withAttributeError: 'NoneType' object has no attribute 'get'~line 91; attempt 6 (job 126347126042) hung past the 25m job cap instead. #24503 (merged as 81a8677) already guards the void-deferral None.get mode on main; the remaining race is that observing the slow worker start did not establish the store failure had occurred before releasing the worker.Test-only change to
backend/tests/unit/test_batch_pipeline_live.py(+16/-2): fake DB calls resolve inline, failure observation is explicit before worker release, assertions verify worker completion and deferral, and a bounded wait keeps the test from hanging. Both param orders still assert the joins-before-propagate guarantee and reject an early-propagation mutation. Production code is untouched.Validation: 10/10 focused runs (both param values, 20/20 outcomes) and full file 89 passed on the lane venv; independently reproduced by the zcode glm-5.3 review (exec-genre-siege-beach-moon-category-trade, VERDICT: APPROVE), which also confirmed mutation sensitivity (early-propagation mutation of the drain gather fails at the target assertion; reverted clean).
Product invariants affected
Failure-Class: none
Verification
utils/batch_pipeline/live.pydrain gather fails at the target assertion (review-verified, worktree left clean).