-
-
Notifications
You must be signed in to change notification settings - Fork 628
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
An --eager option for BootstrapJvmTools. #5336
Conversation
Forces the bootstrap task to resolve all known tools eagerly instead of lazily. Useful, e.g., for creating warmed-up Pants workspaces in Docker images.
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.
Thanks, great idea!
if self.get_options().eager: | ||
for scope, callbacks_by_key in callback_product_map.items(): | ||
for key, callback in callbacks_by_key.items(): | ||
self.context.log.info('Eagerly resolving {} for scope {}.'.format(key, scope)) |
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.
Rather than including eager
in the log message, maybe put eager resolution under a workunit? Would have the advantage of making it easier to track.
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.
I.e., a single workunit that contains all the resolution workunits? That works.
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.
Done!
CI passes except for waiting for OSX shard. Merging. |
Forces the bootstrap task to resolve all known tools eagerly instead of lazily. Useful, e.g., for creating warmed-up Pants workspaces in Docker images.
Forces the bootstrap task to resolve all known tools eagerly
instead of lazily.
Useful, e.g., for creating warmed-up Pants workspaces in
Docker images.