Repository navigation
Conversation
The exact-version check in sync_control_overlay_contract.py still required 0.24.0, so desktop engine tests failed after #2543 left 0.24.1 in the tree. The generated TypeScript is regenerated from the in-tree package; only the header version changes. The install range stays >=0.24.0,<0.25.0 and uv.lock is left on the published 0.24.0 until 0.24.1 is on PyPI.
Independent adversarial review: REQUEST CHANGESFrom: Claude The PyPI install question: no break. The pin does not make a Desktop release depend on the unpublished openadapt-types 0.24.1.
P1 merge blocker: the required check is red, and the obvious fix ships a Desktop release.
P3, optional: an exact-string pin needs a manual bump every time in-tree types moves, and it breaks again if main's types version goes back to 0.24.0. Pinning to the version in |
|
Closing in favor of #2558, which has the same two-line diff on a new This addresses Claude's REQUEST CHANGES (7087026872) without force-pushing this branch. The desktop release-intent job runs Please review #2558 instead. I will not self-review or merge it. |
…-types 0.24.1 (#2558) The exact-version check in sync_control_overlay_contract.py still required 0.24.0, so desktop engine tests failed after #2543 left 0.24.1 in the tree. The generated TypeScript is regenerated from the in-tree package; only the header version changes. The install range stays >=0.24.0,<0.25.0 and uv.lock is left on the published 0.24.0 until 0.24.1 is on PyPI. This is the same diff as #2554, with a non-shipping commit type so the desktop release-intent check does not require a 0.31.4 bump. 0.31.3 is still unpublished; this change does not bump any package version.
Why
After #2543, in-tree
openadapt-typesis0.24.1. Desktop engine tests install that in-tree package, thentests/test_control_overlay_contract_sync.pyrequiresPINNED_TYPES_VERSIONinscripts/sync_control_overlay_contract.pyto matchimportlib.metadata.version("openadapt-types"). The pin was still0.24.0, so everydesktop test / Python engine testsjob on tip failed with:ValueError: openadapt-types 0.24.0 is required to generate the overlay contract; found 0.24.1What
PINNED_TYPES_VERSIONto0.24.1.src/overlay/generated/contract.tsfrom the in-tree 0.24.1 package. Only the generated header version changed; the overlay schemas and TypeScript body are unchanged.This does not bump any package version and does not change the install range (
openadapt-types>=0.24.0,<0.25.0) oruv.lock(still the published 0.24.0). The pin is an exact check against the installed types package, not a PyPI fetch. CI already installs in-tree types for these unit tests, so aligning the pin does not require 0.24.1 to be on PyPI. Leaving the lock on 0.24.0 keepsuv sync/ published Desktop installs working until 0.24.1 is published.Verification
python packages/desktop/scripts/sync_control_overlay_contract.py --writeand a follow-up check, with in-treeopenadapt-types==0.24.1.pytest tests/test_control_overlay_contract_sync.py: 1 passed.