Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-12583

Bake the Githash and other info into the binaries

Details

    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

      Attachments

        Activity

          alvinr Alvin Richards (Inactive) created issue -
          alvinr Alvin Richards (Inactive) made changes -
          Field Original Value New Value
          Description h1. Problem

          h1. 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

          h1. 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.).

          h1. Workaround
          None
          h1. Problem
          From a given install (tarball, RPM, DEB) you only have the version information available, not the GitHash the binaries were built from.

          h1. 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

          h1. 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.).

          h1. Workaround
          None
          serg Sergei Golubchik made changes -
          Fix Version/s 10.3 [ 22126 ]
          valerii Valerii Kravchuk made changes -
          Support case ID 14007 14007 15247
          julien.fritsch Julien Fritsch made changes -
          Assignee Julien Fritsch [ julien.fritsch ]
          julien.fritsch Julien Fritsch made changes -
          Assignee Julien Fritsch [ julien.fritsch ]
          serg Sergei Golubchik made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          serg Sergei Golubchik made changes -
          Assignee Vladislav Vaintroub [ wlad ]
          wlad Vladislav Vaintroub made changes -
          Fix Version/s 10.3.2 [ 22533 ]
          Fix Version/s 10.3 [ 22126 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 80457 ] MariaDB v4 [ 133219 ]
          mariadb-jira-automation Jira Automation (IT) made changes -
          Zendesk Related Tickets 184550 200877

          People

            wlad Vladislav Vaintroub
            alvinr Alvin Richards (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.