Repository navigation
fix(ci): the dependabot dedupe job has never deduped anything — it cannot install - #724
Merged
Merged
Conversation
…nnot install #701 added this workflow to dedupe dependabot's lockfiles automatically, since dependabot regenerates pnpm-lock.yaml without deduping and Monorepo integrity fails on exactly that. It has never once succeeded. `packages/ui` and `packages/sdk` are git submodules, and pnpm-workspace.yaml lists both as workspace packages. The checkout step did not init them, so packages/ui was an empty directory and apps/ui-storybook-native's `"@scaffald/ui": "workspace:*"` resolved to nothing: ERR_PNPM_WORKSPACE_PKG_NOT_FOUND In apps/ui-storybook-native: "@scaffald/ui@workspace:*" is in the dependencies but no package named "@scaffald/ui" is present in the workspace pnpm exits there, before `pnpm dedupe` runs at all. Every job in ci.yml that runs pnpm already checks out submodules for this reason; this one was written without it. The result is worse than the problem it was added to solve: six dependabot PRs are open and every one of them is blocked on both `Dedupe the lockfile` (which errors) and `Monorepo integrity` (which the dedupe would have fixed). Verified on the real branch of #721: with submodules present, `pnpm dedupe --ignore-scripts` completes, touches only pnpm-lock.yaml (740 insertions, 911 deletions), and takes `pnpm dedupe --check` from failing to exit 0. Co-Authored-By: Claude Opus 5 <[email protected]>
thinkclay
force-pushed
the
claude/sept10-backlog
branch
from
September 10, 2026 19:58
b229140 to
0258ca7
Compare
This was referenced Sep 25, 2026
thinkclay
added a commit
that referenced
this pull request
Sep 26, 2026
…eiting rebase (#907) (#917) 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 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.
#701 added
dependabot-dedupe.ymlso dependabot's lockfiles get deduped automatically — dependabot regeneratespnpm-lock.yamlwithout deduping, andMonorepo integrityfails on exactly that.It has never once succeeded.
Why
packages/uiandpackages/sdkare git submodules, andpnpm-workspace.yamllists both as workspace packages. The checkout step did not init them, sopackages/uiwas an empty directory andapps/ui-storybook-native's"@scaffald/ui": "workspace:*"resolved to nothing:pnpm exits there — before
pnpm deduperuns at all. Every job inci.ymlthat runs pnpm already checks out submodules for this reason; this one was written without it, and I did not catch it because the workflow's first real exercise was on a PR I had already deduped by hand.Why it matters more than a broken job usually would
It is worse than the problem it was added to solve. Six dependabot PRs are open — #713, #715, #716, #717, #718, #721 — and every one is blocked on both
Dedupe the lockfile(which errors) andMonorepo integrity(which the dedupe would have fixed). The automation added a second red check without removing the first.Verified
Against the real head of #721 (
dependabot/npm_and_yarn/csv-parse-7.0.2), with submodules present:pnpm dedupe --checkbeforepnpm dedupe --ignore-scriptspnpm-lock.yamlonlypnpm dedupe --checkafterThat is precisely the job's contract: repair the lockfile, touch nothing else.