Skip to content

fix(ci): the dependabot dedupe job has never deduped anything — it cannot install - #724

Merged
thinkclay merged 1 commit into
mainfrom
claude/sept10-backlog
Sep 10, 2026
Merged

thinkclay merged 1 commit into
mainfrom
claude/sept10-backlog

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

#701 added dependabot-dedupe.yml so dependabot's lockfiles get deduped automatically — dependabot regenerates pnpm-lock.yaml without deduping, and Monorepo integrity fails on exactly that.

It has never once succeeded.

Why

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, 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) and Monorepo 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 --check before fails
pnpm dedupe --ignore-scripts completes
files touched pnpm-lock.yaml only
lockfile diff 740 insertions, 911 deletions
pnpm dedupe --check after exit 0

That is precisely the job's contract: repair the lockfile, touch nothing else.

…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
thinkclay force-pushed the claude/sept10-backlog branch from b229140 to 0258ca7 Compare September 10, 2026 19:58
@thinkclay
thinkclay merged commit b474d3d into main Sep 10, 2026
18 checks passed
@thinkclay
thinkclay deleted the claude/sept10-backlog branch September 10, 2026 20:05
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]>
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.

1 participant