Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
0c95313a
Unverified
Commit
0c95313a
authored
2 years ago
by
reivilibre
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add --build-only option to complement.sh to prevent actually running Complement. (#13158)
parent
bb20113c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/13158.misc
+1
-0
1 addition, 0 deletions
changelog.d/13158.misc
scripts-dev/complement.sh
+18
-3
18 additions, 3 deletions
scripts-dev/complement.sh
with
19 additions
and
3 deletions
changelog.d/13158.misc
0 → 100644
+
1
−
0
View file @
0c95313a
Add support to `complement.sh` for skipping the docker build.
This diff is collapsed.
Click to expand it.
scripts-dev/complement.sh
+
18
−
3
View file @
0c95313a
...
@@ -44,8 +44,14 @@ usage() {
...
@@ -44,8 +44,14 @@ usage() {
Usage:
$0
[-f] <go test arguments>...
Usage:
$0
[-f] <go test arguments>...
Run the complement test suite on Synapse.
Run the complement test suite on Synapse.
-f Skip rebuilding the docker images, and just use the most recent
-f, --fast
'complement-synapse:latest' image
Skip rebuilding the docker images, and just use the most recent
'complement-synapse:latest' image.
Conflicts with --build-only.
--build-only
Only build the Docker images. Don't actually run Complement.
Conflicts with -f/--fast.
For help on arguments to 'go test', run 'go help testflag'.
For help on arguments to 'go test', run 'go help testflag'.
EOF
EOF
...
@@ -53,6 +59,7 @@ EOF
...
@@ -53,6 +59,7 @@ EOF
# parse our arguments
# parse our arguments
skip_docker_build
=
""
skip_docker_build
=
""
skip_complement_run
=
""
while
[
$#
-ge
1
]
;
do
while
[
$#
-ge
1
]
;
do
arg
=
$1
arg
=
$1
case
"
$arg
"
in
case
"
$arg
"
in
...
@@ -60,9 +67,12 @@ while [ $# -ge 1 ]; do
...
@@ -60,9 +67,12 @@ while [ $# -ge 1 ]; do
usage
usage
exit
1
exit
1
;;
;;
"-f"
)
"-f"
|
"--fast"
)
skip_docker_build
=
1
skip_docker_build
=
1
;;
;;
"--build-only"
)
skip_complement_run
=
1
;;
*
)
*
)
# unknown arg: presumably an argument to gotest. break the loop.
# unknown arg: presumably an argument to gotest. break the loop.
break
break
...
@@ -106,6 +116,11 @@ if [ -z "$skip_docker_build" ]; then
...
@@ -106,6 +116,11 @@ if [ -z "$skip_docker_build" ]; then
echo_if_github
"::endgroup::"
echo_if_github
"::endgroup::"
fi
fi
if
[
-n
"
$skip_complement_run
"
]
;
then
echo
"Skipping Complement run as requested."
exit
fi
export
COMPLEMENT_BASE_IMAGE
=
complement-synapse
export
COMPLEMENT_BASE_IMAGE
=
complement-synapse
extra_test_args
=()
extra_test_args
=()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment