-
-
Notifications
You must be signed in to change notification settings - Fork 643
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
global remote execution mode is broken for bootstrap stage #17262
Comments
"Bootstrap" uses a pants/src/python/pants/init/options_initializer.py Lines 64 to 82 in f16e9d0
DynamicRemoteOptions.disabled() line there.
|
@stuhood it looks like that only impacts our Rust values, but it does not overwrite the values of pants/src/python/pants/init/plugin_resolver.py Lines 146 to 166 in 73f97f7
This is an issue because we now determine whether to use RE from I think we have two fixes:
Suggestions? |
There is a pattern of adding static pants/src/python/pants/option/global_options.py Lines 1838 to 1919 in be00ed5
... but they're used purely by convention. In this case that might look like calling: GlobalOptions.resolve_remote_execution(global_options, dynamic_remote_options) in a @rule .
There isn't a way to "overlay" the pants/src/python/pants/option/ranked_value.py Lines 12 to 20 in be00ed5
A hacky way to accomplish something similar would be to essentially convert the |
Thanks for the feedback!
The issue is we would need in the rule to still know whether we're in the plugin resolver or not. Generally, we'd want to use But at that point, maybe it's easier to have some other sentinel mechanism so that these 3 relevant rules can check if they're in the plugin resolver and change their logic accordingly? |
@stuhood thoughts on how we could know inside |
Anything can be injected as a singleton without a lot of fanfare in |
@stuhood it looks like this is still an issue, right? I thought I had seen you fix something related, but can't find it. |
#17135 needs to run in local execution mode when the bootstrap stage is happening. Otherwise we get:
I'm not sure how to know it's the bootstrap stage.
The text was updated successfully, but these errors were encountered: