Skip to content
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

Merged
merged 2 commits into from
Jan 18, 2018

Conversation

benjyw
Copy link
Sponsor Contributor

@benjyw benjyw commented Jan 17, 2018

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.
Copy link
Sponsor Member

@stuhood stuhood left a 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))
Copy link
Sponsor Member

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.

Copy link
Sponsor Contributor Author

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.

Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

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

Done!

@benjyw
Copy link
Sponsor Contributor Author

benjyw commented Jan 18, 2018

CI passes except for waiting for OSX shard. Merging.

@benjyw benjyw merged commit 547578d into pantsbuild:master Jan 18, 2018
@benjyw benjyw deleted the eager-jvm-tool-bootstrap branch January 18, 2018 01:37
stuhood pushed a commit that referenced this pull request Jan 18, 2018
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants