Repository navigation
ci(deps): make the Expo gate about skew, and stop the dedupe job forfeiting rebase - #917
Merged
Merged
Conversation
…eiting rebase (#907) Two independent things stalled the whole Dependabot queue on 2026-09-25, and neither was about any PR's contents. ## 1. The Expo gate asked the wrong question `expo install --check` resolves expected versions from Expo's LIVE REGISTRY, so it answers "are you on the newest patch set?" — currency — rather than "do your Expo packages agree with each other?" — skew. Only the second ships bugs. Because Monorepo integrity is gated on `deps == 'true'`, only dependency PRs run it. So when Expo published an SDK patch set, all five open Dependabot PRs went red at once: a PR bumping only `adm-zip` failed identically to a twelve-package group. #908 realigned the catalog by hand; nothing stopped it recurring on the next Expo patch. `scripts/check-expo-alignment.mjs` reads `bundledNativeModules.json` from INSIDE the installed expo package, which lists the versions belonging with THAT expo. Offline, version-locked, and about skew only — a registry publish cannot turn it red. Being a patch behind is no longer a build failure; being internally inconsistent still is. Verified both directions: setting expo-image to 56.0.9 — the exact #683 version — fails with `installed 56.0.9 expected ~56.0.13`, and restoring it passes. It also closes a hole. `expo install --check` only inspects the app's DIRECT dependencies, so it never looked at `expo-modules-core` — the package #683 was actually about, held by a root `pnpm.overrides` entry. The new check walks the installed tree and immediately found it 4 patches below the bundled set, a gap that predates #908. Override-pinned skew is an explicit human decision, so it is reported rather than failed on; see #916. Unpinned skew — Dependabot drifting one package — still fails hard. Currency is still worth knowing, and the catalog really was eight packages behind with nothing saying so. `expo-currency-audit.yml` asks the registry on Sundays, ahead of Dependabot's Monday wave, and keeps one reusable issue open while the lag lasts. Non-blocking, with its own signal instead of ambushing an unrelated PR. ## 2. The dedupe job made Dependabot refuse to rebase `dependabot-dedupe.yml` pushes a `chore(deps): pnpm dedupe` commit — its whole purpose (#701, #724), and Monorepo integrity fails without it. Committed as github-actions[bot], that commit made Dependabot answer every rebase with: Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry! So deduping, which a Dependabot PR requires in order to pass, permanently forfeited that PR's ability to rebase. Any PR that did not merge before main moved under it was stuck, and the only escape was `@dependabot recreate`, which discards the dedupe commit and restarts the cycle. Clearing five PRs took six recreate rounds for exactly this reason. The commit is now authored as dependabot[bot], keeping the branch Dependabot-owned. The message still names the workflow that made it, so provenance is not hidden. This one cannot be verified until a live Dependabot PR exists — the next wave is Monday — so the fallback is written into the workflow: `@dependabot recreate` still works, and the alternative is to stop pushing a commit at all and run `pnpm dedupe` inside the integrity job. Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Sep 26, 2026
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.
Closes #907.
Two independent things stalled the entire Dependabot queue on 2026-09-25, and neither was about any PR's contents.
1. The Expo gate asked the wrong question
expo install --checkresolves expected versions from Expo's live registry. That answers "are you on the newest patch set?" — currency — rather than "do your Expo packages agree with each other?" — skew. Only the second one ships bugs.Because Monorepo integrity is gated on
deps == 'true', only dependency PRs run it. So the moment Expo published an SDK patch set, all five open Dependabot PRs went red simultaneously — a PR bumping onlyadm-zipfailed identically to a twelve-package group. #908 realigned the catalog by hand, but nothing stopped it recurring on the next Expo patch.scripts/check-expo-alignment.mjsreadsbundledNativeModules.jsonfrom inside the installed expo package, which lists the versions that belong with that expo:Being a patch behind is no longer a red build. Being internally inconsistent still is.
Verified in both directions, because a gate that can't fail is worth nothing:
It also closes a hole I did not expect to find
expo install --checkonly inspects the app's direct dependencies.expo-modules-coreis not one — it is transitive, held by a rootpnpm.overridesentry. So the check that existed to prevent #683 structurally could not see the package #683 was about.The new check walks the installed tree and found it immediately:
Four patches below, and it predates #908 — expo 56.0.21 already bundled
~56.0.25. Filed as #916 with the history, because the pin traces to the custom-drawer Reanimated/Worklets matrix and is not something to change from inside a CI PR.Override-pinned skew is an explicit human decision, so the check reports it rather than failing. Unpinned skew — Dependabot drifting one package — still fails hard. Turning a pre-existing deliberate pin into a hard failure would just have replaced one spurious blocker with another, which is the thing this PR is about.
Currency still gets asked, just not as a blocker
The catalog genuinely was eight packages behind and nothing said so.
expo-currency-audit.ymlasks the registry on Sundays, ahead of Dependabot's Monday wave, and keeps one reusable issue open for as long as the lag lasts (closing it when the catalog catches up). Its body includes theERR_PNPM_UNUSED_PATCHtrap from #908, since that is the non-obvious part of applying an expo bump.2. The dedupe job made Dependabot refuse to rebase
This is the half that actually cost the time.
dependabot-dedupe.ymlpushes achore(deps): pnpm dedupecommit — that is its entire purpose (#701, #724), and Monorepo integrity fails without it. Committed asgithub-actions[bot], that commit made Dependabot answer every rebase request with:So deduping, which a Dependabot PR requires in order to pass, permanently forfeited that PR's ability to rebase. Any PR that did not merge before
mainmoved under it was stuck, and the only escape was@dependabot recreate— which discards the dedupe commit and restarts the whole cycle. Clearing five PRs took six recreate rounds for exactly this reason.The commit is now authored as
dependabot[bot], keeping the branch Dependabot-owned. The message still names the workflow that made it, so provenance isn't hidden.This is the one thing here I could not verify. It needs a live Dependabot PR and the next wave is Monday. So the fallback is written into the workflow rather than left implicit:
@dependabot recreatestill works, and if the identity change turns out not to satisfy Dependabot, the alternative is to stop pushing a commit at all — runpnpm dedupeinside the integrity job instead of requiring the branch to carry it. Worth checking Monday's wave before assuming it's solved.Verification
main's tree (39 packages), and fails on a planted ITMS-90863 on every iOS delivery: the app is listed for Apple silicon Macs, a platform we do not build or test for #683-shape skew.pnpm prepushgreen.dependabot[bot]attribution, per above.🤖 Generated with Claude Code