Skip to content

build: fix empty wheel and verify package artifacts in CI - #19

Merged
4444J99 merged 5 commits into
mainfrom
activation-ship-soon-17162102006010684361
Nov 15, 2026
Merged

4444J99 merged 5 commits into
mainfrom
activation-ship-soon-17162102006010684361

Conversation

@4444J99

@4444J99 4444J99 commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Bounded source/CI-preparation scope per owner correction.

  • Fix setuptools discovery (wheel was empty): explicit py-modules from scripts/
  • CI: build wheel + sdist, inspect wheel contents, clean-venv install smoke test, upload dist as CI artifact only
  • README: local build/validation commands; states no release/publication has occurred
  • Removed release workflow and publication metadata

Refs #7 (publication remains a separate authorized step).

Summary by Sourcery

Ensure Python package artifacts are populated and validated in CI without publishing them.

Bug Fixes:

  • Fix package discovery so built wheels include all executable Python modules.

Enhancements:

  • Add local build guidance and clarify that CI artifacts are not released or published.

Build:

  • Add a Makefile target for building wheel and source distribution artifacts.

CI:

  • Build and validate wheel and source distributions in CI, smoke-test installation in a clean environment, and upload distributions as CI artifacts.

Deployment:

  • Remove release and publication-related workflow or metadata changes from the project scope.

Documentation:

  • Document local package build and validation commands and the CI-only artifact handling policy.

Summary by CodeRabbit

  • Build & Validation
    • Added a command to build wheel and source distribution artifacts locally.
    • CI now builds and checks the packages, verifies imports and the command-line help, and uploads build artifacts.
  • Documentation
    • Added instructions for local testing and package builds, and clarified that CI artifacts are not published as releases.

@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The project now configures six Python modules for packaging, adds local build commands, and builds and validates wheel and source distribution artifacts in CI. CI uploads the artifacts without publishing a release.

Changes: Package artifact workflow

Layer / File(s) Summary
Package configuration and local build
pyproject.toml, Makefile, README.md
Setuptools now maps the package root to scripts and lists six modules. The Makefile adds a build target. The README documents local build and validation commands.
CI artifact build and validation
.github/workflows/ci.yml
CI builds wheel and source distributions, checks the wheel contents, installs the wheel in a clean environment to check imports and hotspot_merge --help, and uploads dist/ as an artifact.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · up to 62506

This change fixes the empty wheel by listing the modules explicitly, adds local build commands, and has CI build and check the package artifacts without publishing anything. No concrete merge-blocking problem was found, and the change is easy to revert.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "build: fix empty wheel and verify package artifacts in CI" matches the main changes. The pyproject.toml change fixes setuptools discovery so the wheel is no longer empty, and the ci.yml cha…
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 The description covers the main changes: setuptools discovery fix for an empty wheel, CI wheel and sdist build with inspection and clean-venv smoke test, README local build commands, and removal of th…
Full details: Title check

Explanation

The title "build: fix empty wheel and verify package artifacts in CI" matches the main changes. The pyproject.toml change fixes setuptools discovery so the wheel is no longer empty, and the ci.yml change adds wheel and sdist builds, wheel content checks, a clean-venv smoke test, and a dist artifact upload. The Makefile and README changes support the same build work. The title is specific and one sentence long.

Full details: Description check

Explanation

The description covers the main changes: setuptools discovery fix for an empty wheel, CI wheel and sdist build with inspection and clean-venv smoke test, README local build commands, and removal of the release workflow and publication metadata. It also states that publication is out of scope and references #7. The template's Testing checkboxes are not ticked, and the Checklist items (style, no secrets, seed.yaml, CLAUDE.md sync) are not addressed. The Summary is present but is a bulleted list rather than 1-3 sentences, and the Changes section is a list of items rather than a template-style list. The description is mostly complete, so this check passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 837a1ecc-baa2-4776-9176-ab8ac85e450d
Commits

Reviewing files that changed from the base of the PR and between eae0fcd and 6250691.

Files selected for processing: 4

  • .github/workflows/ci.yml
  • Makefile
  • README.md
  • pyproject.toml

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

@sourcery-ai

sourcery-ai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Declare the Python modules sourced from scripts/ and add a local build target so the wheel contains the intended modules.

  • Makefile L3, L11, L19-21
  • pyproject.toml L22-31

Extend CI to build the wheel and sdist, verify wheel contents, smoke-test installation in a clean environment, and upload the artifacts without publishing them.

  • .github/workflows/ci.yml L38-68

Documentation

Document local test and build commands and clarify that CI artifacts are not released or published.

  • README.md L359-374

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

4444J99 commented Sep 23, 2026

Copy link
Copy Markdown
Owner Author

@jules Correction for current head b1f8af83179510eda1acb28cd020e97f989492f0: revise this SAME PR to the bounded source/CI-preparation scope; do not create a replacement task or PR.

Required changes:

  • Remove .github/workflows/release.yml, contents: write, GitHub Release creation/publication, tag/manual release behavior, softprops/action-gh-release, and all metadata/docs claiming a published release. Publication remains a separate human-authorized predicate.
  • Repair the ACTUAL packaging defect first: ensure setuptools discovery includes the real package/modules so the built wheel is non-empty and importable. Keep the smallest pyproject/setup change needed; do not invent new architecture.
  • Put artifact verification in the EXISTING CI path: build wheel + sdist, inspect wheel contents for the expected runtime package/modules, install the built wheel into a clean environment, and run deterministic offline import/CLI smoke checks. Upload dist files as CI artifacts only.
  • Pin every Action touched/added to a full immutable commit SHA with a readable version comment.
  • Revert unrelated/generated governance/seed publication metadata and fabricated release URL/status/date changes; preserve generated-file policy.
  • Keep README to truthful local build/validation commands and clearly state no release/publication has occurred.
  • Change Fixes #7 to Refs #7; issue ACTIVATION AUDIT: ship-soon #7 remains open until the external publication predicate is separately authorized and verified.

Run focused tests, package build/content inspection, clean-install smoke, and workflow/static validation at the resulting head and report exact results. Do not publish, tag, release, deploy, alter settings, or use credentials.

google-labs-jules Bot and others added 4 commits September 23, 2026 05:08
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Remove release workflow and publication metadata, fix empty-wheel
setuptools discovery, verify built artifacts in the existing CI path
(contents inspection, clean-install smoke, dist as CI artifact only).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@4444J99 4444J99 changed the title Activation Audit: Add build artifacts and release workflow build: fix empty wheel and verify package artifacts in CI Nov 15, 2026
@4444J99
4444J99 marked this pull request as ready for review November 15, 2026 03:29
@sourcery-ai

sourcery-ai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Sorry @4444J99, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 14 hours and 32 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T03:30:54.542346Z 6250691 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@4444J99
4444J99 merged commit d880b25 into main Nov 15, 2026
8 checks passed
@4444J99
4444J99 deleted the activation-ship-soon-17162102006010684361 branch November 15, 2026 03:34
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