Skip to content

chore(deps): split npm majors into four groups by what verifies them - #53

Merged
stuffbucket merged 1 commit into
mainfrom
chore/split-npm-major-groups
Sep 6, 2026
Merged

stuffbucket merged 1 commit into
mainfrom
chore/split-npm-major-groups

Conversation

@stuffbucket

Copy link
Copy Markdown
Owner

Prerequisite for splitting #37. Supersedes it structurally: once this lands,
#37 gets closed and Dependabot reopens its 17 updates as four reviewable PRs.

Why

The single npm-major group produced #37 — one PR carrying 17 updates across
lint tooling, the language surface, shipped runtime libraries and the Electron
client. It could not be reviewed as a unit. A green CI run is the whole
verdict for a lint-staged bump and no evidence at all that the released app
still signs, notarizes and staples. Those two cannot share a merge decision, so
they should not share a PR.

The split

Grouped by the evidence that settles the PR, not by package name:

Group Packages What verifies it
npm-major-electron electron, @electron/*, @vitejs/plugin-react Prerelease tag through macos-builder, then scripts/verify-dmg.sh and a Gatekeeper open on a Mac that never held the signing identity
npm-major-language typescript, @types/node Build, typecheck and lint across the workspace
npm-major-runtime undici, gpt-tokenizer, proxy-from-env Container suite, package mechanics, sidecar provenance
npm-major-tooling everything else Green CI

Two things recorded in the file itself because they are easy to break later:

  • Order matters. Dependabot assigns a package to the first group whose
    patterns match, so the catch-all must stay last. A group added above it
    silently reassigns whatever it matches.
  • npm-major-runtime does not maintain itself. It is an explicit list, so a
    newly added runtime dependency falls through to the tooling group and gets
    reviewed under a name that undersells it. The other two major groups are
    pattern-based and need no upkeep.

Also

open-pull-requests-limit 5 → 8. Five groups can now be open at once and the
limit is shared with any ungrouped npm PR, so at 5 the split would starve
itself the first time a PR sat unmerged — silently, which is the bad kind.

Verification

Config-only; no code path changes. YAML parses, and the group order is
npm-minor-and-patch → electron → language → runtime → tooling with the
catch-all last. The real check is what Dependabot opens after #37 is closed.

One npm-major group produced a single PR carrying 17 updates, spanning
lint tooling, the language surface, shipped runtime libraries and the
Electron client. That PR could not be reviewed as a unit: a green CI run
is the whole verdict for a linter bump and no evidence at all that the
released app still signs, notarizes and staples, so the two cannot share
one merge decision.

Split by the evidence that settles the PR:

  npm-major-electron   electron, @electron/*, @vitejs/plugin-react
                       prerelease tag through macos-builder, then
                       scripts/verify-dmg.sh and a Gatekeeper open on a
                       Mac that never held the signing identity
  npm-major-language   typescript, @types/node
                       build, typecheck and lint across the workspace
  npm-major-runtime    undici, gpt-tokenizer, proxy-from-env
                       container suite, package mechanics, sidecar
                       provenance
  npm-major-tooling    everything else, dev-time only

Dependabot assigns a package to the first group whose patterns match, so
the catch-all stays last; the comment says so, because a group added
above it would silently reassign whatever it matches.

npm-major-runtime is an explicit list rather than a pattern and does not
maintain itself: a newly added runtime dependency falls through to the
tooling group. The comment names that so the next person adding one
knows to extend it.

Raise open-pull-requests-limit from 5 to 8. Five groups can be open at
once and the limit is shared with any ungrouped npm PR, so at 5 the
split would starve itself the first time a PR sat unmerged.
@stuffbucket
stuffbucket merged commit 1ed17ce into main Sep 6, 2026
6 checks passed
@stuffbucket
stuffbucket deleted the chore/split-npm-major-groups branch September 6, 2026 10:00
stuffbucket added a commit that referenced this pull request Sep 6, 2026
Group 1 of 4 replacing #37. Dev-tooling majors only — nothing here ships
to a
user, so a green CI run is the whole verdict.

| Package | From | To |
|---|---|---|
| `prettier-plugin-packagejson` | 2.5.19 | 3.0.2 |
| `bumpp` | 10.2.3 | 12.2.2 |
| `dependency-cruiser` | 17.4.0 | 18.2.0 |
| `lint-staged` | 16.2.3 | 17.3.0 |
| `@stryker-mutator/core` | 9.6.1 | 10.0.0 |
| `@stryker-mutator/vitest-runner` | 9.6.1 | 10.0.0 |

## knip 5 → 6 is held back

It was in this group and does **not** belong here. It fails in two
packages for
unrelated reasons, and both are decisions rather than bumps:

- **`maximal-core`** — five system binaries newly reported unlisted
(`qemu-system-aarch64`, `pgrep`, `swtpm`, `schtasks`), five
barrel-re-exported
  `TokenUsage*` types newly reported unused, plus stale `ignore` /
`ignoreDependencies` entries. The types are a **published API surface**,
so
  dropping them is not a config question.
- **`maximal`** — knip 6 descends into the nested `client/` package
where knip 5
  did not, producing 14 unlisted dependencies (`vitest`, `react`,
  `@playwright/test`).

It gets its own PR, for the same reason `typescript` 7 does: a bump
needing
migration work should not ride along with five that do not. That is the
split in
#53 doing its job on its first outing.

## Verification

- `maximal-core` `check:deep:host` passes end to end — preflight,
`check:fast`
(oxlint + tsc + eslint), casts, knip, deps, dupes, CI coverage, build,
and the
  downstream contract typecheck.
- Container suite **15/15 tasks**.
- `verify:workspace` passes; lockfile re-resolved and stripped of
rotating shard
  hosts per SOURCES.md.

## What CI does *not* prove here

Worth stating rather than implying: `bumpp`, `dependency-cruiser` and
`lint-staged` are **not invoked by any workflow**. `dependency-cruiser`
has no
config in the repository at all, and stryker runs only via the manual
`mutate`
script. For those, a green run shows the versions resolve and install —
nothing
about their behaviour. `prettier-plugin-packagejson` is the one
genuinely
exercised, through `eslint`'s prettier integration.

Replaces part of #37.
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