-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Augment a registry to catalog existing rulesets #2
Comments
On thing we should probably suggest is a standard repository tagging structure; this is how buildkite discovers plugins; we could do something similar with rules? e.g. |
Maybe we also want to take over a page like https://docs.bazel.build/versions/main/rules.html#recommended-rules as part of this issue. |
I think an "MVP" to resolve this issue should have:
|
So from what I've gathered from today's SIG meeting, it seems like having the catalog is still something that has use for the SIG, and will only be partially supplemented/replaced by the BCR. On top of that, it seems like having an up-to-date list of all rulesets and their existing (pre-bzlmod) dependencies would also help in bootstrapping the BCR by giving insight into which are the "most blocking" rulesets for wider bzlmod adoption (= rulesets that many other rulesets depend on). So as the first step toward that, my plan would be to:
@alexeagle WDYT? |
I'll once again repeat my assertion that we need more than a catalog.
There should be a repository that does nothing but cross rule-set CI.
- it requires a specific bazel track (4.x, 5.x, head)
- has a WORKSPACE or MODULE.bazel file that depends on the top N (let's
say 10-15) common rules at specific versions
- bazel build //... should just work without flags
- bazel test //... should pass without flags
- it includes both android and ios applications that depends on native
C++ code.
- It has a web UI that interoperates with the same back end as the
mobile apps.
The goal is to go beyond saying that rules_go passes its tests with Bazel
5.x. It is to say that rules_go works with rules_proto + rules_apple to
build a complex product.
In the past I had presumed that Google should own this, but perhaps it is a
worthy community project. Or, perhaps Google pays for the CI machines, but
does not own the content of the test projects.
…On Tue, May 31, 2022 at 4:22 PM Maximilian Goisser ***@***.***> wrote:
So from what I've gathered from today's SIG meeting, it seems like having
the catalog is still something that has use for the SIG, and will only be
partially supplemented/replaced by the BCR.
On top of that, it seems like having an up-to-date list of all rulesets
and their existing (pre-bzlmod) dependencies would also help in
bootstrapping the BCR by giving insight into which are the "most blocking"
rulesets for wider bzlmod adoption (= rulesets that many other rulesets
depend on).
So as the first step toward that, my plan would be to:
- Try to extend the existing catalog to be as comprehensive as
possible regarding the number of rulesets
- Extend the information about the existing rulesets with:
- Dependencies (via manual inspection of WORKSPACE/README)
- Name in the BCR (if already published there)
- Whether automatic publishing to the BCR is set up (to
differentiate from sporadic one-off publications that you can't depend on
yet as a rules author; I've seen that a GH Action for that is in the works)
@alexeagle <https://github.com/alexeagle> WDYT?
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXHHHCN6ECV2OOO64KW6Z3VMZYH3ANCNFSM5FQFP5RA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
That sounds great, but running that CI sounds expensive and hard, and the SIG has barely done any meaningful engineering so far, so I don't think we should try to expand the scope of this one. |
Update: @ashi009 has made some progress and we now have https://github.com/bazel-contrib/bazel-catalog as a home for it. |
A "minimal viable product" for this is now at https://bazel-contrib.github.io/bazel-catalog/ |
Another update 15mo later - I have not found volunteer time to make progress on that MVP. Discussed at today's Rules Authors SIG meeting that we would fund a developer to come make progress on this. Note that the volunteer will have to be mostly self-managing since the SIG only meets bi-weekly and no one has much time to mentor/direct this work. |
There are existing resources for Bazel users to find rulesets, but none are good enough:
The goal of this issue is to improve one of these to satisfy user needs, which are:
The text was updated successfully, but these errors were encountered: