Repository navigation
Revert "Clean up version warning" - #5310
Conversation
This reverts commit 54a7795.
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
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 packagedstellar-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. |
Reverts commit 54a7795 ("Clean up version warning") and also bumps env for a recording change that does not affect core.
That commit taught
getStellarCoreMajorReleaseVersionto treat the packaged version stringstellar-core X.Y.Z (<hash>)as a release build, and enforce it againstCURRENT_LEDGER_PROTOCOL_VERSIONincheckStellarCoreMajorVersionProtocolIdentity. 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 is27) gets treated as a release build, and the identity check throws at startup instead of just warning — breaking CI onp27-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.