-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System property 'jibSerialize' causes build steps to be executed serially #682
Conversation
@@ -76,6 +76,12 @@ public StepsRunner( | |||
this.sourceFilesConfiguration = sourceFilesConfiguration; | |||
this.baseLayersCache = baseLayersCache; | |||
this.applicationLayersCache = applicationLayersCache; | |||
|
|||
ExecutorService executorService = | |||
System.getProperty("jibSerialized") == null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we check for a specific value of jibSerialized
for the serialized case (to avoid someone accidentally using serialized when not intentional)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turned it into a boolean property that must be true
.
ExecutorService executorService = | ||
System.getProperty("jibSerialized") == null | ||
? Executors.newCachedThreadPool() | ||
: MoreExecutors.newDirectExecutorService(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and simple :)
#685 addresses some of the log interleaving. So this is ready. |
/me grumbles about having to continually merge head |
@@ -76,6 +76,12 @@ public StepsRunner( | |||
this.sourceFilesConfiguration = sourceFilesConfiguration; | |||
this.baseLayersCache = baseLayersCache; | |||
this.applicationLayersCache = applicationLayersCache; | |||
|
|||
ExecutorService executorService = | |||
Boolean.getBoolean("jibSerialized") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@briandealwis is this supposed to be jibSerialize
or jibSerialized
? If the latter, please update the title of the PR. Can you also update the CHANGELOG
files?
Hmm, it should be |
For #681. If system property
jibSerialize
is set then we run all build steps on the main thread.Our lifecycle messages don't change however — I still see lifecycle messages before any HTTP traffic begins, and we still have some operations happening in parallel (you can see requests for
distroless/java
and toregistry.hub.docker
), suggesting that we still have some parallelism happening without the StepsRunner.