-
Notifications
You must be signed in to change notification settings - Fork 80
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
Completes the prototype implementation of Bazel persistent worker mode #1055
Conversation
cb390d7
to
ee5eafe
Compare
Note. CI fails on |
ee5eafe
to
53d847d
Compare
Thanks @aherrmann for the review! Hopefully, all the comments are addressed. I also changed the implementation of the worker switch to use |
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.
Great work, thank you! Only one minor comment about the rule_type
tag.
I've tested this on my machine and bazel test --define use_worker=True --worker_sandboxing //...
passes.
@aherrmann thanks!
Yes, if you enable worker dependencies -- it's all good! But if you don't, plain |
Yes, same for me. That makes sense as |
Thanks for checking! It doesn't seem entirely reasonable to me to build non-test targets during |
143ded4
to
35a2b55
Compare
Andreas, I tried to address all your comments. What do you think? |
I tried to use “Apply suggestion” button for the first time in my life to see what happens. I wonder if it's possible to squash the resulting tiny commit, on merge. |
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.
AFAIK mergify is not configured to squash-merge.
Thanks for addressing the comments. Looks good to me.
I'll squash manually then. What's the proper way to proceed after that? Add the merge-queue label? |
115afbd
to
fea9482
Compare
The netlify failure doesn't seem related to the PR. I'm confused… |
…e support in rules_haskell Started in 132d0af. This commit imports worker's code and sets everything to make the persistent worker mode available to a regular `rules_haskell` user. The worker code lives in `tools/worker`. The mode is supported in ghc_nixpkgs-toolchain only, at this point.
7f45c59
to
89b6d14
Compare
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.
Hi @ulysses4ever!
I know, it's been a while... but do still have the worker.proto file laying around somewhere? It would be nice if you could provide it to us. 😄
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.
Hey! I'll look into it today. I'm surprised that something is missing: I'd expect that any missing file should be easily generated or downloaded or something... But it's been four years since I touched it so I may very well be wrong.
It's kinda ironic that a server machine I was using for it (and which I was using since) was recently (this July) decommissioned, and I had to move to another one, and in the process I nuked a lot of stuff. Probably including the playground for this project. But let's be optimistic and wait until I try to look it up locally.
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.
Oh, I see, it's the generated file that I committed instead of the source. Shame on me!
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.
All good. I developed this code as a separate repo first: https://github.com/tweag/bazel-worker/ (should have been a git submodule, perhaps, but they're such a pain...) and it does have worker.proto
:
Note that it's a file provided by Bazel itself:
It's fun to see the diff between the two: they extended the protocol quite a bit over the years.
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.
Ah, nice. Thank you for the swift response! 💯
Started in 132d0af. This commit imports worker's code and sets everything to make
the persistent worker mode available to a regular
rules_haskell
user.The worker code lives in
tools/worker
.The mode is supported in ghc_nixpkgs-toolchain only, at this point.