Skip to content

ci: check protocol version drift across all SDKs - #2568

Open
xianjianlf2 wants to merge 1 commit into
github:mainfrom
xianjianlf2:fix/protocol-version-drift-check
Open

ci: check protocol version drift across all SDKs#2568
xianjianlf2 wants to merge 1 commit into
github:mainfrom
xianjianlf2:fix/protocol-version-drift-check

Conversation

@xianjianlf2

Copy link
Copy Markdown
Contributor

Fixes #1165.

Codegen Check explicitly validates only Java's protocol constant, and changes to the other SDK constants do not trigger it. Extend the check to all six SDKs and include the constants plus the protocol-version generator in the workflow paths. A mismatch or missing declaration produces a file-specific annotation before installing codegen dependencies.

This validates the declared values against sdk-protocol-version.json without regenerating the files. It extends the existing Java consistency check and stays independent of the generator template fixes in #2554; generated source and language-specific declaration shapes remain unchanged.

Validation: parsed the workflow and executed its exact Node check in temporary fixtures for 15 cases: valid baseline, six individual version mismatches, six missing declarations, a source-version bump, and invalid source metadata. Verified all six constant paths and the generator trigger the workflow. Actionlint 1.7.7 and git diff --check passed. The full schema-generation workflow was not run locally. Codex assisted with this change and validation.

@xianjianlf2
xianjianlf2 requested a review from a team as a code owner September 8, 2026 09:01
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.

Codegen Check workflow doesn't detect SDK protocol version drift

1 participant