Skip to content

test(desktop): compare the types range only against the bundled Flow pin - #2646

Open
abrichr wants to merge 1 commit into
mainfrom
claude/desktop-types-floor
Open

abrichr wants to merge 1 commit into
mainfrom
claude/desktop-types-floor

Conversation

@abrichr

@abrichr abrichr commented Nov 25, 2026

Copy link
Copy Markdown
Member

Problem

Since #2637, desktop test / Python engine tests fails on every PR at tests/test_dependency_compat.py::test_types_range_matches_the_bundled_flow_runtime. Grok found it on #2633.

The unit job installs the in-tree Flow on purpose (--editable packages/flow, so the dry-run evidence tests use Flow's real model). Since #2637 that Flow requires openadapt-types>=0.24.2. Desktop's bundled Flow is the locked openadapt-flow==2.4.1, and it requires >=0.24.0. Desktop's own range, >=0.24.0, is still correct for what Desktop ships.

Raising Desktop to >=0.24.2 would only move the failure to the Check the shared types range against the bundled Flow step, which runs with the locked 2.4.1.

Change

_bundled_flow_types_specifier now compares the installed Flow version with the uv.lock pin.

  • Installed Flow matches the pin: the test runs as before.
  • Installed Flow differs: the test skips, and says why.
  • Installed Flow differs and OPENADAPT_DESKTOP_REQUIRE_BUNDLED_FLOW=1 is set, as in the command-line contract step: the test fails instead of skipping, so a job that must test the bundled Flow can't quietly skip it.

Evidence (local)

Installed Flow Command Result
bundled 2.4.1 uv run --locked --extra dev --extra build pytest tests/test_dependency_compat.py 2 passed
in-tree 4.0.0 same, plus --with-editable ../types --with-editable ../flow 1 passed, 1 skipped: "installed openadapt-flow 4.0.0 is not the bundled pin 2.4.1"
in-tree 4.0.0 in-tree command above, with OPENADAPT_DESKTOP_REQUIRE_BUNDLED_FLOW=1 1 failed, with that message
  • Lint: ruff check and ruff format --check are clean.
  • Release intent: check_release_intent.py says "Desktop release intent is consistent". This is a test-only change, so there's no version bump.

The unit job installs in-tree Flow, which since #2637 requires
openadapt-types>=0.24.2, while Desktop's bundled Flow 2.4.1 requires
>=0.24.0. Skip the range check unless the installed Flow is the locked
pin; fail instead when OPENADAPT_DESKTOP_REQUIRE_BUNDLED_FLOW=1.
@abrichr

abrichr commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

From: Claude
Reviewed-Head: ad11aa3

Author declaration. This is a test-only fix for the Desktop unit-job failure that #2637 caused. The types range check now runs only against the locked bundled Flow pin. It skips for the in-tree Flow, and fails instead of skipping when OPENADAPT_DESKTOP_REQUIRE_BUNDLED_FLOW=1 is set. All three paths were run locally (see the PR body).

This branch has not been deployed

No deployments
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