HdrHistogram / HdrHistogram/HdrHistogram_c
Adopt publish-to-bcr to auto-publish releases to the Bazel Central Registry
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 290
- Forks
- 111
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 3
Description
Background
HdrHistogram_c is available in the Bazel Central Registry (BCR) as the module hdrhistogram_c, used by Bazel projects via Bzlmod. Until recently it was pinned at 0.11.2. I just opened a PR to add 0.11.9: https://github.com/bazelbuild/bazel-central-registry/pull/8707.
The BCR entry currently has "No Maintainer Specified", which is why versions had been lagging behind upstream releases.
Proposal
Adopt the Publish to BCR GitHub App in this repository so that future HdrHistogram_c releases automatically open BCR PRs without anyone needing to remember.
What it requires
A one-time setup committed to this repo:
- Install the Publish to BCR GitHub App on
HdrHistogram/HdrHistogram_c. - Add a
.bcr/directory to this repo with templates the bot will use to file BCR PRs:.bcr/metadata.template.json— module metadata, including maintainers..bcr/source.template.json— source URL pattern (uses{VERSION}substitution against the release tag)..bcr/presubmit.yml— Bazel CI matrix to run on each new version (build the@hdrhistogram_c//:hdrhistogram_ctarget, same as today's BCR config)..bcr/patches/— theBUILD.bazelandMODULE.bazeladd-patches (since this repo doesn't ship Bazel build files).
What it gets you
- New GitHub releases automatically file a BCR PR within minutes of being published.
- Downstream Bazel users (including projects that have to backfill versions today, like the PR linked above) get the new version without waiting for someone to notice and submit it.
- Zero maintenance burden after the initial setup — the bot runs unattended on each release tag.
References
- Publish to BCR docs and template repo: https://github.com/bazel-contrib/publish-to-bcr
- Examples of repositories using it: https://github.com/aspect-build/rules_ts, https://github.com/perplexityai/gazelle_py (a recent BCR PR by the bot: https://github.com/bazelbuild/bazel-central-registry/pull/8702)
Happy to put up the .bcr/ directory as a PR if there's interest — most of the contents can be lifted directly from the existing BCR entry.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the existing HdrHistogram_c entry in the Bazel Central Registry and the publish-to-bcr template repository. Add .bcr/metadata.template.json, .bcr/source.template.json, .bcr/presubmit.yml, and the required patches for BUILD.bazel and MODULE.bazel. Done means a release can trigger an automated BCR PR and the presubmit matrix builds @hdrhistogram_c//:hdrhistogram_c.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, github, github-actions
- Domain
- build-system, ci-cd, release
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 74/100