Skip to content

Create and upload a package of GitLab Workhorse executables

Nao Hashizume requested to merge 2127-precompile-gitlab-workhorse into main

What does this merge request do and why?

Create and upload a package of GitLab Workhorse executables

Compress GitLab Workhorse executables into a package and upload it to the package registry, so users can download and use them without needing to recompile them.

Related to #2127

Screenshots

Setting workhorse.skip_compile to true reduced the time to run make gitlab-workhorse-update from 19.56 seconds to 7.63 seconds, making it 11.93 seconds faster.

Without workhorse.skip_compile With workhorse.skip_compile
Screenshot_2024-08-07_at_4.50.06_PM Screenshot_2024-08-07_at_5.16.17_PM

How to set up and validate locally

  1. Rerun the compile:gitlab-workhorse job and make sure GitLab Workhorse executables are uploaded to the Package Registry.

  2. Download GitLab Workhorse executables by running:

    gdk config set workhorse.skip_compile true
    make gitlab-workhorse-update
    gdk restart gitlab-workhorse
    gdk tail gitlab-workhorse

This should not recompile GitLab Workhorse and make sure it starts successfully without errors.

Impacted categories

The following categories relate to this merge request:

Merge request checklist

  • This change is backward compatible. If not, please include steps to communicate to our users.
  • Tests added for new functionality. If not, please raise an issue to follow-up.
  • Documentation added/updated, if needed.
  • Announcement added, if change is notable.
  • gdk doctor test added, if needed.
  • Add the ~highlight label if this MR should be included in the CHANGELOG.md.
Edited by Nao Hashizume

Merge request reports