Skip to content

sdk: report the server SDK version - #54

Merged
villagesql-adam merged 1 commit into
mainfrom
adam/sdk-version-constant
Sep 2, 2026
Merged

villagesql-adam merged 1 commit into
mainfrom
adam/sdk-version-constant

Conversation

@villagesql-adam

Copy link
Copy Markdown
Member

AI=CLAUDE

AI=CLAUDE
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@villagesql-adam
villagesql-adam force-pushed the adam/sdk-version-constant branch from a7c098e to 540545e Compare September 1, 2026 00:15
Comment thread villagesql-sys/src/lib.rs
/// against a real server build, so a header change that needs this bump shows up as a
/// failing job. A server release that changes no header does not, so check this value
/// when the SDK starts tracking a new release.
pub const SDK_VERSION: vef_version_t = vef_version_t {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does this mean that we want to keep the versions in sync between C++ and rust SDKs? We can do that from now on.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, I think they should be in sync. Would that mean bumping C++ to 0.0.6 or changing Rust to 0.0.4?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I believe the C++ sdk version was frozen at 0.0.4 on purpose so I don't think that one should be bumped to 0.0.6. If we make the Rust version 0.0.4 though that would break the new CI job because there's no such thing as release/0.0.4 in the server repo.

Maybe, the one version value could be split into two values? There could be a 0.0.4 version value for registration that matches the C++ SDK and it stays frozen until the C++ SDK is also bumped up so those stay synced. And then there could be a separate version value that reports 0.0.6 for the CI header check to check that headers are coming from the proper server release?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I thought the intent was for the C++ SDK to track the server release, as we build it at the same time as the server? So it should be 0.0.6? Like here: https://github.com/villagesql/villagesql-server/releases/tag/release%2F0.0.6

@villagesql-adam
villagesql-adam merged commit 5871cb7 into main Sep 2, 2026
23 checks passed
@villagesql-adam
villagesql-adam deleted the adam/sdk-version-constant branch September 2, 2026 15:23
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.

3 participants