Skip to content

fix(ci): include generated code in wheel#12

Merged
bburda merged 1 commit intomainfrom
fix/wheel-include-generated
Mar 30, 2026
Merged

fix(ci): include generated code in wheel#12
bburda merged 1 commit intomainfrom
fix/wheel-include-generated

Conversation

@bburda
Copy link
Copy Markdown
Contributor

@bburda bburda commented Mar 30, 2026

Pull Request

Summary

The published wheel was missing _generated/ because hatchling doesn't follow symlinks outside the package directory. Replace ln -sf with cp -r in both CI jobs so generated code is physically present before building.


Issue


Type

  • Bug fix
  • New feature or tests
  • Breaking change
  • Documentation only

Testing

  • Build step now uses cp -r generated src/ros2_medkit_client/_generated instead of symlink
  • Applied to both build-and-test and publish jobs
  • Wheel will include the full generated API and model code

Checklist

  • Breaking changes are clearly described (and announced in docs / changelog if needed)
  • Tests were added or updated if needed
  • Docs were updated if behavior or public API changed

Copilot AI review requested due to automatic review settings March 30, 2026 13:20
@bburda bburda self-assigned this Mar 30, 2026
@bburda bburda added the bug Something isn't working label Mar 30, 2026
Hatchling does not follow symlinks outside the package directory,
so _generated/ was missing from the built wheel. Replace ln -sf
with cp -r to include generated API and model code in the wheel.

Closes #11
@bburda bburda force-pushed the fix/wheel-include-generated branch from f5c5a70 to e4d4a2b Compare March 30, 2026 13:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes Python wheel packaging by ensuring generated client code is physically included in the package directory (avoiding hatchling’s behavior of not following symlinks that point outside the package).

Changes:

  • Replaces the _generated symlink creation with a rm -rf && cp -r copy step in CI.
  • Applies the same fix to both build-and-test and publish jobs to keep behavior consistent.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mfaferek93 mfaferek93 self-requested a review March 30, 2026 13:35
@bburda bburda merged commit fe7341f into main Mar 30, 2026
4 checks passed
@bburda bburda deleted the fix/wheel-include-generated branch March 30, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Python wheel missing generated code (_generated/ not included)

3 participants