Repository navigation
fix(ci): group the npm packages that can't move alone - #307
Merged
Merged
Conversation
Two of the 14 PRs Dependabot opened once the config became valid fail sdk-metrics, and not on a test — they fail at `npm install`, because npm enforces peer ranges and each moves one half of a pair that has to move together. #298 typescript 5.9.3 -> 7.0.2: peer typescript@">=4.3 <7" from [email protected] #297 @typescript-eslint/eslint-plugin 5.62.0 -> 8.65.0: peer @typescript-eslint/parser@"^8.66.0" from the plugin, while parser is still pinned ^5.59.0 Neither is a bad bump. Both are the right target version proposed in an order that cannot install. The gomod entry has had a groups: block all along — aws-sdk, production-dependencies, development-dependencies. Neither npm entry did, so Dependabot opened one PR per package with no way to know two of them are a set. Adding typescript-toolchain (typescript, ts-jest, jest, @types/jest) and typescript-eslint (@typescript-eslint/*, eslint) makes each set move as one PR, which is the only form that resolves. This does not make them automatic. They are still majors, so dependabot-automerge.yml comments and waits for a human — right for a TypeScript 5 -> 7 jump. /docs-platform was checked and is not affected: it has jest and typescript but no ts-jest, so nothing there declares a peer range on the TypeScript version. One thing found while looking, recorded on the issue rather than fixed here: the three vite alerts need a vitepress major, not a vite bump. [email protected] depends on vite ^5.4.14, so vite cannot reach the patched 6.4.3 while vitepress is on 1.x. The missing lockfile (#214) is a second blocker, not the only one. Closes #306
scttfrdmn
enabled auto-merge (squash)
August 3, 2026 19:53
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 #306.
Two of the 14 PRs Dependabot opened once
.github/dependabot.ymlbecame valid (#288/#289) failsdk-metrics— and not on a test. They fail atnpm install, becausenpmenforces peer ranges and each moves one half of a pair that has to move together.#298 —
typescript5.9.3 → 7.0.2:#297 —
@typescript-eslint/eslint-plugin5.62.0 → 8.65.0:Neither is a bad bump. Both are the right target version, proposed in an order that cannot install.
Why here and not for Go
The
gomodentry has had agroups:block all along —aws-sdk,production-dependencies,development-dependencies. Neither npm entry did. Ungrouped, Dependabot opens one PR per package and has no way to know two of them are a set.This surfaced only now because before #288 the whole config was ignored, so Dependabot ran on its defaults and never proposed these at all.
The fix
Two groups on the
/sdks/javascriptnpm entry:typescript-toolchaintypescript,ts-jest,jest,@types/jesttypescript-eslint@typescript-eslint/*,eslintIt does not make these automatic — they are still majors, so
dependabot-automerge.ymlcomments and waits for a human. That is the right outcome for a TypeScript 5 → 7 jump./docs-platformwas checked and is not affected: it hasjestandtypescriptbut nots-jest, so nothing there declares a peer range on the TypeScript version.Found while looking: the vite alerts need a vitepress major
Recorded rather than fixed here.
docs-platformhas 3 openvitealerts (one high) patched at 6.4.3, and[email protected]depends onvite: ^5.4.14— sovitecannot reach 6.x whilevitepressis on 1.x. The missing lockfile (#214) is a second blocker, not the only one; committing a lockfile will not close these alerts by itself. Noted on #306 so #214 is not expected to do more than it can.On not adding a test
A test asserting
groups:names particular packages would restate the config rather than check it. The thing that can actually be wrong is the peer range, and onlynpmknows that.sdk-metricsrunsnpm installon every PR and is what caught this — that is the gate.Gates
go build ./...·gofmt -l .clean ·go test ./internal/config/ok (the dependabot config gates live there, includingTestDependabotScheduleTimesAreQuotedandTestDependabotLabelsAreDefined).