-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Remove --experimental_worker_allow_json_protocol flag. Worker protocol over JSON is now a permanent feature. #13607
Conversation
@@ -46,16 +46,6 @@ | |||
}) | |||
public Void experimentalPersistentJavac; | |||
|
|||
@Option( |
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.
You need to move the flag to the graveyard, or any Bazel invocation passing that flag will fail. Also, just removing a flag that defaults to false and switching the effective value to true at the same time is a bad idea: Anyone with a setup that doesn't work with the flag set would start getting failures that they can't avoid with a flag any more. So to start with, just flip the default to true.
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.
my thought here was that since this was an undocumented flag for an alpha feature removing it would be ok, especially if that's in the 5.x release not the 4.x release. Also flipping the default wouldn't change much AFAICT since workers can only support 1 protocol at once, so flipping it back to false wouldn't be super useful for folks, still happy to make that change if you think we should, but that's why I just deleted it
It's fair to remove an experimental flag, but I prefer giving users a bit of notice. What bothers me about this flag is exactly that there is no way to negotiate with a worker which protocol to use. If a worker implementation changes from one to the other, there's a real risk of protocol mismatch. But then a global flag doesn't help much, since it would also require other workers to support both. I'm currently doing a refactoring of the graveyards, I'll flip and graveyard this flag afterwards. |
0aa7483
to
ce9e21b
Compare
Based on the discussion here bazelbuild#13607 we want to flip this and leave it around temporarily, but there are also some refactorings coming around how to do that. This flips the value now so it can be used without the flag sooner in rolling releases.
Yea workers only being able to support 1 is interesting, but I guess the expectation is users shouldn't need to know which protocol a worker uses anyways? Either way I submitted #13745 just to do the flip now, I opted not to move it around further given your comment about refactoring the graveyard logic |
In retrospect, we should be clearer in the description of this kind of PR. It does not remove the feature enabled by experimental_worker_allow_json_protocol. It just removes the flag and makes the feature permanent. When looking at revision history, it will be easier to understand if phrased that way. |
Now that this feature is flipped I'm less worried about this flag existing and just doing nothing, there's no reason to turn it off. I assumed at this point we might want to give users a bit just so the flag doesn't start erroring since it was so recently flipped. |
I'm beginning a quest to remove as many unneeded flags as possible from Bazel over the next year. We just have too many. But, that's just like my opinion. |
I create #14679 |
Based on the discussion here bazelbuild#13607 we want to flip this and leave it around temporarily, but there are also some refactorings coming around how to do that. This flips the value now so it can be used without the flag sooner in rolling releases. Closes bazelbuild#13745. PiperOrigin-RevId: 423831532 (cherry picked from commit 9e16a64)
Based on the discussion here #13607 we want to flip this and leave it around temporarily, but there are also some refactorings coming around how to do that. This flips the value now so it can be used without the flag sooner in rolling releases. Closes #13745. PiperOrigin-RevId: 423831532 (cherry picked from commit 9e16a64) Co-authored-by: Keith Smiley <keithbsmiley@gmail.com>
Closes #13599