Repository navigation
fix(qa): reset Matrix streaming state between scenarios - #116454
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 12:04 PM ET / 16:04 UTC. ClawSweeper reviewWhat this changesThe PR writes a complete Matrix streaming configuration at each shared QA-scenario boundary and uses a separate 60-second timeout for one live Matrix canary preparation. Merge readinessKeep this PR open for normal maintainer review. It is a focused QA reliability repair, the author is a repository member, and the Priority: P2 Review scores
Verification
How this fits togetherMatrix QA scenarios reuse a worker and apply account configuration through recursive patches. Scenario overrides feed the Matrix account config and canary setup, which then drive the live transport verifier and its expected reply events. flowchart LR
A[Matrix scenario catalog] --> B[Scenario environment]
B --> C[Streaming settings snapshot]
C --> D[Recursive account config patch]
B --> E[Live canary preparation]
D --> F[Shared Matrix QA worker]
E --> F
F --> G[Scenario reply verifier]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +3, Tests +24. Total +27 across 4 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the bounded reset after the remaining CI checks confirm the focused QA path, preserving complete canonical streaming writes rather than reintroducing conditional partial patches. Do we have a high-confidence way to reproduce the issue? Yes in source, with medium confidence: a recursive account-config patch can preserve fields omitted by a later scenario, and the changed builder now writes all streaming slots. I did not execute the live Matrix suite in this read-only review. Is this the best way to solve the issue? Yes: writing the canonical nested streaming shape at the owner boundary directly prevents stale recursive-merge state, while the separate bounded canary budget avoids coupling live setup to deliberately short scenario windows. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9e8cc6fe8a6f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
What Problem This Solves
Resolves a problem where a Matrix streaming scenario could leave preview and block-streaming settings active for later shared-suite scenarios. Those later scenarios delivered the expected reply but the verifier waited for a non-streaming event until timeout. It also prevents an intentionally short scenario timeout from prematurely failing the live Matrix canary.
Why This Change Was Made
The Matrix QA config builder now writes every canonical streaming slot on every scenario boundary, including explicit off/default values, so recursive config patches cannot retain prior state. Canary preparation uses a separate bounded 60-second live-round-trip budget while the scenario keeps its own timeout.
User Impact
No product behavior changes. Full QA release profiles can run Matrix streaming and ordinary Matrix scenarios in the same shared worker without false timeouts.
Evidence