Skip to content

fix(ci): Fix flaky Android e2e (adb detection + per-attempt timeout) - #7281

Draft
VarshithaPamisetty wants to merge 9 commits into
mainfrom
fix/android-emulator-adb-detection
Draft

fix(ci): Fix flaky Android e2e (adb detection + per-attempt timeout)#7281
VarshithaPamisetty wants to merge 9 commits into
mainfrom
fix/android-emulator-adb-detection

Conversation

@VarshithaPamisetty

@VarshithaPamisetty VarshithaPamisetty commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes the flaky Android e2e in two parts:

  1. adb device detection — pin the emulator console port to 5554 and restart the adb server between boot checks, so the emulator reliably registers (fixes device 'emulator-5554' not found).
  2. Per-attempt timeout — the auth suite runs ~110–125 min; the old 70-min per-attempt cap killed it mid-run. Raise to 150 min with 2 retries (job cap 315).

Tests

Ran the full Android e2e (24 and 35); the emulator registers reliably and the auth suite completes within the raised timeout.

@codecov-commenter

codecov-commenter commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 40.98%. Comparing base (877bd59) to head (bee82c2).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7281   +/-   ##
=======================================
  Coverage   40.98%   40.98%           
=======================================
  Files         121      121           
  Lines        8273     8273           
  Branches     3598     3598           
=======================================
  Hits         3391     3391           
  Misses       4882     4882           
🚀 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.

@VarshithaPamisetty VarshithaPamisetty changed the title fix(ci): Restart adb and pin emulator port to fix device detection fix(ci): Fix flaky Android e2e (adb detection + per-attempt timeout) Aug 17, 2026
VarshithaPamisetty and others added 7 commits August 17, 2026 15:32
…e test

The 'should LIST blogs with Model helper with query predicate' test created a blog then immediately listed it with a filter, but AppSync list (DynamoDB Scan) is eventually consistent, so the new item was intermittently not yet visible (Expected 1, Actual 0). Add a queryModelUntil helper that re-runs the list query until the expected result appears or a timeout elapses.
Revert the poll helper (root cause is not timing) and log filtered vs
unfiltered blog list to determine why the filtered query returns empty.
@VarshithaPamisetty VarshithaPamisetty self-assigned this Aug 18, 2026
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.

2 participants