-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
feat: automate publishing releases to Bazel Central Registry #14565
Conversation
@zhangskz @googleberg looks like I can't get CI results for my PR since it originates from an untrusted fork. How should I proceed? |
Looks like every time I push a commit, I'll have to ask a Googler to add a tag on my PR. Doesn't sound very productive, but I guess it's a start. |
Hi Alex, we should have just granted you some additional permissions that should allow you to push to a dev branch in the repo instead to bypass the "safe for test" tag requirement (or at least add the tag yourself for PRs from your fork). Let me know if that works to help speed things up a bit. |
Do you have instructions on what you need regarding installing the Publish-to-BCR app? |
@zhangskz yes, could you go to https://github.com/apps/publish-to-bcr and click Configure, then add it to this repository? |
Done. |
Hi Alex, have you been able to get unblocked on testing this? Let me know if this is ready for review, or if there's anything we can do to help unblock here.. |
Would be useful to merge this! |
Thanks for the ping @aran - taking another look |
@zhangskz I'd like to understand why the BCR entries are accumulating a bunch of patches: It seems like the protobuf project is forking, these patches represent some other branch where bzlmod-related changes are stacking up, while I think there are a couple sane paths forward:
|
Step towards #14564. The strategy is: 1. Burndown the set of patches which are currently applied only when protobuf is published to BCR, by applying those patches to the repo. 2. In cases where a patch can't be accepted to the repo, it can be in the .bcr folder. 3. Finish #14565 by configuring the Publish-to-BCR github app.
Note, recent releases on the BCR have a patch set applied, and it seems these patches are developed independently to "fix" each protobuf release, rather than make changes to protobuf repo. The effect of this PR will be to create a *broken* publish to BCR for each protobuf release. At least this red PR on BCR will be our indication that the patches need to be manually replayed there. In parallel, starting with protocolbuffers#16013 I'll apply as many of those patches to the protobuf repo as possible. That will reduce the manual effort for each release.
looks like I have to close this to re-open a PR that comes from the upstream rather than my fork. |
|
Note, recent releases on the BCR have a patch set applied, and it seems these patches are developed independently to "fix" each protobuf release, rather than make changes to protobuf repo. The effect of this PR will be to create a *broken* publish to BCR for each protobuf release. At least this red PR on BCR will be our indication that the patches need to be manually replayed there. In parallel, starting with #16013 I'll apply as many of those patches to the protobuf repo as possible. That will reduce the manual effort for each release. Replaces #14565 which originated from my fork so the tests wouldn't run. Closes #16014 COPYBARA_INTEGRATE_REVIEW=#16014 from protocolbuffers:bcr e17d9c8 PiperOrigin-RevId: 615026796
…lbuffers#16014) Note, recent releases on the BCR have a patch set applied, and it seems these patches are developed independently to "fix" each protobuf release, rather than make changes to protobuf repo. The effect of this PR will be to create a *broken* publish to BCR for each protobuf release. At least this red PR on BCR will be our indication that the patches need to be manually replayed there. In parallel, starting with protocolbuffers#16013 I'll apply as many of those patches to the protobuf repo as possible. That will reduce the manual effort for each release. Replaces protocolbuffers#14565 which originated from my fork so the tests wouldn't run. Closes protocolbuffers#16014 COPYBARA_INTEGRATE_REVIEW=protocolbuffers#16014 from protocolbuffers:bcr e17d9c8 PiperOrigin-RevId: 615026796
Note, it's also required that someone with sufficient permissions "installs" the Publish-to-BCR GitHub app to this repo.
FYI @thesayyn
Fixes #14564