Skip to content

chore(deps): group Storybook packages in Dependabot and hold major bumps - #6177

Open
mday-io wants to merge 1 commit into
SQLMesh:mainfrom
mday-io:mday/friendly-euler-cttah6
Open

mday-io wants to merge 1 commit into
SQLMesh:mainfrom
mday-io:mday/friendly-euler-cttah6

Conversation

@mday-io

@mday-io mday-io commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Dependabot opened #6164, which bumps only @storybook/addon-a11y from 9.0.18 to 10.6.3 while storybook and the other Storybook packages stay on 9.0.18. The add-on declares storybook: ^10.6.3 as a peer dependency, and with that mismatch both storybook dev and storybook build in vscode/react fail with NoMatchingExportError (the add-on imports Select and TabsView from storybook/internal/components, which don't exist in 9.0.18). CI didn't catch it because no job runs Storybook.

This changes .github/dependabot.yml so that can't happen again:

  • Group storybook, @storybook/*, @chromatic-com/storybook and eslint-plugin-storybook minor/patch updates into a single PR, so the add-ons and storybook always move together.
  • Ignore major bumps for those packages. A Storybook major upgrade needs to be done by hand as one coordinated migration, not as per-package PRs. For example, @storybook/addon-vitest@10 requires vitest ^4 || ^5 (we're on 3.2.x), and @chromatic-com/storybook@4 only supports Storybook 9.

I closed #6164 with @dependabot ignore this major version. Upgrading Storybook itself is out of scope here. Ignoring majors defers that migration, so it should be picked up deliberately later.

Test Plan

  • Validated the new .github/dependabot.yml against the SchemaStore dependabot-2.0 JSON schema. It passes, and a misspelled key is rejected, so the check does catch errors.
  • Reproduced the problem on Chore(deps-dev): Bump @storybook/addon-a11y from 9.0.18 to 10.6.3 #6164: with its lockfile, pnpm run build-storybook and storybook dev fail in vscode/react, and build-storybook passes on main.
  • Checked that moving the packages together works. In a scratch copy, bumping all Storybook packages to ^9.1.21, or to ^10.6.3 (plus @chromatic-com/storybook@^5.6.0), installs cleanly and build-storybook, tsc and vitest pass. vscode/react has no stories, so this only exercises the build.
  • Not tested: Dependabot's own behavior. That can only be confirmed once this is on main. Config errors would show up under Insights → Dependency graph → Dependabot.

Checklist

  • I have run make style and fixed any issues (N/A: YAML config only, no Python or TS changes)
  • I have added tests for my changes (if applicable) (N/A: no code changed)
  • All existing tests pass (make fast-test) (N/A: no code changed)
  • My commits are signed off (git commit -s) per the DCO

Summary by CodeRabbit

  • Chores
    • Storybook-related minor and patch dependency updates are now grouped together for maintenance.
    • Major updates to those dependencies are excluded from automated update requests.

Storybook add-ons declare a peer dependency on the matching `storybook`
release, so they have to move together. Dependabot currently opens one PR
per package, which can leave the add-ons and `storybook` on different
majors (e.g. SQLMesh#6164 bumped only @storybook/addon-a11y to 10.x, which breaks
`storybook dev` and `storybook build` in vscode/react).

- Group storybook, @storybook/*, @chromatic-com/storybook and
  eslint-plugin-storybook minor/patch updates into a single PR.
- Ignore major bumps for those packages. A Storybook major upgrade needs to
  be done by hand as one coordinated migration (for example
  @storybook/addon-vitest 10 requires vitest 4+).

Signed-off-by: mday-io <mdaytn@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f169933e-2a07-4527-8c12-cc0fd8ebef55
Commits

Reviewing files that changed from the base of the PR and between 5a09168 and 3ba4903.

Files selected for processing: 1
  • .github/dependabot.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

The npm Dependabot configuration now groups minor and patch updates for specified Storybook packages and ignores major updates for those packages.

Changes: Storybook Dependabot rules

Layer / File(s) Summary
Storybook update policy
.github/dependabot.yml
The npm configuration groups minor and patch updates for the listed Storybook packages and ignores their semver-major updates.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related PRs

  • SQLMesh/sqlmesh#6164: Updates @storybook/addon-a11y, a package covered by the new Dependabot rules.

Suggested labels: dependencies, javascript

Merge Risk: Minimal · up to 3ba49

This PR changes how Dependabot proposes Storybook-related dependency updates, so related packages are bumped together and major upgrades are deferred. It has no effect on runtime behavior. Merge risk is minimal; the author notes Dependabot's behavior can be confirmed after the change reaches main.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main changes: grouping Storybook dependencies and deferring major updates.
Description check Passed The description includes the required Description, Test Plan, and Checklist sections. It explains the problem, the configuration change, validation steps, limitations, and checklist status.
Linked Issues check Passed No active directly linked issue remains. Issue #6164 is closed and supplies historical context only. Therefore, this pull request has no linked-issue coding requirements. The change does not need to i…
Out of Scope Changes check Passed The change is limited to .github/dependabot.yml. It groups Storybook minor and patch updates and ignores Storybook major updates. These changes match the pull request's stated dependency-management …
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Linked Issues check

Explanation

No active directly linked issue remains. Issue #6164 is closed and supplies historical context only. Therefore, this pull request has no linked-issue coding requirements. The change does not need to implement the closed issue's dependency upgrade.

Full details: Out of Scope Changes check

Explanation

The change is limited to .github/dependabot.yml. It groups Storybook minor and patch updates and ignores Storybook major updates. These changes match the pull request's stated dependency-management objective. No unrelated change is shown.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@StuffbyYuki StuffbyYuki left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants