Skip to content

ci(deps): make the Expo gate about skew, and stop the dedupe job forfeiting rebase - #917

Merged
thinkclay merged 1 commit into
mainfrom
fix/dependency-gates
Sep 26, 2026
Merged

thinkclay merged 1 commit into
mainfrom
fix/dependency-gates

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

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 --check resolves 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 only adm-zip failed 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.mjs reads bundledNativeModules.json from 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:

$ # expo-image set to 56.0.9 — the exact #683 version
✖ 1 Expo package(s) do not match what [email protected] bundles:
    expo-image  installed 56.0.9  expected ~56.0.13
$ # restored
✓ 39 Expo packages agree with [email protected]'s bundled set

It also closes a hole I did not expect to find

expo install --check only inspects the app's direct dependencies. expo-modules-core is not one — it is transitive, held by a root pnpm.overrides entry. 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:

• expo-modules-core is held at 56.0.22 by a pnpm override; expo bundles ~56.0.26.

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.yml asks 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 the ERR_PNPM_UNUSED_PATCH trap 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.yml pushes a chore(deps): pnpm dedupe commit — that is its entire purpose (#701, #724), and Monorepo integrity fails without it. Committed as github-actions[bot], that commit made Dependabot answer every rebase request 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 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 recreate still works, and if the identity change turns out not to satisfy Dependabot, the alternative is to stop pushing a commit at all — run pnpm dedupe inside the integrity job instead of requiring the branch to carry it. Worth checking Monday's wave before assuming it's solved.


Verification

🤖 Generated with Claude Code

…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]>
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.

ci: every dependency PR fails Monorepo integrity on expo install --check, which none of them caused

1 participant