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

E2E iOS: the camera permission test and the first userEvent.type test take up to 10 s on the macOS runner and time out at the playground's 10 s testTimeout

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
58/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
github-actions, react-native, typescript
领域
mobile, testing

调研方向

Start with apps/playground/rn-harness.config.mjs and the named tests in permissions.harness.tsx and type.harness.tsx; compare their timing diagnostics from the linked iOS workflow runs to see where the time is spent. Identify why the first camera permission and userEvent.type tests approach the 10 s timeout, then verify the E2E iOS workflow no longer fails intermittently from those timeouts.

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

描述

Describe the bug

On the E2E workflow's iOS job, two playground tests run up to the playground's 10 s testTimeout (apps/playground/rn-harness.config.mjs; the workflow sets no HARNESS_TEST_TIMEOUT) and fail now and then with Test timed out after 10000ms:

  • permissions.harness.tsx › "should allow camera permissions when requested", which itself waits up to 30 s for the permission (waitUntil(() => latestStatus === 'authorized', { timeout: 30000 }))
  • type.harness.tsx › "should type text into TextInput and trigger onChangeText", the run's first userEvent.type

Their durations, from each run's harness-diagnostics-e2e-ios artifact:

Run Head Camera permission test First userEvent.type test
40528303747 #249 4970 ms 2519 ms
40535898599 #298 6218 ms 5730 ms
40291893624 ci/host-health-telemetry 9487 ms 6016 ms
40528307146, attempt 1 #257 10099 ms, timed out 8062 ms
40528307146, attempt 2 #257 9043 ms 4813 ms
40868510310 main 26b67ea 7805 ms 6308 ms
40869641948 main 26b67ea 9946 ms 4085 ms
40869661561 main 26b67ea 5864 ms 3834 ms
40873698792 main 26b67ea 5415 ms 5749 ms
40873708733 main 26b67ea 10180 ms, timed out 4053 ms
40873717208 main 26b67ea 7753 ms 10376 ms, timed out
40873726063 main 26b67ea 10123 ms, timed out 8626 ms

The other userEvent.type tests take about a second each, so the first one pays for something the rest reuse. Four ci/host-health-telemetry runs on Oct 26 (40353077744, 40316171106, 40313220029, 40298624538) failed the camera test the same way.

System Info
GitHub Actions macos-latest: 3 cores, 7 GB, arm64, macOS 26 (osRelease 25.6.0), ImageOS macos26, ImageVersion 20261013.0424.1
Xcode 26.4.1, Node.js 24.10.0
React Native Harness Version

1.6.0 (main at 26b67ea)

Reproduction

https://github.com/YevheniiKotyrlo/react-native-harness/actions/runs/40873708733 (the E2E workflow on my fork's main, at 26b67ea)

Steps to reproduce
  1. Run the E2E workflow on main with platform: ios (I dispatched it on my fork's main, synced to 26b67ea).
  2. Three of my seven runs failed on one of the two tests with Test timed out after 10000ms, as the table shows; the rest passed with both at 3.8–9.9 s.
主要语言
TypeScript
星标
335
派生
23
平均合并
1 天 8 小时
30 天内合并 PR
54

环境准备

从这里开始

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

callstackincubator/react-native-harness 的其他 Issue

查看 callstackincubator/react-native-harness 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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