Flaky E2E tests fixed with better isolation
Two unreliable end-to-end tests have been hardened—one webhook test was isolated from external dependencies, while an execution test switched to correct polling behavior. Shards were also rebalanced to distribute test load more evenly.
E2E tests that intermittently fail for unrelated reasons—known as flaky tests—are being fixed. A webhook test that previously shared state with other tests has been isolated so it runs independently. An execution test that was using incorrect polling logic has been updated to check for completion the right way. Test execution shards were also rebalanced across the CI pipeline.
For development teams, this means fewer surprise failures in CI, less time diagnosing why a test passed locally but failed in CI, and more confidence that test results reflect actual problems rather than timing issues.
View Original GitHub Description
Summary
Updates 2 tests to fix flakiness:
- Webhook test is now isolated
- Execution test uses correct polling
Also rebalanced shards
Related Linear tickets, Github issues, and Community forum posts
<!-- Include links to **Linear ticket** or Github issue or Community forum post. Important in order to close *automatically* and provide context to reviewers. https://linear.app/n8n/issue/ --> <!-- Use "closes #<issue-number>", "fixes #<issue-number>", or "resolves #<issue-number>" to automatically close issues when the PR is merged. -->Review / Merge checklist
- I have seen this code, I have run this code, and I take responsibility for this code.
- PR title and summary are descriptive. (conventions) <!-- **Remember, the title automatically goes into the changelog. Use `(no-changelog)` otherwise.** -->
- Docs updated or follow-up ticket created.
- Tests included. <!-- A bug is not considered fixed, unless a test is added to prevent it from happening again. A feature is not complete without tests. -->
- PR Labeled with
Backport to Beta,Backport to Stable, orBackport to v1(if the PR is an urgent fix that needs to be backported)