Skip to content

test: retry flaky webhook E2E test on platform-side timeouts#937

Open
vdusek wants to merge 3 commits into
masterfrom
test/flaky-webhook-e2e
Open

test: retry flaky webhook E2E test on platform-side timeouts#937
vdusek wants to merge 3 commits into
masterfrom
test/flaky-webhook-e2e

Conversation

@vdusek
Copy link
Copy Markdown
Contributor

@vdusek vdusek commented Jun 5, 2026

The E2E test test_actor_adds_webhook_and_receives_event is flaky. The server Actor blocks until the Apify platform delivers the webhook fired by the client Actor's ACTOR_RUN_SUCCEEDED event; when platform-side delivery is delayed past the server run's 600s timeout, the run ends as TIMED-OUT and the assertion fails. This has been observed on both master (run 26950690902) and an unrelated docs PR (run 26959362332) on the same day, each burning the full timeout with no delivery.

There is no test-logic root cause to fix — the latency is platform-side and outside the SDK's control. This adds pytest-rerunfailures and marks the test @pytest.mark.flaky(reruns=3), so a transient delivery hiccup is retried instead of failing CI. A comment on the test documents the failure mode.

The server Actor blocks until the platform delivers the webhook fired by the client's ACTOR_RUN_SUCCEEDED event, so when delivery is delayed past the run timeout the run ends as TIMED-OUT. Add pytest-rerunfailures and mark test_actor_adds_webhook_and_receives_event with @pytest.mark.flaky(reruns=2) so this platform-side flake is retried rather than failing CI.
@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Jun 5, 2026
@vdusek vdusek self-assigned this Jun 5, 2026
@github-actions github-actions Bot added this to the 142nd sprint - Tooling team milestone Jun 5, 2026
@github-actions github-actions Bot added the tested Temporary label used only programatically for some analytics. label Jun 5, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.94%. Comparing base (0f4dd21) to head (7a41aed).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #937   +/-   ##
=======================================
  Coverage   86.94%   86.94%           
=======================================
  Files          48       48           
  Lines        2942     2942           
=======================================
  Hits         2558     2558           
  Misses        384      384           
Flag Coverage Δ
e2e 37.55% <ø> (?)
integration 58.90% <ø> (ø)
unit 75.69% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vdusek vdusek requested a review from janbuchar June 5, 2026 07:34
@vdusek vdusek marked this pull request as ready for review June 5, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants