Skip to content

fix(ci): pin patched expo-network and @expo/fingerprint - #205

Merged
NoahHendrickson merged 1 commit into
customfrom
t3/pin-patched-expo-deps
Oct 22, 2026
Merged

NoahHendrickson merged 1 commit into
customfrom
t3/pin-patched-expo-deps

Conversation

@NoahHendrickson

Copy link
Copy Markdown
Owner

Release Smoke re-resolves the lockfile from the registry. Since expo-network 58.0.4 and @expo/fingerprint 0.21.6 were published, it no longer applies our patches to them (ERR_PNPM_UNUSED_PATCH), and every open PR fails the required check.

Both are pinned to their patched versions in the fenced ci-runners overrides, next to the existing expo-modules-core pin. Upstream fixes this in pingdotgg#23798, which pins every patched package; it doesn't cherry-pick cleanly, and the next upstream sync can take it whole. node scripts/release-smoke.ts passes locally.

Opus 5.5 via Claude Code in T3 Code.

🤖 Generated with Claude Code

Release Smoke re-resolves from the registry, so expo-network 58.0.4 and
@expo/fingerprint 0.21.6 left their patches unused (ERR_PNPM_UNUSED_PATCH)
and every open PR went red. Pin both in the ci-runners overrides, as
upstream does in pingdotgg#23798.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS labels Oct 22, 2026

@NoahHendrickson NoahHendrickson left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Code review — reviewed commit d6f59ffcc85817c42ca62de7d8de81423647a765

No correctness issues found.

What I checked:

  • The pins match the patches. expo-network: 58.0.3 and @expo/fingerprint: 0.21.5 line up with the patchedDependencies keys (expo-network@58.0.3, @expo/fingerprint@0.21.5). The lockfile still resolves both to the same patch hashes, so nothing changes at install time and the native fingerprint stays the same.
  • The overrides satisfy their consumers. expo@58.0.14 declares @expo/fingerprint: ^0.21.5, and apps/mobile asks for expo-network: ~58.0.3. Both pins are inside those ranges. The importer specifier changing from ~58.0.3 to 58.0.3 in the lockfile is how pnpm records an override, not a drift.
  • The fix covers every patched package. I went through each patchedDependencies entry. All the others are either pinned exactly (in a direct specifier, the catalog, or an override) or have no newer release inside their range (react-native-image-viewing ^0.2.2, mdast-util-math). These two were the only ones still open to ERR_PNPM_UNUSED_PATCH.
  • The change stays inside the fork fence. Putting it in the fenced ci-runners override block, rather than editing apps/mobile/package.json, keeps it in one fenced place that the upstream sync can drop once pingdotgg#23798 lands.

Nit, not blocking: the ci-runners watch comment in .fork/customizations.yaml still says "Fenced override pinning a pnpm-patched transitive dep". The fence now covers three packages, and expo-network is a direct dependency of mobile. It could say "pinning pnpm-patched deps".

CI was still pending when I reviewed this.

Reviewed by Opus 5.5 via Claude Code in T3 Code.

@NoahHendrickson NoahHendrickson left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Reviewed at d6f59ffcc85817c42ca62de7d8de81423647a765.

The pins are correct for the two packages that broke today, and the lockfile only changes as expected (the overrides entries, plus the expo-network importer specifier changing from ~58.0.3 to 58.0.3). The structure isn't right yet, so I'm not approving.

1. This adds fork delta for a fix upstream already shipped. Take upstream's block and delete the fence.

Upstream pingdotgg#23798 is already on upstream/main (22840ab943, merged 19:46Z, about 40 minutes before this PR opened). It pins every patched package, including expo-network: 58.0.3, "@expo/fingerprint": 0.21.5, and its own unfenced expo-modules-core: 58.0.22. After this PR, the ci-runners fence holds three keys that upstream now also defines a few lines away, in the same overrides block.

This guarantees a conflict in exactly this hunk at the next sync. If whoever resolves it keeps both sides, the result has duplicate mapping keys. The fence's own comment says Drop this once upstream pins it, and that is now true for all three entries.

The PR body says pingdotgg#23798 "doesn't cherry-pick cleanly". The only conflict is this fence. Resolve it once now:

  • Put upstream's override block in verbatim, unfenced.
  • Delete # fork:begin ci-runners through # fork:end ci-runners in pnpm-workspace.yaml.
  • Remove the pnpm-workspace.yaml watch entry and its comment from ci-runners in .fork/customizations.yaml.
  • Regenerate the lockfile.

The fork then carries zero delta in this file, and the next sync has nothing to do here. That is deleting fork delta instead of adding to it.

2. Pinning only what broke today leaves the next failure in place.

Upstream framed the invariant as "every patched package is pinned". This PR pins only the two that failed. These patched packages can still float in Release Smoke's lockfile-free resolution:

  • react-native-image-viewing, declared as ^0.2.2 in apps/mobile/package.json:130
  • mdast-util-math, micromark-extension-llm-math, micromark-extension-gfm-table, and alchemy, which are reached transitively

Once a new release of any of them clears the release-age window, every open PR fails the required check again with the same ERR_PNPM_UNUSED_PATCH. Taking upstream's block (finding 1) fixes this too. Otherwise, the rule should be "every patchedDependencies entry has an exact pin", not "pin what broke".

3. These pins are filed under a customization they don't belong to.

ci-runners exists because of GitHub-hosted runners versus Blacksmith labels. Its manifest says it "can be retired wholesale" if Blacksmith is ever installed. Dependency pins have nothing to do with runner labels. If someone follows that instruction, they delete the pins and Release Smoke breaks again.

The manifest's watch comment also says the fence pins "a pnpm-patched transitive dep", but expo-network is a direct dependency of apps/mobile. This was already a problem with the expo-modules-core pin; this PR adds to it. Finding 1 removes it.


If aligning with upstream now isn't possible, at minimum: move the pins out of ci-runners into their own customization, and pin every patched package, not just these two.

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 20.9 KiB 20.9 KiB 0 B (0.0%) 29.3 KiB ✅
Codex Live turn messages 2 2 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.2 KiB 21.2 KiB 0 B (0.0%) 29.3 KiB ✅
Claude Live turn messages 2 2 0 (0.0%) 8 ✅

Baseline: f6eb64c · PR result: d6f59ff · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@NoahHendrickson
NoahHendrickson merged commit 78fcb82 into custom Oct 22, 2026
40 of 42 checks passed
@NoahHendrickson
NoahHendrickson deleted the t3/pin-patched-expo-deps branch October 22, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants