Skip to content

feat: add a shared workflow that builds and tests binary wheels - #130

Merged
shenxianpeng merged 2 commits into
mainfrom
claude/project-thread-9eq513
Nov 30, 2026
Merged

shenxianpeng merged 2 commits into
mainfrom
claude/project-thread-9eq513

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds binary-wheels.yml, a reusable workflow that builds and tests the Python wheels of the repositories that repackage prebuilt binaries: ccache-wheel, llvm-cov-wheel and clangd-wheel. Their test.yml files are about 200 lines each and already differ in small ways; with this, each repository keeps only what is specific to it (package name, version file, platforms, extra test jobs) and calls:

jobs:
  wheels:
    permissions:
      contents: read
    uses: cpp-linter/.github/.github/workflows/binary-wheels.yml@main
    with:
      package: ccache-bin
      version-file: ccache_version.txt
      platform-variable: CCACHE_PLATFORM
      uv-targets: x86_64-manylinux_2_17 ...

What it does, unchanged from the current per-repo test.yml:

  • builds one wheel per platform from python hatch_build.py platforms (and per version, for repositories that can build older versions), runs twine check --strict, and checks that uv resolves a wheel for every target;
  • installs the wheel with pip and with uv on each runner and runs tests/smoke_test.py --version <wheel version>;
  • installs and tests it in containers (Alpine/musl, manylinux2014, QEMU architectures);
  • uploads wheels (and optional release-files) artifacts, which each repository's publish.yml then uploads.

The PyPI upload stays in each repository's own publish.yml: PyPI trusted publishing does not work from inside a reusable workflow, and the trusted publishers are bound to those file names.

The README's reusable workflow section describes it.

Related Issues

Pilot: cpp-linter/ccache-wheel (PR linked below once opened).


Generated by Claude Code

Summary by CodeRabbit

  • Chores
    • Added a reusable workflow to build and validate Python wheels across configured platforms, then test them with pip and uv.
    • Built wheels and optional release files are available as workflow artifacts, and the workflow reports the built versions.
  • Documentation
    • Added guidance for using the workflow across the documented repositories. PyPI publishing remains handled by each repository’s existing publishing workflow.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds a reusable workflow that builds and validates Python wheels, uploads wheel and optional release-file artifacts, and tests wheels with pip and uv on runners and in Linux containers. The README documents the workflow callers and publishing arrangement.

Changes

Binary Wheel Build and Test

Layer / File(s) Summary
Workflow inputs and wheel build
.github/workflows/binary-wheels.yml, README.md
The workflow defines its inputs and output, selects versions, builds and validates wheels, and uploads wheel and optional release-file artifacts. The README describes its callers and notes that PyPI uploads remain in each repository’s publish.yml.
Runner-based wheel tests
.github/workflows/binary-wheels.yml
The runner test job downloads the wheel artifact, optionally sets up MSVC, and installs and smoke-tests the package with pip and uv.
Linux container wheel tests
.github/workflows/binary-wheels.yml
The container test job can configure QEMU, a platform, and setup commands. It runs setup and pip installation in Docker, then runs the smoke test.

Estimated code review effort: 4 (Complex) | ~45 minutes

Merge Risk: Minimal · up to 007a8

This PR adds a shared workflow for building and testing binary wheels and documents it in the README. No concrete merge-blocking defect was established. Callers should check that platform selection does not depend on the version, and that first-version-only smoke testing matches their previous test.yml coverage.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title says the PR adds a shared workflow that builds and tests binary wheels. The raw summary and objectives confirm this is the main change: a new reusable workflow, binary-wheels.yml, that build…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title says the PR adds a shared workflow that builds and tests binary wheels. The raw summary and objectives confirm this is the main change: a new reusable workflow, binary-wheels.yml, that builds, checks, uploads, and tests Python wheels. The README update is a minor supporting change that the title does not mention, which is acceptable. The title follows the conventional commit style and is concise.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 71314460-1f58-42e2-a35d-8edd14bbc6e6
Commits

Reviewing files that changed from the base of the PR and between 18bed69 and 007a849.

Files selected for processing: 2

  • .github/workflows/binary-wheels.yml
  • README.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@shenxianpeng
shenxianpeng merged commit a8a00de into main Nov 30, 2026
6 checks passed
@shenxianpeng
shenxianpeng deleted the claude/project-thread-9eq513 branch November 30, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant