Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add a version build-tag for non-release builds (#156) #157

Conversation

isaac-io
Copy link
Contributor

The build tag can be set during the build (using either the Makefile or the CMake). If it's not provided, and we're not in a release build, it will be calculated using the state of the git tree since the last release tag (for example, for this PR the build tag will be calculated as (main+17)-(156-build-add-a-build-tag-into-the-version-for-non-release-builds+1).

If the git tree state can not be determined, a question mark will be used instead.

@isaac-io isaac-io self-assigned this Sep 14, 2022
@isaac-io isaac-io linked an issue Sep 14, 2022 that may be closed by this pull request
@isaac-io isaac-io removed the request for review from Yuval-Ariel September 14, 2022 13:04
@isaac-io isaac-io force-pushed the 156-build-add-a-build-tag-into-the-version-for-non-release-builds branch 3 times, most recently from a6e4edd to 6620481 Compare September 15, 2022 08:10
@rtpro rtpro requested a review from assaf-speedb September 28, 2022 08:54
Copy link
Contributor

@rtpro rtpro left a comment

Choose a reason for hiding this comment

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

LGTM 👍

The build tag can be set during the build (using either the Makefile
or the CMake). If it's not provided, and we're not in a release build,
it will be calculated using the state of the git tree since the last
release tag (for example, for this PR the build tag will be calculated as
`(main+17)-(156-build-add-a-build-tag-into-the-version-for-non-release-builds+1)`.

If the git tree state can not be determined, a question mark will be
used instead.
@isaac-io isaac-io force-pushed the 156-build-add-a-build-tag-into-the-version-for-non-release-builds branch from 6620481 to cdb7415 Compare October 20, 2022 11:53
@isaac-io isaac-io force-pushed the main branch 3 times, most recently from 8c57b5d to b2f914c Compare October 26, 2022 13:37
@isaac-io isaac-io merged commit a624dd1 into main Nov 4, 2022
@isaac-io isaac-io deleted the 156-build-add-a-build-tag-into-the-version-for-non-release-builds branch November 4, 2022 10:28
isaac-io added a commit that referenced this pull request Nov 10, 2022
The changes in #157 were accidentally applied to the `GetRocksVersionAsString()`
function instead of the `GetSpeedbVersionAsString()` function. This replaced
the RocksDB patch number with the Speedb one, and added the build tag in
the wrong place.

Fix it by moving the logic to the intended function.
isaac-io added a commit that referenced this pull request Nov 10, 2022
The changes in #157 were accidentally applied to the `GetRocksVersionAsString()`
function instead of the `GetSpeedbVersionAsString()` function. This replaced
the RocksDB patch number with the Speedb one, and added the build tag in
the wrong place.

Fix it by moving the logic to the intended function.
isaac-io added a commit that referenced this pull request Nov 12, 2022
The changes in #157 were accidentally applied to the `GetRocksVersionAsString()`
function instead of the `GetSpeedbVersionAsString()` function. This replaced
the RocksDB patch number with the Speedb one, and added the build tag in
the wrong place.

Fix it by moving the logic to the intended function.
Yuval-Ariel pushed a commit that referenced this pull request Nov 15, 2022
The changes in #157 were accidentally applied to the `GetRocksVersionAsString()`
function instead of the `GetSpeedbVersionAsString()` function. This replaced
the RocksDB patch number with the Speedb one, and added the build tag in
the wrong place.

Fix it by moving the logic to the intended function.
Yuval-Ariel added a commit that referenced this pull request Nov 23, 2022
The change set includes:
1) A header file that contains the Major, Minor, and Patch versions of speedb
as a macro, as well as a set of functions returning info about how/when/where
this version of speedb was created.

also includes all changes done on build_version.cc.in in the following commits:
1. version: remove superfluous build property
The `speedb_build_spdb_key` property is unused and was accidentally
imported as part of #1.

2.general: replace RocksDB references in strings with Speedb (#64)
This includes references in statuses as well as tools output.

3.build: add a version build-tag for non-release builds (#156)
The build tag can be set during the build (using either the Makefile
or the CMake). If it's not provided, and we're not in a release build,
it will be calculated using the state of the git tree since the last
release tag (for example, for this PR the build tag will be calculated as
`(main+17)-(156-build-add-a-build-tag-into-the-version-for-non-release-builds+1)`.
If the git tree state can not be determined, a question mark will be
used instead.
build_version: apply the build tag to the Speedb version string (#231)

4. The changes in #157 were accidentally applied to the `GetRocksVersionAsString()`
function instead of the `GetSpeedbVersionAsString()` function. This replaced
the RocksDB patch number with the Speedb one, and added the build tag in
the wrong place.
Fix it by moving the logic to the intended function.
Yuval-Ariel pushed a commit that referenced this pull request Nov 25, 2022
The changes in #157 were accidentally applied to the `GetRocksVersionAsString()`
function instead of the `GetSpeedbVersionAsString()` function. This replaced
the RocksDB patch number with the Speedb one, and added the build tag in
the wrong place.

Fix it by moving the logic to the intended function.
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.

build: add a build tag into the version for non-release builds
3 participants