Skip to content

Revert "Clean up version warning" - #5310

Merged
sisuresh merged 2 commits into
stellar:masterfrom
sisuresh:fix-ci
Jun 2, 2026
Merged

sisuresh merged 2 commits into
stellar:masterfrom
sisuresh:fix-ci

Conversation

@sisuresh

@sisuresh sisuresh commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

Reverts commit 54a7795 ("Clean up version warning") and also bumps env for a recording change that does not affect core.

That commit taught getStellarCoreMajorReleaseVersion to treat the packaged version string stellar-core X.Y.Z (<hash>) as a release build, and enforce it against CURRENT_LEDGER_PROTOCOL_VERSION in checkStellarCoreMajorVersionProtocolIdentity. The problem is that release and non-release package builds do not actually use differentiated version strings — neither the package builder nor the packages themselves distinguish them. So a non-release package (e.g. one built during a protocol bump, where the packaged major lags the protocol: stellar-core 26.1.1 (<hash>) while the protocol is 27) gets treated as a release build, and the identity check throws at startup instead of just warning — breaking CI on p27-bump.

Reverting restores the prior warn-only behavior for packaged builds, where only vX.Y.Z-style tags are enforced against the protocol version.

We should probably fix the underlying issue in the pipeline so release vs non-release packages carry distinguishable version strings, and then the packaged-build check can be reintroduced. It is unclear what else currently depends on (or would break from changing) the package version string format, so that needs investigation before re-landing.

Copilot AI review requested due to automatic review settings June 2, 2026 20:17

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a47a1a91d2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/main/ApplicationUtils.cpp Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR reverts the recent change that treated packaged version strings (e.g. stellar-core X.Y.Z (<hash>)) as “release builds” for the purposes of protocol/major-version identity checks. The intent is to restore the prior behavior where only true release-tag-like versions are enforced against CURRENT_LEDGER_PROTOCOL_VERSION, and non-tagged/packaged builds only emit a warning—unblocking CI during protocol bumps where the packaged major can lag the protocol.

Changes:

  • Restricts getStellarCoreMajorReleaseVersion() to recognize only tag-like version strings (no packaged stellar-core X.Y.Z (<hash>) parsing).
  • Updates the startup identity check messaging behavior for non-release versions.
  • Adjusts unit tests for major-version extraction.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/main/test/ApplicationUtilsTests.cpp Updates tests for which version-string formats are treated as “release-tagged”.
src/main/main.cpp Updates the warn-only path for non-release version strings in the startup protocol identity check.
src/main/ApplicationUtils.cpp Simplifies the regex used to extract a major version from a release-tag-like version string.

Comment thread src/main/main.cpp Resolved
Comment thread src/main/ApplicationUtils.cpp Resolved
Comment thread src/main/test/ApplicationUtilsTests.cpp Resolved
anupsdf
anupsdf previously approved these changes Jun 2, 2026
@sisuresh
sisuresh added this pull request to the merge queue Jun 2, 2026
Merged via the queue into stellar:master with commit 7696c06 Jun 2, 2026
54 checks passed
@sisuresh
sisuresh deleted the fix-ci branch June 2, 2026 23:27
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.

4 participants