Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c079e04e
Commit
c079e04e
authored
May 20, 2021
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: Introduce a cache for Gitaly binaries
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
a26b5814
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
.gitlab/ci/global.gitlab-ci.yml
.gitlab/ci/global.gitlab-ci.yml
+23
-0
scripts/gitaly-test-build
scripts/gitaly-test-build
+6
-1
No files found.
.gitlab/ci/global.gitlab-ci.yml
View file @
c079e04e
...
...
@@ -36,6 +36,27 @@
<<
:
*gitaly-ruby-gems-cache
policy
:
push
# We want to rebuild the cache from scratch to ensure stale dependencies are cleaned up.
.gitaly-binaries-cache
:
&gitaly-binaries-cache
key
:
files
:
-
GITALY_SERVER_VERSION
prefix
:
"
gitaly-binaries"
paths
:
-
tmp/tests/gitaly/_build/bin/
-
tmp/tests/gitaly/config.toml
-
tmp/tests/gitaly/gitaly2.config.toml
-
tmp/tests/gitaly/internal/
-
tmp/tests/gitaly/internal_gitaly2/
-
tmp/tests/gitaly/internal_sockets/
-
tmp/tests/gitaly/Makefile
-
tmp/tests/gitaly/praefect.config.toml
-
tmp/tests/gitaly/ruby/
policy
:
pull
.gitaly-binaries-cache-push
:
&gitaly-binaries-cache-push
<<
:
*gitaly-binaries-cache
policy
:
push
# We want to rebuild the cache from scratch to ensure stale dependencies are cleaned up.
.go-pkg-cache
:
&go-pkg-cache
key
:
"
go-pkg-v1"
paths
:
...
...
@@ -97,12 +118,14 @@
cache
:
-
*ruby-gems-cache
-
*gitaly-ruby-gems-cache
-
*gitaly-binaries-cache
-
*go-pkg-cache
.setup-test-env-cache-push
:
cache
:
-
*ruby-gems-cache-push
-
*gitaly-ruby-gems-cache-push
-
*gitaly-binaries-cache-push
-
*go-pkg-cache-push
.rails-cache
:
...
...
scripts/gitaly-test-build
View file @
c079e04e
...
...
@@ -15,7 +15,12 @@ class GitalyTestBuild
def
run
set_bundler_config
# If we have the binaries from the cache, we can skip building them again
if
File
.
exist?
(
tmp_tests_gitaly_bin_dir
)
GitalySetup
::
LOGGER
.
debug
"Gitaly binary already built. Skip building...
\n
"
else
abort
'gitaly build failed'
unless
build_gitaly
end
ensure_gitlab_shell_secret!
check_gitaly_config!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment