Skip to content

[deps] Pin platform-aligned packages to their platform major in Dependabot - #36

Open
jellar wants to merge 1 commit into
mainfrom
chore/dependabot-platform-pins
Open

jellar wants to merge 1 commit into
mainfrom
chore/dependabot-platform-pins

Conversation

@jellar

@jellar jellar commented Dec 6, 2026

Copy link
Copy Markdown
Owner

Stops Dependabot from proposing major upgrades that break the platform baseline, which is why #29 and #32 fail CI.

Why

PR Bump CI Root cause
#29 typescript 6.0 → 7.0 ❌ frontend (npm ci) @angular/build and @angular/compiler-cli 22.3 declare peer typescript >=6.0 <6.1, so npm refuses the install (ERESOLVE)
#32 Microsoft.Extensions.ApiDescription.Server 10 → 11 ❌ backend (build) 11.0.0 ships its GetDocument.Insider tool only for .NET 11. With no tools/net10.0/, the build-time openapi/v1.json step fails with exit 129

These pass CI but are on the wrong platform line, so they are ignored too:

Changes

  • .github/dependabot.yml ignore rules (majors only, unless noted):
    • NuGet: Microsoft.Extensions.*, Microsoft.AspNetCore.*, Microsoft.EntityFrameworkCore*, Microsoft.Data.SqlClient
    • npm /web:
      • typescript — major and minor, because Angular pins the 6.0 range
      • @angular/*, @angular-devkit/*, angular-eslint, @angular-eslint/*
      • @types/node
    • npm /tests/e2e: @types/node
  • Still proposed: minor and patch updates for everything, and all updates for other packages.
  • CLAUDE.md: new working rule. Platform upgrades (.NET 11, the next Angular major, Node 24) are a deliberate, all-together change with an ADR.

After merging

Close #27, #31, #33 and #34 (they pass CI but are ignored now), unless you want to keep any. #29 and #32 are closed with explanations.


Generated by Claude Code

… Dependabot

TypeScript 7 (#29) breaks npm ci (Angular 22 needs typescript >=6.0 <6.1) and
ApiDescription.Server 11 (#32) ships no net10.0 tool, breaking the build-time
OpenAPI document. Ignore majors of .NET platform packages, Angular and its
tooling, and @types/node; ignore TypeScript minors too. Platform upgrades
become a deliberate change with an ADR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014HXNHHTdT6NsLeJnDKwCYr
Comment thread .github/dependabot.yml
ignore:
# Major versions of these track the .NET major (11.x targets .NET 11; e.g. ApiDescription.Server 11
# ships no net10.0 tool and breaks the build-time OpenAPI document).
- dependency-name: "Microsoft.Extensions.*"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Should fix: Microsoft.Extensions.* is too broad. Microsoft.Extensions.AI* (used by AiGateway) is versioned independently of the .NET major, so this glob would also block its legitimate major bumps. Dependabot would stay silent about them, with no warning.

Suggested fix: list the .NET-aligned families explicitly (Microsoft.Extensions.Http.Resilience, Microsoft.Extensions.Diagnostics.Testing, Microsoft.Extensions.Hosting*, Microsoft.Extensions.Configuration*, Microsoft.Extensions.DependencyInjection*, Microsoft.Extensions.Logging*, and so on). Or keep the glob and add Dependabot's allow for Microsoft.Extensions.AI*. Check which packages Directory.Packages.props actually references.

Also note that the ignore rules don't revert the already-merged SqlClient 8.0.0 bump (#31), even though the new comment says EF Core 10 targets 6.x. Please confirm that the build is fine with 8.0.0 or revert it.

@claude

claude Bot commented Dec 6, 2026

Copy link
Copy Markdown

Review summary

Scope: config and docs only (.github/dependabot.yml, CLAUDE.md). No application code, endpoints, AI, data access or residency impact. No tenant-isolation or security findings.

Findings: Must fix: 0 · Should fix: 1 (the Microsoft.Extensions.* glob also blocks majors of the independently versioned Microsoft.Extensions.AI*; see the inline comment) · Nits: 2.

DoD: Build and tests are not affected. Docs are updated (CLAUDE.md rule added). The ADR the new rule mentions is not yet written (it's only needed for a future platform upgrade).

Acceptance criteria / tests: No backlog story applies, and none of the changes is testable by code. Dependabot config is validated by GitHub on merge.

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