Repository navigation
fix(ci): pin patched expo-network and @expo/fingerprint - #205
Conversation
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>
NoahHendrickson
left a comment
There was a problem hiding this comment.
Code review — reviewed commit d6f59ffcc85817c42ca62de7d8de81423647a765
No correctness issues found.
What I checked:
- The pins match the patches.
expo-network: 58.0.3and@expo/fingerprint: 0.21.5line up with thepatchedDependencieskeys (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.14declares@expo/fingerprint: ^0.21.5, andapps/mobileasks forexpo-network: ~58.0.3. Both pins are inside those ranges. The importer specifier changing from~58.0.3to58.0.3in the lockfile is how pnpm records an override, not a drift. - The fix covers every patched package. I went through each
patchedDependenciesentry. 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 toERR_PNPM_UNUSED_PATCH. - The change stays inside the fork fence. Putting it in the fenced
ci-runnersoverride block, rather than editingapps/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
left a comment
There was a problem hiding this comment.
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-runnersthrough# fork:end ci-runnersinpnpm-workspace.yaml. - Remove the
pnpm-workspace.yamlwatch entry and its comment fromci-runnersin.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.2inapps/mobile/package.json:130mdast-util-math,micromark-extension-llm-math,micromark-extension-gfm-table, andalchemy, 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.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 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.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
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-runnersoverrides, next to the existingexpo-modules-corepin. 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.tspasses locally.Opus 5.5 via Claude Code in T3 Code.
🤖 Generated with Claude Code