-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
add bazel config file #48084
base: master
Are you sure you want to change the base?
add bazel config file #48084
Conversation
Can you elaborate more on the purpose of this change? |
Having a BAZEL.build and Here is a work-in-progress pull-request for our WPT test runner PoC: cloudflare/workerd#2585 We're dynamically generating a capnproto file inside bazel build step, that adds every file in Unfortunately, the only option for workerd repository is to have a floating patch on top of wpt repository, to have access to each glob file on the macro level of the build step. When To summarize, in order to iterate over the files inside a subfolder of WPT repository, we need to have |
I think this type of change would require a RFC. Right @jgraham ? |
At least there should be documentation somewhere in the repo what this is for |
Where do you suggest adding that? |
8d91c91
to
f70111e
Compare
I think this is ready to review. I've added all submodules in the project as well as a Github workflow to check the formatting and linting of the Bazel files. I appreciate if you could take a look. @jgraham @Ms2ger @jcscottiii @WeizhongX |
f70111e
to
cb48c30
Compare
cb48c30
to
cd6cdb2
Compare
4dea022
to
88395bc
Compare
88395bc
to
8a88493
Compare
From an admin perspective this seems like a very hard sell to me. In particular:
I tend to agree with @Ms2ger and @jcscottiii that some more discussion about requirements, preferably as part of an RFC, would be needed to accept this. Otherwise I'd suggest keeping this configuration in a different repo if possible. |
Thank you for the review @jgraham.
I can't think of a solution to this except: We can add a comment/warning to the files.
There is no particular maintenance cost, since all of the
It doesn't have to be. I just added it to make sure the formatting/linting is there. I can remove it, and we can assume good faith while reviewing pull-requests which is highly-unlikely. I am more than happy to open a RFC particularly for this change. |
One pattern that gets used quite often for this kind of thing is an "overlay" There's a good summary of this in this blogpost, with a concrete implementation being how Google used to apply bazel build files to LLVM: https://github.com/google/llvm-bazel. Because the build file is so simple, you could also use the |
Thinking some more, if the |
I'm currently working on adding WPT to Cloudflare workers, and it has been a little bit of pain to define filegroups and run a WPT test runner. I propose adding a BUILD.bazel file as stated in this pull-request to expose the filegroups for other projects that run Bazel. This would simplify the adoption.
Once, this pull-request has some feedback, I'll add the rest of the directories/filegroups to the build file before merging.
cc @web-platform-tests/reviewers