Skip to content

test(runtime): wait for delivered background completion inputs - #71

Merged
MMinasyan merged 1 commit into
mainfrom
fix/composed-background-completion-wait
Oct 22, 2026
Merged

MMinasyan merged 1 commit into
mainfrom
fix/composed-background-completion-wait

Conversation

@MMinasyan

Copy link
Copy Markdown
Owner

Changes

  • Close the publish-delivery window in the composed background-completion rows. The rows waited for a quiet session and then took one snapshot, but a background completion's successor input is delivered by the retiring run's drain only after the terminal settlement publishes, so under full-suite race load the snapshot could land inside that window and miss the input.
  • The new composedAwaitCompletionInput helper waits until the session is quiet and the runtime-origin completion input is present in the same snapshot, then returns its text. Both affected rows use it and keep their exact-text and presence-flag assertions.
  • Test-only. No production change.

Tests

Full Go suite passed and the wails build with the webkit2_41 tag passed. The two affected tests also pass targeted. The flake itself is load-gated, so no deterministic failing-before run exists for it.

The background-completion rows' quiet-only wait can snapshot inside the publish-delivery window and miss the successor input; the wait now includes the awaited condition itself.
@MMinasyan
MMinasyan merged commit 2613716 into main Oct 22, 2026
2 checks passed
@MMinasyan
MMinasyan deleted the fix/composed-background-completion-wait branch October 22, 2026 20:26
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