Skip to content

build: pin hatchling to exclude broken 1.32.1 - #733

Merged
wangyb-A merged 1 commit into
mainfrom
build/pin-hatchling
Sep 16, 2026
Merged

wangyb-A merged 1 commit into
mainfrom
build/pin-hatchling

Conversation

@wangyb-A

@wangyb-A wangyb-A commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

CI's build (3.11–3.14) matrix is red on every PR opened since this morning. The "Build distribution" step dies before touching any package source:

  File ".../hatchling/builders/binary.py", line 7, in <module>
    from hatch.plugin.manager import PluginManager
ModuleNotFoundError: No module named 'hatch'

Cause: hatchling 1.32.1 was published to PyPI at 16:52 UTC today. It adds from hatch.plugin.manager import PluginManager to hatchling/builders/binary.py (the import is not present in 1.32.0), but hatchling does not declare a dependency on hatch, so every isolated build environment that resolves our unpinned requires = ["hatchling"] now fails at import. Every CI run before 16:52 UTC is green, including main at 22:40 UTC yesterday; every run since 17:08 UTC is red across three unrelated branches (#732 and two feature branches).

Fix: pin build-system.requires in all seven packages to hatchling!=1.32.1,<1.33.

  • !=1.32.1 excludes the known-broken release and lets the upstream patch release through without another PR.
  • <1.33 keeps the next minor from landing in CI untested. Bump it deliberately.

Only [build-system].requires changes; build-backend, package metadata, and runtime dependencies are untouched.

Testing

Locally, in packages/aws-durable-execution-sdk-python-insight and packages/aws-durable-execution-sdk-python-conformance-tests-otel:

  • Before the pin: hatch build fails with the ModuleNotFoundError above (the isolated env had resolved 1.32.1).
  • After the pin: hatch build succeeds for both, producing the sdist and wheel; the isolated env resolved hatchling 1.32.0.

CI on this PR is the real check: the build matrix must go green with no other change.

Unblocks #732.

hatchling 1.32.1 (PyPI, 2026-09-16 16:52 UTC) adds
`from hatch.plugin.manager import PluginManager` to
hatchling/builders/binary.py, but hatchling does not depend on hatch.
Every isolated build env that resolves the unpinned `hatchling`
requirement now fails at import time with
`ModuleNotFoundError: No module named 'hatch'`, so the `build` CI
matrix is red on every PR opened since that release (main was green
at 22:40 UTC the day before).

Pin `build-system.requires` in all seven packages to
`hatchling!=1.32.1,<1.33`: exclude the known-broken release, let the
upstream patch release through, and keep the next minor from landing
untested. Verified locally: `hatch build` in the insight and
conformance-tests-otel packages fails before this change and succeeds
after it, resolving hatchling 1.32.0.
@wangyb-A
wangyb-A deployed to ai-pr-review-runtime September 16, 2026 17:25 — with GitHub Actions Active
@wangyb-A
wangyb-A deployed to ai-pr-review-runtime September 16, 2026 17:25 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown
Contributor

Codex AI review

No actionable findings. Residual risk: isolated distribution builds were not executed during this read-only review; CI’s Python 3.11–3.14 build matrix should validate resolution and packaging.

Reviewed commit 52d6d8f381463e24e586a049d0448964f9b738a6. Workflow run

@wangyb-A
wangyb-A merged commit 86ea45c into main Sep 16, 2026
50 checks passed
@wangyb-A
wangyb-A deleted the build/pin-hatchling branch September 16, 2026 17:33

This branch was successfully deployed

1 active deployment
ai-pr-review-runtime — 52d6d8f3 Deployed Sep 16, 2026 by wangyb-A via ai-pr-review / Codex review / Generate Codex review #835
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.

2 participants