Skip to content

Create and upload a package of Gitaly executables

Nao Hashizume requested to merge 2127-precompile-gitaly into main

What does this merge request do and why?

Create and upload a package of Gitaly executables in the bin directory

Compress the Gitaly executables in the bin directory into a package and upload it to the package registry, so users can download and use them without needing to recompile Gitaly.

Related to #2127 (closed)

Screenshots

Setting gitaly.skip_compile to true reduced the time to run make gitaly-update from 15.11 seconds to 6.3 seconds, making it 8.81 seconds faster.

Without gitaly.skip_compile With gitaly.skip_compile
Screenshot_2024-08-21_at_1.13.55_AM Screenshot_2024-08-21_at_1.18.57_AM

How to set up and validate locally

  1. Rerun the compile:gitaly job and make sure Gitaly executables are uploaded to the Package Registry.

  2. Download Gitaly executables by running:

    gdk config set gitaly.skip_compile true
    make gitaly-update
    gdk restart gitaly
    gdk tail gitaly

This should not recompile Gitaly 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

Loading