Skip to content

Regenerate API compatibility suppressions so packing succeeds again - #295

Merged
matt-edmondson merged 1 commit into
mainfrom
claude/project-thread-4f2hax
Oct 18, 2026
Merged

matt-edmondson merged 1 commit into
mainfrom
claude/project-thread-4f2hax

Conversation

@matt-edmondson

Copy link
Copy Markdown
Contributor

Requested by Matt · project thread

Before: every nightly Analyze & Release run since 2026-10-14 has failed at pack, with Pack failed for 2 project(s): Schema (exit code 1), Schema.Cpp (exit code 1). Nothing has been released since 2026-10-13.

After: both projects pack cleanly.

Package validation reports CP0014/CP0015 between net9.0 and net10.0. The diagnostics are on two Polyfill shim types, ExperimentalAttribute and DefaultInterpolatedStringHandler, whose nullability attributes differ between the two builds. The timing points at the Polyfill 11.4.4 → 11.4.5 bump, but that is inferred, not bisected. These are shim types Polyfill embeds, not Schema's own API, so suppressing them is the documented ktsu.Sdk answer.

How:

  • I regenerated both files with dotnet pack -p:ApiCompatGenerateSuppressionFile=true, building with the Roslyn 5.9 compiler that CI uses.
  • Schema.Cpp had no suppression file before, so this adds one.
  • Schema's file was also carrying net7.0 entries for a framework it no longer targets. ApiCompat reports those as unnecessary suppressions, and regenerating drops them.
  • Afterwards I packed both projects without generation: zero errors.

One caveat: I verified locally on SDK 10.0.112, not on the runner's 10.0.402. The PR's CI runs tests only, so the next push to main is what proves pack.


Generated by Claude Code

Polyfill 11.4.5 changed the nullability annotations on its ExperimentalAttribute and
DefaultInterpolatedStringHandler shims, which package validation reports as CP0014/CP0015
between net9.0 and net10.0. Every nightly release has failed at pack since 2026-10-14.

Schema's file also carried net7.0 entries for a framework it no longer targets, which
ApiCompat reports as unnecessary suppressions. Schema.Cpp had no file at all.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1AYPNe9rDK8FtuQgiKTnT
@sonarqubecloud

Copy link
Copy Markdown

@matt-edmondson
matt-edmondson merged commit 5a0fb09 into main Oct 18, 2026
16 checks passed
@matt-edmondson
matt-edmondson deleted the claude/project-thread-4f2hax branch October 18, 2026 12:35
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