Repository navigation
Use CEPH_VENDOR_RELEASE define to append vendor release version to the version string - #66730
Conversation
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
@Naveenaidu @yaarith what's going on with this PR? |
|
I believe we're still waiting for an ack from the build team about the new approach, @Naveenaidu can specify further details. |
|
Hi @bigjust can we please get any update on the status of the work from the build team. As discussed, there were some changes required in the infrastructure to support building the ceph builds using define/compile time flags. This PR is blocked on that work |
|
@Naveenaidu Ack, this works for us. We're going to patch the ability to use small flavor RPMs to distinct builds downstream while building ceph once, and have started work on that, but nothing will require changes here. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
d7953d5 to
701da47
Compare
idryomov
left a comment
There was a problem hiding this comment.
The version output becomes
> ceph version
ceph version 8d7daada90 (98d7daada90c6585c6724f69793e804a5e23cb24) tentacle (dev - Debug) release 8.1.0
What about ceph --version? I don't think it's covered here because src/ceph.in doesn't have access to pretty_version_to_str().
Downstream builds need a way to identify their own release on top of
the upstream ceph version. Add an optional CEPH_VENDOR_RELEASE string
define.
When it is non-empty, pretty_version_to_str() appends:
" release <CEPH_VENDOR_RELEASE>" to the version string.
It defaults to "", which leaves the output unchanged.
Signed-off-by: Naveen Naidu <[email protected]>
Expose CEPH_VENDOR_RELEASE as a CMake cache variable so that downstream builds can set the vendor release with -DCEPH_VENDOR_RELEASE=<release>. Signed-off-by: Naveen Naidu <[email protected]>
`ceph --version` is printed by the python CLI from values substituted at build time, so it does not go through pretty_version_to_str() and was missing the vendor release that every other binary's --version now shows. Substitute CEPH_VENDOR_RELEASE into ceph.in and append " release <CEPH_VENDOR_RELEASE>" when it is non-empty. Signed-off-by: Naveen Naidu <[email protected]>
701da47 to
4b4f070
Compare
@idryomov Thanks for much for catching this. This missed my mind. I have now implemented it! |
|
jenkins test make check arm64 |
|
jenkins test windows |
Thanksss for the review! Regarding a new command, during previous RADOS call discussions - the general consensus was that we would not like to create a new command for maintainability issues |
|
jenkins test windows |
|
This PR has been added to wip-bharath15-testing-20261014.082226-main. |
Closes: https://tracker.ceph.com/issues/76134
This change introduces a build-time mechanism that allows vendors or downstream distributions to append their release version information to the output of the
ceph versioncommand. The goal is to make downstream or vendor-specific build metadata visible directly in the version string, without altering the upstream version semantics.This PR adds a new optional build-time variable,
CEPH_VENDOR_RELEASE, which may be specified during the CMake configuration phase.When set, the value of
CEPH_VENDOR_RELEASEis appended to theceph versionoutput as areleasesuffix. When unset (the default), the version output remains unchanged from upstream.This approach treats the vendor release as build metadata, ensuring the version string is fully determined at compile time and does not depend on runtime configuration.
For eg:
If Ceph is built with the following CMake option:
The version output becomes
The same suffix is reflected consistently for
ceph versionsContribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.