Skip to content

test(fruit-merge): de-flake score assertion by varying drop positions - #385

Merged
slaveofcode merged 1 commit into
developfrom
fix/fruit-merge-flaky
Sep 11, 2026
Merged

test(fruit-merge): de-flake score assertion by varying drop positions#385
slaveofcode merged 1 commit into
developfrom
fix/fruit-merge-flaky

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

The Fruit Merge happy-path E2E dropped every fruit at the exact center column — pathological (fruits stack without reliable same-tier lateral contact), so occasionally nothing merges and the score stays 0. This caused intermittent Playwright · Ask Agent failures that blocked several unrelated PRs this session (3 spurious reds).

Fix: spread the drops across x positions (like the restart test already does), stop early on board-full, and give a post-drop merge a bit longer to resolve. Verified locally with --repeat-each 3 (3/3 pass, and faster — merges land early).

The happy-path test dropped every fruit at the exact center column, which
is pathological — fruits stack without reliable same-tier lateral contact,
so occasionally nothing merges and the score stays 0 (intermittent CI
failures). Spread the drops across x positions (as the restart test already
does) so a same-tier contact is near certain, stop early on board-full, and
give the post-drop merge a little longer to resolve.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
🔵 In progress
View logs
goodwebtools 8dac97b Sep 11 2026, 10:42 AM

@slaveofcode
slaveofcode merged commit 6cbfddd into develop Sep 11, 2026
2 of 3 checks passed
@slaveofcode
slaveofcode deleted the fix/fruit-merge-flaky branch September 11, 2026 12:15
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