Skip to content

v0 [6/7]: example apps (bare, Expo) and device and web e2e - #24

Draft
adhorodyski wants to merge 3 commits into
stack/3-iosfrom
stack/4-e2e
Draft

adhorodyski wants to merge 3 commits into
stack/3-iosfrom
stack/4-e2e

Conversation

@adhorodyski

@adhorodyski adhorodyski commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • example/: native-first init (OtelInit.kt, AppDelegate), TestNative Nitro module (R25), OTEL_TEST_MODE Babel plugin
  • example-expo/: Expo SDK 58 using the shipped config plugin, JS-fallback init; also the web target (expo export -p web + expo serve; its babel.config.js lowers async on web, which babel-preset-expo keeps native)
  • verify/e2e: scenarios per target with R5 cold start, smoke, perf, failure scenarios; VERIFY_E2E_DRAFT (R1); *.web.otlp.json
  • CI: e2e-android-bare, e2e-ios-bare (each with a test-mode-off smoke), e2e-android-expo, e2e-ios-expo, e2e-web
  • Bundle baseline re-measured (example drops the JS-only exporter: 264 099 B)

Verified

Locally all non-e2e stages green. Device runs: the same files were green on #20 CI (run 45358145497); this branch gets its own CI run via workflow_dispatch.

Decisions for you (defaults applied; override with spec: comments)

  1. Test mode:
    • The native export delay is 120 s, so the background and reload tests can't pass on the timer alone.
    • Reload goes through a native reload in TestNative, because DevSettings.reload doesn't work in release builds.
    • Fast refresh is checked locally only.
  2. Smoke tests: they check span count and names only. With test mode off, they run per PR on the bare apps only; Expo smoke runs nightly.
  3. Cross-boundary scenarios: split in two, so spec §8 item 7 is covered by several traces rather than one combined trace.
  4. Perf: CI headroom is about 23% on the x86 emulator: hand-off p50 is 77 µs against a 100 µs budget.
  5. iOS background-flush (fixed in v0 [5/7]: iOS — Swift core, Nitro adapter, two pods, Expo config plugin #23): under CPU load a backgrounded app can be starved for about 15 s despite its background task, so the export stalled until the app was reopened. The flush now starts on willResignActive. Under the same load locally, about half of first attempts had failed; after the fix 12 of 12 passed first try.
  6. Expected files: the *.web.otlp.json files need your review.

Part of the v0 stack that replaces #20 for review, bottom-up: #21 context → #26 SDK → #27 JS scenarios → #22 Android → #23 iOS → #24 examples + e2e → #25 ops. Review fixes land as new commits on the layer they belong to, and the layers above are rebased. History before the split: v0-impl / #20. Nothing publishes: release runs only after CI on main, and the npm environment does not exist yet.

🤖 Generated with Claude Code

adhorodyski and others added 3 commits November 25, 2026 19:36
…R e2e jobs

Layer 4 of the v0 stack (squashed from v0-impl, PR #20):
- example: native-first init (OtelInit.kt, AppDelegate), TestNative Nitro module (R25), web app on Vite, OTEL_TEST_MODE Babel plugin
- example-expo: Expo SDK 58 app using the shipped config plugin, JS-fallback init
- verify/e2e: scenarios per target with an R5 cold start, smoke, perf, collector-down, background-flush, native-init-failure,
  flush-after-reload, fast-refresh (local only), export-headers; VERIFY_E2E_DRAFT (R1); web expected files
- ci: e2e-android-bare, e2e-ios-bare (each with a test-mode-off smoke), e2e-android-expo, e2e-ios-expo, e2e-web
- static: drift check covers the TestNative nitrogen output; bundle baseline re-measured (the example drops the JS-only exporter)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the Vite app in example/web. `expo export -p web` in test mode, served by `expo serve` on 4173; same
scenarios and goldens. babel-preset-expo keeps native async on web, so example-expo/babel.config.js lowers it for
the web platform; metro.config.js maps react-native-nitro-modules to a stub on web. event-emitter-listener now runs
on web too (Metro bundles have `require`); its web golden equals the js one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The export URL is now used as given on every platform, so the bare and Expo apps pass `…:4318/v1/traces`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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