Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
Description
Problem
From a given install (tarball, RPM, DEB) you only have the version information available, not the GitHash the binaries were built from.
Solution
Compile the following into the binaries
- GitHash the build was from
- Buildbot build number
This info should be available as
- system variable (e.g. VERSION_GITHASH) - Must
- from output of 'mysql -v' (but that's just the githash of mysql and not mysqld) - Should
- from output of 'mysqld --verbose --help' - Must
Rationale
Supportability. Given a random build a user may have, there is no simple mechanism to track back to the GitHash of the commit the code was built with. This is especially important for anybody with a custom build (e.g. feature testing, customer patch etc.).
Workaround
None
branch does not matter really, git commit hash describes the entire source code repository "as of" when this hash was HEAD.
I can branch current 10.1 and push it as bb-10.1-wlad, and yes it will have the same top git hash. But it does not matter, because the source is exactly the same source as 10.1