Skip to content

test: Reduce flakiness in tests#2068

Open
Mantisus wants to merge 1 commit into
apify:masterfrom
Mantisus:reduce-flaky-tests
Open

test: Reduce flakiness in tests#2068
Mantisus wants to merge 1 commit into
apify:masterfrom
Mantisus:reduce-flaky-tests

Conversation

@Mantisus

Copy link
Copy Markdown
Collaborator

Description

  • For Playwright tests that use Firefox, the pytest.mark.run_alone marker has been set, similar to PR test: fix flaky Windows CI failures in statistics and browser-pool tests #1947. Firefox's high resource consumption was also affecting other tests.
  • Increased the element-wait timeout in AdaptivePlaywrightCrawlingContext tests: 200 ms was too tight against the 100 ms JS-injection delay on slow CI.
  • Updated test_keep_alive to be deterministic, replacing the fixed sleep with a wait on the crawler's actual state.

Issues

@Mantisus Mantisus self-assigned this Jul 13, 2026
@Mantisus Mantisus requested review from Pijukatel and removed request for Pijukatel July 13, 2026 22:03
@Mantisus Mantisus marked this pull request as draft July 13, 2026 22:59
@Mantisus Mantisus force-pushed the reduce-flaky-tests branch 4 times, most recently from 82799d2 to 535ad46 Compare July 14, 2026 18:30
@Mantisus Mantisus force-pushed the reduce-flaky-tests branch from 535ad46 to bd10e4c Compare July 14, 2026 18:45
@Mantisus Mantisus marked this pull request as ready for review July 14, 2026 18:56
@Mantisus Mantisus requested a review from Pijukatel July 14, 2026 18:56
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.

Test test_new_page_with_each_plugin is flaky Test test_adaptive_context_query_selector_parsel is flaky Test test_keep_alive is flaky

2 participants