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
726cd4f9
Commit
726cd4f9
authored
Oct 14, 2021
by
Alessio Caiazza
Committed by
Quang-Minh Nguyen
Oct 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run workhorse-gitaly integration tests w/out docker
parent
82fc506e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
8 deletions
+32
-8
.gitlab/ci/workhorse.gitlab-ci.yml
.gitlab/ci/workhorse.gitlab-ci.yml
+3
-7
workhorse/Makefile
workhorse/Makefile
+29
-1
No files found.
.gitlab/ci/workhorse.gitlab-ci.yml
View file @
726cd4f9
...
...
@@ -9,15 +9,11 @@ workhorse:verify:
.workhorse:test:
extends
:
.workhorse:rules:workhorse
services
:
-
name
:
registry.gitlab.com/gitlab-org/build/cng/gitaly:master-ubi8
# Disable the hooks so we don't have to stub the GitLab API
command
:
[
"
/usr/bin/env"
,
"
GITALY_TESTING_NO_GIT_HOOKS=1"
,
"
/scripts/process-wrapper"
]
alias
:
gitaly
variables
:
GITALY_ADDRESS
:
"
tcp://
gitaly
:8075"
GITALY_ADDRESS
:
"
tcp://
127.0.0.1
:8075"
stage
:
test
needs
:
[]
needs
:
-
setup-test-env
script
:
-
go version
-
apt-get update && apt-get -y install libimage-exiftool-perl
...
...
workhorse/Makefile
View file @
726cd4f9
...
...
@@ -13,6 +13,8 @@ else
BUILD_TIME
:=
$(
shell
date
-u
"
$(DATE_FMT)
"
)
endif
GOBUILD
:=
go build
-ldflags
"-X main.Version=
$(VERSION_STRING)
-X main.BuildTime=
$(BUILD_TIME)
"
GITALY
:=
tmp/tests/gitaly/_build/bin/gitaly
GITALY_PID_FILE
:=
gitaly.pid
EXE_ALL
:=
gitlab-resize-image gitlab-zip-cat gitlab-zip-metadata gitlab-workhorse
INSTALL
:=
install
BUILD_TAGS
:=
tracer_static tracer_static_jaeger continuous_profiler_stackdriver
...
...
@@ -63,7 +65,15 @@ install: $(EXE_ALL)
.PHONY
:
test
test
:
prepare-tests
$(
call
message,
$@
)
@
go
test
-tags
"
$(BUILD_TAGS)
"
./...
go
test
-tags
"
$(BUILD_TAGS)
"
./...
;
\
status
=
"
$$
?"
;
\
if
[
-f
"
$(GITALY_PID_FILE)
"
]
;
then
\
kill
-9
$$
(
cat
$(GITALY_PID_FILE)
)
;
\
rm
$(GITALY_PID_FILE)
;
\
else
\
echo
"Gitaly integration test not running"
;
\
fi
;
\
exit
"
$$
status"
@
echo
SUCCESS
.PHONY
:
clean
...
...
@@ -82,9 +92,27 @@ clean-build:
rm
-rf
$(TARGET_DIR)
.PHONY
:
prepare-tests
prepare-tests
:
run-gitaly
prepare-tests
:
testdata/data/group/test.git $(EXE_ALL)
prepare-tests
:
testdata/scratch
.PHONY
:
run-gitaly
run-gitaly
:
gitaly.pid
$(GITALY_PID_FILE)
:
gitaly.toml
@
{
\
if
[
-z
"
$
${
GITALY_ADDRESS
+x
}
"
]
;
then
\
echo
"To run gitaly integration tests set GITALY_ADDRESS=tcp://127.0.0.1:8075"
;
\
else
\
cd
..
;
\
GITALY_TESTING_NO_GIT_HOOKS
=
1
GITALY_PID_FILE
=
$(GITALY_PID_FILE)
$(GITALY)
workhorse/gitaly.toml
;
\
fi
\
}
&
gitaly.toml
:
../tmp/tests/gitaly/config.toml
sed
-e
's/^socket_path.*$$/listen_addr = "0.0.0.0:8075"/'
\
$<
>
$@
testdata/data/group/test.git
:
$(
call
message,
$@
)
git clone
--quiet
--bare
https://gitlab.com/gitlab-org/gitlab-test.git
$@
...
...
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