Skip to content

test: de-flake drain_recordings joins-before-propagate - #24567

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/fsr-deflake-1104
Nov 4, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/fsr-deflake-1104

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

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 with AttributeError: '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

  • INV-FSR-LEVERS: not affected. Test-only change; no deploy manifest, runtime_env, or FIRESTORE_READ_LEVERS site touched.
  • INV-MEM-4: not affected. Memory intake and promotion routes untouched.

Failure-Class: none

Verification

  • 10x single-test (both param values) + full file 89 passed on the worktree backend/.venv (loop run; re-verified 5/5 by the driving loop).
  • Mutation check: early-propagation mutation of utils/batch_pipeline/live.py drain gather fails at the target assertion (review-verified, worktree left clean).
  • CI on this PR is expected green on shard 4/6 with the deterministic ordering + bounded wait.

View guided diff Turn on auto-fix

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.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

View guided diff | Turn on auto-fix | Re-trigger cubic

@Git-on-my-level
Git-on-my-level merged commit 5a12c8c into main Nov 4, 2026
65 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/fsr-deflake-1104 branch November 4, 2026 03:40
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