Skip to content

ci: give the UiAutomator2 server 2 minutes to start on the Android emulator job - #1340

Merged
plum117 merged 1 commit into
webdriverio:mainfrom
plum117:ci/android-uiautomator2-timeout
Oct 10, 2026
Merged

plum117 merged 1 commit into
webdriverio:mainfrom
plum117:ci/android-uiautomator2-timeout

Conversation

@plum117

@plum117 plum117 commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Why

2 runs of the Android emulator job failed at the session start, before any test:

WebDriverError: The instrumentation process cannot be initialized within 30000ms timeout.

(runs 38064244310 and 38064214986). The UiAutomator2 driver waits uiautomator2ServerLaunchTimeout (default 30 s) for its server, and on the busy CI runner the server sometimes needs more time. The driver message itself advises to increase this capability.

What

tests/configs/wdio.local.android.emus.web.conf.ts: 'appium:uiautomator2ServerLaunchTimeout': 120000 in CI only (process.env.CI). A normal start is not slower; only a slow start gets more time. A change to the test config only, so there is no changeset.

Test

Types and lint. The Android emulator job of this PR runs with the new capability (its path filter includes this config).

🤖 Generated with Claude Code

…ulator job

2 Android emulator runs failed at the session start with "The
instrumentation process cannot be initialized within 30000ms timeout"
(38064244310, 38064214986): the busy CI runner needed more than the
default 30 s of `uiautomator2ServerLaunchTimeout`. Use 120 s in CI only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Oct 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5733a9c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@plum117
plum117 marked this pull request as ready for review October 10, 2026 18:38
@greptile-apps

greptile-apps Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Gives the Android emulator’s UiAutomator2 server up to two minutes to start in CI.

  • Android web sessions wait longer for UiAutomator2 on CI.

Reviews (1) · Last reviewed commit: "ci: give the UiAutomator2 server 2 minut..." · Reviewed by Greptile

@plum117
plum117 merged commit 39d3946 into webdriverio:main Oct 10, 2026
11 checks passed
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