Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add --build-only option to complement.sh to prevent actually running Complement. #13158

Merged
merged 4 commits into from
Jul 7, 2022

Conversation

reivilibre
Copy link
Contributor

It's a dual to the -f option added in #13143.

A potential use of this flag would be to make CI only build the image once rather than once per matrix run.
That would save us some CPU cycles on the workers (seems prudent considering they sometimes are all busy).

@reivilibre reivilibre marked this pull request as ready for review July 4, 2022 11:01
@reivilibre reivilibre requested a review from a team as a code owner July 4, 2022 11:01
@reivilibre reivilibre marked this pull request as draft July 4, 2022 11:01
@reivilibre reivilibre force-pushed the rei/complement_build_only branch from 62715c5 to 3f203e1 Compare July 4, 2022 11:05
Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
@reivilibre reivilibre force-pushed the rei/complement_build_only branch from 3f203e1 to 1b86860 Compare July 6, 2022 15:42
@reivilibre reivilibre marked this pull request as ready for review July 6, 2022 15:42
Copy link
Contributor

@squahtx squahtx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Comment on lines 47 to 53
-f, --fast
Skip rebuilding the docker images, and just use the most recent
'complement-synapse:latest' image

--build-only
Only build the Docker images. Don't actually run Complement.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to document what happens when you have both --fast and --build-only? Not that you'd ever want to.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll write that they conflict.

@reivilibre reivilibre enabled auto-merge (squash) July 7, 2022 13:54
@reivilibre reivilibre merged commit 0c95313 into develop Jul 7, 2022
@reivilibre reivilibre deleted the rei/complement_build_only branch July 7, 2022 14:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants