Skip to content

test(mobile): repin the recording baseline to main after #20950 - #21065

Merged
Jinwoo-H merged 1 commit into
mainfrom
golden-repin-after-20950
Sep 16, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
golden-repin-after-20950

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 706 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​706 $\color{#cf222e}{\Huge{\mathbf{−}}}$​706 0

What this is

A baseline repin of mobile's RPC recording corpus, the follow-up half of the two-step #20563 → #20895 used.

Every golden under mobile/rpc-foundation/goldens/ carries a baseline header naming the commit its recording was made against, and --record refuses to run unless the working product tree equals that commit. #20950 recorded at its branch commit 9e01c50e6dc919de3c0129e755f1ea9ec335dc59. The squash-merge rewrote that work as a28085adbfb65d3f27393cc7a0d78cfa2b4ff07e, so the pinned sha is no longer reachable from main:

$ git merge-base --is-ancestor 9e01c50e6dc919de3c0129e755f1ea9ec335dc59 origin/main
$ echo $?
1

With the pin unreachable and main advanced past the branch point, recording on main refuses:

Error: Product sources or lockfile differ from the pinned main baseline
    at <anonymous> (mobile/scripts/rpc-recording.mts:28:9)

This PR sets baseline in mobile/rpc-foundation/pilot-scenarios.json to a28085adbfb65d3f27393cc7a0d78cfa2b4ff07e, main's tip, and re-records the whole corpus so the header the goldens carry is the tree they were produced from.

No behaviour moved

The repin rewrites the baseline header on all 705 goldens, so every file moves. Nothing else does. Each golden was decoded through its own values pool against the origin/main copy, stripping the header keys baseline, lockfileSha256, recorderSha256, adapterSha256, scenarioSha256 and runnerVersion, and recursively substituting 12-hex value references before the comparison.

class count
header-only 705
body moved 0
added 0
deleted 0

The only header key that differs on any golden is baseline, on all 705. lockfileSha256, recorderSha256, adapterSha256 and scenarioSha256 are unchanged everywhere, which is what a pure repin looks like: no product source, no recorder, no adapter and no scenario input moved. The diff is 706 files, one line inserted and one deleted each.

Gates

Run from mobile/, all green.

gate result
tsc --noEmit clean
vitest run src/test-support/rpc-recording 17 files, 821 passed, 3 skipped
oxfmt --check . 2590 files correct

The full re-record itself passed 707 tests in 88s.

One note for anyone reproducing the typecheck in a fresh worktree. mobile/src/terminal/terminal-webview-engine.generated.ts and mobile/src/components/pr-sidebar/mermaid-webview-engine.generated.ts are gitignored build artifacts produced by mobile's postinstall. Without them tsc reports two TS2307 module-not-found errors that have nothing to do with this change. Running node scripts/build-terminal-webview-engine.mjs and node scripts/build-mermaid-webview-engine.mjs first clears both.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes — a mechanical baseline repin of mobile's RPC recording corpus, the documented follow-up half of the two-step re-record flow.

  • Manifest pin moved — mobile/rpc-foundation/pilot-scenarios.json baseline goes from 9e01c50e… (the squashed-away #20950 branch commit) to a28085adbf… (main's tip, the #20950 squash commit).
  • All 705 goldens re-headered — each mobile/rpc-foundation/goldens/*.json changes only its baseline header line; no other header key moves, so golden bodies are byte-identical.

I verified the diff mechanically rather than trusting the table: it contains exactly 706 removed and 706 added lines, every one of them a baseline line, so no golden body moved. origin/main is a28085adbf… and is the parent of the PR head, so the new pin is reachable; because this PR touches no fenced path (mobile/src, src/shared, mobile/pnpm-lock.yaml), the fence at mobile/scripts/rpc-recording.mts:28 will still match on main after merge. The old sha appears nowhere in the tree, and nothing in .github or the docs hardcodes it. This is generated-artifact regeneration with no behavioral surface.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

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