Repository navigation
v0 [3/7]: JS scenarios, hand-off fixtures and JS goldens - #27
Merged
Merged
Conversation
This was referenced Nov 25, 2026
adhorodyski
force-pushed
the
stack/1c-scenarios
branch
2 times, most recently
from
November 25, 2026 18:38
02605a0 to
511e340
Compare
adhorodyski
force-pushed
the
stack/1c-scenarios
branch
2 times, most recently
from
November 25, 2026 18:56
6a28d4b to
06a09f6
Compare
Un-pends the JS scenarios and records, per Jest scenario, the seam payload (`verify/fixtures/*.handoff.json`, replayed by the native cores in the next layers) and the exact OTLP output of the JS path (`verify/expected/*.js.otlp.json`). The degraded Jest project keeps native async and proves the probe fails. Harness: the collector gunzips, compare gains draft mode (VERIFY_E2E_DRAFT), scenarios get the TestNative type and per-app targets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
handoff-basic, odd-attributes and export-headers built a span with a harness TracerProvider and the upstream OTLP exporter, so their `.js.otlp.json` goldens pinned upstream's encoding, not our code. They become `seam` scenarios: Jest still records their hand-off fixtures (the native contract), without a JS golden. smoke-js only repeated handoff-basic and is removed with its fixture and goldens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It repeated what other tests already pin: probe.test.ts builds a native-async step with `new Function` and checks the probe fails, logs once and sets the degraded scope attribute; start.test.ts checks the flag reaches the SDK's tracers; rich-span's JS run checks stamped scope attributes reach OTLP. Removes the project config, its test, the `degraded-probe` scenario and goldens, and the `jest-degraded` runner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
adhorodyski
force-pushed
the
stack/1c-scenarios
branch
from
November 25, 2026 19:04
a2f12fc to
813f8bd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
verify/scenarios/): the JS scenarios are no longer pending. Most edits are one line;perf-budgetand thecross-*scenarios get real bodies, which run on devices in v0 [6/7]: example apps (bare, Expo) and device and web e2e #24.verify/fixtures/*.handoff.json, generated): one per Jest scenario (R6), holding the seam payload JS hands to native. The Android and iOS layers replay them through the native cores.verify/expected/*.js.otlp.json, generated): the exact OTLP output of the JS path, with sequential test IDs.handoff-basic,odd-attributesandexport-headersareseamscenarios. Jest records their hand-off fixtures but no.jsgolden, because that output would be upstream's encoding alone.smoke-jsis removed, and so is the degraded Jest project:probe.test.ts(v0 [1/7]: context propagation — runtime patch, startup probe, Metro helper #21) already proves a nativeawaitfails the probe and sets the flag.VERIFY_E2E_DRAFT); scenarios get theTestNativetype and per-app targets.How to review
Read the harness and scenario diffs. The ~2,450 lines of fixtures and goldens are recorded output (
VERIFY_UPDATE=1); spot-check two or three pairs, for examplenest-promise-all-race(parent IDs in.js.otlp.json).Verified locally
bun verify static fast-js: 35 + 62 tests green.Decisions for you (defaults applied; override with
spec:comments).android,.iosand.webgoldens).interaction-manager: RN 0.88 removedInteractionManager, so this scenario stayspending. Either drop it, or extend the context patch to coverrequestIdleCallback.*.js.otlp.jsonand*.shape.jsonfiles inverify/expectedwere drafted from the implementation and 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 onmain, and the npm environment does not exist yet.🤖 Generated with Claude Code