Skip to content

build(server): build publishable wheels via build script#217

Draft
abhinav-galileo wants to merge 1 commit intomainfrom
abhi/fix-make-build-script-delegation
Draft

build(server): build publishable wheels via build script#217
abhinav-galileo wants to merge 1 commit intomainfrom
abhi/fix-make-build-script-delegation

Conversation

@abhinav-galileo
Copy link
Copy Markdown
Collaborator

@abhinav-galileo abhinav-galileo commented May 8, 2026

Summary

  • Delegate publishable wheel builds to scripts/build.py.
  • Ensure server and SDK wheels include vendored workspace packages.
  • Keep the models build on the same build path for consistency.

Testing

  • make prepush

@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

The `build-server` and `build-sdk` Make targets ran a raw `uv build`
in the package directory. Both packages declare `agent_control_models`,
`agent_control_engine`, and `agent_control_telemetry` as vendored
packages in their hatch wheel config. Without the pre-build copy that
`scripts/build.py` performs, hatch silently produces a wheel whose
declared package directories are empty on disk:

    $ unzip -l dist/agent_control_server-*.whl | grep telemetry/
    (no match)

The resulting wheel installs cleanly via pip but crashes at startup
because the bundled imports are missing:

    agent-control-migrate: No module named 'agent_control_telemetry'

Delegate `build-models`, `build-server`, and `build-sdk` to the
canonical `scripts/build.py` entry points so that `make build-server`
and `make build-sdk` produce the same wheels as the publish pipeline
runs in CI. Verified: rebuilt wheels now contain
`agent_control_models`, `agent_control_engine`, and
`agent_control_telemetry` under their respective package directories.

`build-models` had no vendored packages, so the previous raw-`uv build`
worked, but routing it through the script keeps the build-target
shape uniform across the three publishable packages.
@abhinav-galileo abhinav-galileo changed the title fix(build): delegate build-server and build-sdk to scripts/build.py build(server): build publishable wheels via build script May 8, 2026
@abhinav-galileo abhinav-galileo force-pushed the abhi/fix-make-build-script-delegation branch from 7647bda to 35c19fc Compare May 8, 2026 15:29
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