fix: increase MPLatch timeout from 5s to 30s#695
Conversation
The 5-second timeout is too short for WebView JS bridge tests running on newer GitHub Actions runner images (ubuntu24/20260309.50+). The MParticleJSInterfaceITest tests consistently fail because JS execution in the emulator WebView doesn't complete within 5 seconds on these environments. Increasing to 30 seconds provides sufficient margin while still catching genuine hangs via the workflow-level timeout-minutes: 15. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PR SummaryLow Risk Overview This standardizes timeouts across multiple JS-bridge tests and should reduce CI flakiness on slower environments while keeping the suite bounded by an explicit upper limit. Reviewed by Cursor Bugbot for commit 48f497f. Bugbot is set up for automated code reviews on this repo. Configure here. |
The Android bridge tests have been failing since March 12, 2026 due to a GitHub Actions runner image update (ubuntu24/20260309.50) that slowed WebView/JS initialization beyond the 5-second MPLatch timeout. Points the android-sdk ref at fix/increase-mplatch-timeout which increases the timeout from 5s to 30s. Should be switched back to main once mParticle/mparticle-android-sdk#695 is merged. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Instead of increasing the global MPLatch timeout (used by 20+ test files), use an explicit 30-second await in MParticleJSInterfaceITest only. WebView JS execution needs more time on newer CI runner images, but other tests don't need the longer timeout. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|



Summary
MPLatchawait timeout from 5 seconds to 30 secondsMParticleJSInterfaceITestWebView JS bridge tests running on newer GitHub Actions runner images (ubuntu24/20260309.50+)timeout-minutes: 15still guards against genuine hangsContext
The
MParticleJSInterfaceITesttests inmparticle-web-sdk's Android Bridge Tests workflow have been failing since the GitHub Actions runner image updated fromubuntu24/20260302.42toubuntu24/20260309.50. We verified:mparticle.js) passes on old runner, fails on new892a7783) in both passing and failing runsTest plan
MParticleJSInterfaceITestpasses in Android SDK CImparticle-web-sdkpass consistently🤖 Generated with Claude Code