Repository navigation
ci(sdk): gate client API compatibility - #2060
Merged
Merged
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
8 of 25 tasks
14 of 24 tasks
tjrasche
force-pushed
the
sdk-api-diff-gate
branch
2 times, most recently
from
August 7, 2026 07:52
4c1673f to
81f723c
Compare
Compare pkg/client/v1 with the latest stable release, require baseline-scoped acknowledgements for intentional breaks, and run the gate in local qualification and CI. Pin and verify apidiff, cover the decision paths with shell tests, and document the compatibility workflow and alias limitation. Signed-off-by: Tjark Gunnar Rasche <[email protected]>
tjrasche
force-pushed
the
sdk-api-diff-gate
branch
from
August 7, 2026 13:44
875d31f to
5aeb56c
Compare
mchmarny
enabled auto-merge (squash)
August 7, 2026 13:45
12 of 25 tasks
10 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a release-baseline API compatibility gate for
pkg/client/v1to localqualification and CI, with fail-closed acknowledgements for intentional breaks.
Motivation / Context
The public SDK facade is consumed by out-of-tree Go callers, but the existing
hand-maintained stability test cannot reliably detect every removed export or
incompatible signature change. This adds a mechanical comparison against the
latest stable release.
Fixes: #2018
Related: #1891, #2016, #2019
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/server)pkg/recipe)pkg/bundler,pkg/component/*)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)Implementation Notes
apidiff, then comparespkg/client/v1with the latestreachable stable tag in a temporary detached worktree.
acknowledged for the active baseline. Malformed, duplicate, mismatched, and
stale acknowledgements fail closed.
go-testaction backward-compatible by making the API-diffinput optional; AICR qualification always supplies the pin and runs the gate.
tracked by sdk: reconcile facade alias state and semver contract language #2019.
Testing
unset GITLAB_TOKEN make qualifyPassed. This includes race-enabled tests, coverage, lint, e2e, vulnerability
scan, license checks, and the new API-diff decision and tool-version tests.
Risk Assessment
Rollout notes: Contributors should rerun
make tools-setupand use a clonewith full tag history. Existing cross-repository
go-testconsumers remaincompatible.
Checklist
make testwith-race)make lint)git commit -S) — GPG signing info