Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Flaky Android Expo Detox E2E: native greeting never shows up / app drops Detox connection

未关闭
#499 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

@KisaneNeko 已经在做这个了。

开始于 2026年10月16日。

  • #501 来自 @KisaneNeko —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
android, github-actions, react-native, typescript

调研方向

Start by downloading the Detox Android artifacts from the linked failed CI runs and inspect logcat-full.txt for a crash or ANR around the reported failures. Compare logs from both failure modes and the Vanilla job to see whether they share a cause. Done means identifying and reproducing the root cause on the matching CI emulator; collecting tombstones is suggested as an additional diagnostic.

由索引模型根据 Issue 内容生成。

描述

The Detox E2E (AndroidApp - Expo XX) jobs keep failing on both Expo 57 and 58, on main and on PRs. Both tests in the suite fail together, so the job goes red each time it happens.

There are two ways it fails:

  1. The native greeting never shows up. In beforeAll, the app process starts (Android app process is up), but Hello native Android (Expo XX) never appears in UIAutomator. After ~90s it fails with Timed out waiting for UIAutomator to contain any of: Hello native Android (Expo 58), ....
  2. The app drops the Detox connection after opening the Expo RN screen. The greeting is fine, then Opening the Expo RN screen... → Detox can't seem to connect to the test app(s)!, which looks like the app crashed.

Also this one, where it lost the connection right after the process came up, before the greeting check finished: #487 e0f5940, Expo 57: https://github.com/callstack/react-native-brownfield/actions/runs/38458013604/job/115565183435

So my guess is the app is crashing in all of them, just at different moments. The failed jobs already upload the full host-side logcat (logcat-full.txt, added in #473) together with the other Detox artifacts (#466), in the detox-androidapp-<flavor>-<flavor>-android artifact. I haven't gone through those logs yet to confirm a crash.

The Android road test & E2E (AndroidApp - Vanilla) job fails the same way as (1): it waits for Hello native Android and all 4 tests time out. That one has failed on main d28810c, #494 and #487, so it might be the same root cause:
https://github.com/callstack/react-native-brownfield/actions/runs/38857242075/job/116831993012

To do:

  • go through logcat-full.txt from the failed runs' artifacts and look for a crash / ANR
  • consider also pulling tombstones (/data/tombstones) on failure (not collected yet)
  • try to repro locally on the same emulator image (API level / ABI as CI)
主要语言
TypeScript
星标
552
派生
53
平均合并
3 天 13 小时
30 天内合并 PR
16

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

callstack/react-native-brownfield 的其他 Issue

查看 callstack/react-native-brownfield 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。