Skip to content

fix(ci): name the @effect packages in Dependabot's effect group - #375

Merged
allisonmahmood merged 2 commits into
mainfrom
fix/dependabot-effect-group
Sep 25, 2026
Merged

allisonmahmood merged 2 commits into
mainfrom
fix/dependabot-effect-group

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner

On the last two Effect RC rounds (#273 on 2026-09-16, #344 on 2026-09-23) Dependabot's effect group bumped only effect and opened one extra pull request per @effect/* package in the same run (#275, #277, #278, #279 and #346, #348, #349, #352). The siblings had to be pushed onto the group PR by hand and the extras closed.

The @effect/* glob matches fine; the split comes from how Dependabot assigns a dependency that matches several groups. Since dependabot-core#13098 it keeps the dependency in the group whose pattern scores highest: an exact name scores 1000, @effect/* scores 94, and a group with no patterns at all, which is what patch-updates is, scores 500. So every @effect/* package was handed to patch-updates. That group only accepts patch releases, and rc.115 → rc.117 does not change major, minor or patch, so semver_rules_allow_grouping? rejected the bump and returned without marking the package handled. Unhandled dependencies fall through to the ungrouped pass, which opens a pull request each. effect itself is an exact match, so it stayed in the group.

The fix names the five lockstep packages one by one, which scores 1000 and outranks any other group. The exclude-patterns entry for @effect/language-service goes with the glob; the config comment says why and how to add a package. Nothing else in the repo names the glob: the @effect/* in pnpm-workspace.yaml is pnpm's release-age gate and is a separate concern.

Verified by reading the assignment and scoring code on dependabot-core main (dependency_group_engine.rb, pattern_specificity_calculator.rb, group_update_creation.rb) against the two runs' PRs and their creation times. No local Dependabot run: Docker is not up on this machine and no RC newer than rc.117 exists to bump. The next RC is the real test.

Investigated and fixed by Claude Fable 5.1 via Claude Code.

The effect group's `@effect/*` glob never grouped the scoped packages:
Dependabot picks the most specific group per dependency, and a group
with no patterns (patch-updates) outranks a wildcard, so the siblings
went to patch-updates, which refuses an RC bump and drops them through
to one PR each. Exact names outrank every other group.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@github-actions github-actions Bot added area:ci CI, shared testing infrastructure, development scripts and tooling size:s Under 100 changed lines labels Sep 25, 2026
@allisonmahmood

allisonmahmood commented Sep 25, 2026 •

Copy link
Copy Markdown
Owner Author

Opus review (standing in for astra)

I checked the chain against dependabot-core main. The relevant files are unchanged since before 2026-09-16.

Confirmed

  • Scoring. pattern_specificity_calculator.rb:187 returns NO_PATTERNS_SCORE (500) when patterns is nil. calculate_pattern_specificity (L196-206) gives @effect/* 100 - 10 + (9 - 5) = 94.
  • Assignment. In should_skip_due_to_specificity? (dependency_group_engine.rb:189-225), effect has no update_types, so eligible_groups is every group. For @effect/vitest, find_most_specific_group_name scores effect at 94. patch-updates passes update_type_allowed?: update_type is nil (L219). contains? is true for a pattern-less group (dependency_group.rb:111), and it scores 500. So effect skips the package. patch-updates never checks specificity, because can_check_specificity? (L121-123) returns false with no patterns, so it keeps the package. effect is an exact match and short-circuits at L111, which leaves it in both groups.
  • Fall-through. In group_update_creation.rb:455-462, semver_rules_allow_grouping? returns false for rc.115 -> rc.117 (L624-628, then false). mark_handled_for_group_by_name does nothing for groups that aren't group-by-name, so the package returns before add_handled_dependencies. ungrouped_dependencies (dependency_snapshot.rb:193) then picks it up. mark_group_handled (group_update_all_versions.rb:109) doesn't catch it, because the change is non-nil even with no updates.
  • (1) The fix holds. With exact names, each sibling scores 1000 in effect (L111) and is also assigned to patch-updates, the same as effect itself on chore(deps): bump effect from 4.0.0-rc.112 to 4.0.0-rc.115 in the effect group across 1 directory #273 and chore(deps): bump effect and @effect/* from 4.0.0-rc.115 to 4.0.0-rc.117 #344, where it stayed grouped. After effect runs, skip_dependency? (group_update_creation.rb:337-343) skips them in patch-updates. For RCs group order doesn't matter: if patch-updates ran first, semver still rejects the bump there.
  • (2) Dropping exclude-patterns changes nothing. @effect/language-service didn't match the old effect group and doesn't match the new one. Either way it sits only in patch-updates: a patch bump goes into that PR, and a minor or major bump gets its own PR, as before. The five names match the catalog (pnpm-workspace.yaml:10-14) and every package.json.
  • (5) The label still applies. The group branch is named after the group (dependabot/npm_and_yarn/effect-<hash>), and that name hasn't changed. The stray PRs used dependabot/npm_and_yarn/effect/<pkg>-… (a slash, not a dash), so the label never matched them, then or now.

(3) The alternative

patch-updates: patterns: ["*"] would also work. "*" scores 1 (L198), so effect (94) wins. patch-updates then checks specificity and skips the siblings, because effect.dependencies already includes them (1000). It keeps the glob, so a new @effect/* package joins automatically. I would still ship the PR's version:

  • Exact names take the top short-circuit, the path effect already took successfully twice. "*" relies on 1 < 94, a heuristic ranking we haven't seen work here.
  • The lockstep set is already listed by name twice in pnpm-workspace.yaml (catalog L10-14, overrides L35-38), so a third list costs little.
  • The failure mode is loud: if someone forgets to add a package here, you get a stray PR, not a silent skip.

Disagree

Nothing.

Nits

Verdict

Merge once the PR body's PR ranges are fixed. The comment wording nits are optional.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Applied the review's nits: the PR body now lists the exact sibling PRs, and the config comment says the members also sit in patch-updates and that the list follows the RC lockstep rather than the whole catalog.

@allisonmahmood
allisonmahmood merged commit c82bdb3 into main Sep 25, 2026
9 checks passed
@allisonmahmood
allisonmahmood deleted the fix/dependabot-effect-group branch September 25, 2026 00:29
allisonmahmood added a commit that referenced this pull request Oct 2, 2026
Effect 4.0.0 shipped on Oct 1 and we were on 4.0.0-rc.117. Dependabot
never opened a PR for rc.118 or 4.0.0 (its `effect` group hasn't run
since #375), so this is by hand.

rc.118 removed the `effect/unstable/*` export paths. 462 imports across
185 files move to `effect/http`, `effect/sql`, `effect/cli`,
`effect/process`, `effect/reactivity`, `effect/encoding` and
`effect/http-api` (renamed from `httpapi`). Two API renames reached us:

- `Schema.isLengthBetween` is now `Schema.isBetweenLength`
(`packages/api`).
- `effect/Encoding` was split into per-format modules, so the member
directory cursor uses `effect/encoding/Base64Url`.

One behavior change broke tests, not production. `HttpRouter.serve` now
builds its app in a forked memo map and hands the context it built,
router included, to the layers around it (rc.117 kept the router
private). `HttpApiTest.groups` captures its surrounding context, so in a
suite that also serves on a socket the in-memory client registered its
routes on the server's router and failed with "Method 'POST' already
declared for route '/api/publish'" (11 tests in PatchesApi and SdkApi).
`Fixtures.ownRouter` drops that router before the client builds its own,
and replaces SdkApi's fresh-memo-map workaround, which no longer helped.
In production, `apps/server` and the dev server put nothing that
registers routes beside `serve`, and shared services are still provided
outside it, so they're built once.

The rest of the rc.118 and 4.0.0 notes either don't touch our code
(`Schema.brand`, `partition` order and `Scope.close` needing a
`Closeable` all typecheck clean) or are covered by tests. For example,
`@effect/sql-pg` now fails a transaction whose COMMIT comes back as
ROLLBACK after a caught statement error, and no caller relies on the old
silent rollback.

With Effect stable, the release-candidate handling AGENTS.md asked us to
drop goes away: the `minimumReleaseAgeExclude` list, the
`effect-rc-bump` label step and the AGENTS.md runbook. The Dependabot
`effect` group stays (comments rewritten), because the packages still
release in lockstep and the overrides make a lone bump fail. AGENTS.md
now notes that `effect/http`, `effect/http-api`, `effect/sql` and
`effect/cli` are still `@stability unstable`, so a minor Effect release
can break them.

Made by Claude Opus 5.5 via Claude Code; reviewed by GPT 6.1 Sol via
codex.

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant