Skip to content

test: wait for the whole sequential save in ImageGenTab tests (#16035) - #16041

Merged
atomantic merged 1 commit into
mainfrom
claim/issue-16035
Nov 14, 2026
Merged

atomantic merged 1 commit into
mainfrom
claim/issue-16035

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

ImageGenTab saves PATCH one settings slice at a time, then toast the outcome. The test helper awaitSave resolved on the first PATCH, so tests reading a later slice (e.g. videoGen.grok in "loads and saves grok image and video parallel limits") could read undefined under CI load — the reported Cannot read properties of undefined (reading 'parallelLimit').

awaitSave now waits for the save's outcome toast; the one test that deliberately holds a PATCH pending uses a new awaitPatchStarted. Component unchanged; no assertion weakened.

Reproduction: root cause identified by reading the sequential save loop (handleSave) against the helper; not reproducible locally at will (file passed repeatedly). The race window is deterministic in logic: any scheduling delay between the first and second PATCH exposes it. File passes 3 consecutive local runs plus pregate.

Local review

codex (gpt-6.1-terra): 1 of 2 rounds, clean, reviewed head 148cd3a.

Closes #16035

A save PATCHes one slice at a time; awaitSave resolved on the first PATCH, so tests reading a later slice (videoGen.grok) could see it undefined under load.
@atomantic atomantic added implementer:sonnet-5-5 reviewer:gpt-6-1-terra Locally reviewed by the gpt-6-1-terra model labels Nov 14, 2026
@atomantic
atomantic merged commit 594956e into main Nov 14, 2026
15 checks passed
@atomantic
atomantic deleted the claim/issue-16035 branch November 14, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

implementer:sonnet-5-5 reviewer:gpt-6-1-terra Locally reviewed by the gpt-6-1-terra model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImageGenTab Grok parallel-limit test failed once in CI: reads parallelLimit of undefined

2 participants