HdrHistogram / HdrHistogram/HdrHistogram_c

Adopt publish-to-bcr to auto-publish releases to the Bazel Central Registry

Open
#132 1 comment 0 reactions 0 assignees View on GitHub

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:

  1. Install the Publish to BCR GitHub App on HdrHistogram/HdrHistogram_c.
  2. 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_c target, same as today's BCR config).
    • .bcr/patches/ — the BUILD.bazel and MODULE.bazel add-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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.