Skip to content

ci(dependabot): run monthly in 1 entry for each ecosystem (core ADR-0089) - #109

Merged
bketelsen merged 3 commits into
mainfrom
irulan/t14-dependabot-npm-group
Nov 22, 2026
Merged

bketelsen merged 3 commits into
mainfrom
irulan/t14-dependabot-npm-group

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

frostyard/core ADR-0089 (baseline row B13) runs Dependabot version updates monthly, in exactly 1 entry for each ecosystem. lodge had 7 weekly entries: 2 gomod (/, /kit) and 4 npm (/client, /ui, /shell, /dev/mcp-e2e), each opening its own PR.

  • .github/dependabot.yml: 3 entries, 1 for each ecosystem. gomod lists / and /kit in directories; npm lists the 4 npm directories. Every schedule is only interval: monthly. Each entry keeps 1 group with patterns: ["*"] and no applies-to, so security updates stay ungrouped and immediate (ADR-0075). Commit prefixes and the @types/node semver-major ignore are unchanged; the ignore now also covers dev/mcp-e2e, which has no @types/node.
  • internal/workflowcheck: dependabotUpdate reads directories as well as directory, and the entry's schedule and groups. The new dependabotEntryGaps lists every gap of row B13: an ecosystem in 2 or more entries, an entry with both directory and directories or neither, a schedule other than exactly interval: monthly, and an entry without exactly 1 group of patterns: ["*"] with no group-by and no applies-to. TestDependabotCoversManifests runs it on the real file and still fails on any uncovered manifest. TestDependabotEntryGaps makes it find each gap on purpose (16 cases, 1 good shape, 1 empty list, 14 gaps).
  • AGENTS.md: the dependency paragraph and the B13 line say so.

When this merges, Dependabot regroups at its next run, on the 1st of the month.

Risk tier

Risk tier: 3 — risk:high (L2). Matched path: internal/workflowcheck/baseline_test.go (internal/{workflowcheck,repocheck,packagecheck}/**, governance). Safe: the test only reads more of each entry and refuses more shapes; it still fails on any uncovered manifest (checked by removing /dev/mcp-e2e from the list: dev/mcp-e2e/package.json has no Dependabot entry). .github/dependabot.yml is not in risk-paths.json; it changes which PRs the bot opens and when, not what CI runs or who may write.

Verification

  • make check race cross green (host). The diff touches no client/, ui/ or shell/ file; CI runs their nsl checks.
  • Revert test: with .github/dependabot.yml from origin/main (7 weekly entries), go test -count=1 -run TestDependabotCoversManifests ./internal/workflowcheck fails with 9 gaps (schedule map[interval:weekly], want only interval: monthly for each entry, and package-ecosystem gomod in 2 or more entries and the same for npm). With this file it passes (6 manifests, 3 Dependabot entries).
  • TestDependabotEntryGaps: 16 subtests pass.

client, ui, shell and dev/mcp-e2e each had an npm entry with its own
group, so Dependabot opened up to 4 npm PRs a week. 1 npm entry now lists
the 4 directories in directories, with 1 group (npm, patterns *), so it
opens at most 1 npm PR a week across them. The @types/node major ignore
moves to the shared entry (dev/mcp-e2e has no @types/node).

TestDependabotCoversManifests reads directories as well as directory,
refuses an entry that sets both, and wants exactly 1 npm entry: it fails
on the old file (4 npm entries). AGENTS.md says so (Brian, 2026-11-21).
@github-actions github-actions Bot added level:L2 Read the diff risk:high Touches a path in .github/risk-paths.json labels Nov 21, 2026
frostyard/core ADR-0089 (baseline row B13) wants each package-ecosystem in
exactly 1 entry, its manifests' directories in that entry's directories,
a schedule of only interval: monthly, and 1 catch-all group with no
group-by. The gomod entries for / and /kit join 1 entry, and every entry
runs monthly.

internal/workflowcheck's dependabotEntryGaps checks the 1-entry rule, the
schedule and the group of every entry; TestDependabotEntryGaps makes it
find each gap on purpose. The comments no longer cite a person for the
rule: they cite ADR-0089.
@frostyard-machines frostyard-machines changed the title ci(dependabot): update the 4 npm manifests in 1 grouped PR ci(dependabot): run monthly in 1 entry for each ecosystem (core ADR-0089) Nov 22, 2026
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 22, 2026
@bketelsen
bketelsen merged commit 8f1a7c9 into main Nov 22, 2026
12 checks passed
@bketelsen
bketelsen deleted the irulan/t14-dependabot-npm-group branch November 22, 2026 04:23
bketelsen pushed a commit to frostyard/porter that referenced this pull request Nov 28, 2026
…089) (#60)

frostyard/core ADR-0089 (baseline row B13) wants each package-ecosystem in
exactly 1 entry, its manifests' directories in that entry's directories,
a schedule of only interval: monthly, and 1 catch-all group with no
group-by and no applies-to. porter's 3 entries are already 1 for each
ecosystem; each now runs monthly.

internal/workflowcheck reads directories as well as directory, and
dependabotEntryGaps checks the 1-entry rule, the schedule and the group of
every entry, as frostyard/lodge#109 does; TestDependabotEntryGaps makes it
find each gap on purpose. AGENTS.md's B13 bullet names the new shape.

Co-authored-by: frostyard-machines <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L2 Read the diff ready-for-human Reviewed, CI green: ready for Brian to review and merge risk:high Touches a path in .github/risk-paths.json

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants