Skip to content

ci(detox): directUseCase launch pattern across all e2e tests (drops per-test navigation)#4019

Open
natew wants to merge 3 commits into
mainfrom
v2-detox-shard-rebalance
Open

ci(detox): directUseCase launch pattern across all e2e tests (drops per-test navigation)#4019
natew wants to merge 3 commits into
mainfrom
v2-detox-shard-rebalance

Conversation

@natew

@natew natew commented May 30, 2026

Copy link
Copy Markdown
Member

What

Every kitchen-sink Detox e2e test now relaunches straight into its use case via launchArgs: { directUseCase } (new reloadUseCase helper in e2e/utils/detox.ts), instead of safeReloadApp() + navigateToTestCase() (relaunch → home → expand quick-nav grid → tap, ~60-90s/test).

The app already supported this (App.native.tsx renders the use-case component at root inside all providers); SheetKeyboardFitContent was the only file using it. This rolls it out everywhere.

Why

The 71-min run that started this was a degraded-runner cold-bundle flake, not a regression. The steady cost is the per-test home→quick-nav navigation. A first attempt to fix it by rebalancing shards was a net regression (built on noisy single-run estimates; two high-variance files spiked together). Reverted. The real lever is removing the navigation itself.

Scope

  • 23 e2e files converted (relaunch-per-test preserved → same isolation, just no navigation).
  • noRngh keeps disableGestureHandler; CompilerExtraction keeps its in-test build; check-rngh-status (home-screen test) and SheetKeyboardDrag (describe.skip) untouched.
  • Shard matrix is the prior 4-shard layout — this run measures the new per-file times; the matrix will then be tuned to ≤30 min/shard (and collapsed to 3 shards if there's headroom).

Validation

tsc -p e2e/tsconfig.json + oxfmt + oxlint + check-ios-detox-shards.mjs all green. Runtime = this Detox run.

@railway-app
railway-app Bot temporarily deployed to tamagui / tamagui-pr-4019 May 30, 2026 15:09 Destroyed
@railway-app

railway-app Bot commented May 30, 2026

Copy link
Copy Markdown

🚅 Deployed to the tamagui-pr-4019 environment in tamagui

Service Status Web Updated (UTC)
tamagui ✅ Success (View Logs) Web May 30, 2026 at 4:33 pm

…se launch (no per-test nav), revert shard rebalance
@railway-app
railway-app Bot temporarily deployed to tamagui / tamagui-pr-4019 May 30, 2026 16:07 Destroyed
@natew natew changed the title ci: rebalance iOS Detox shards (~26min each) + launch-once for Tabs/MediaQuery e2e ci(detox): directUseCase launch pattern (proof: 2 sheet drag files) + Tabs/MediaQuery launch-once May 30, 2026
…se helper) — drops per-test home→quick-nav navigation
@natew natew changed the title ci(detox): directUseCase launch pattern (proof: 2 sheet drag files) + Tabs/MediaQuery launch-once ci(detox): directUseCase launch pattern across all e2e tests (drops per-test navigation) May 30, 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.

1 participant