Repository navigation
Conversation
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.
Member
Author
|
From: Claude 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 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Since #2637,
desktop test / Python engine testsfails on every PR attests/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 requiresopenadapt-types>=0.24.2. Desktop's bundled Flow is the lockedopenadapt-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.2would only move the failure to theCheck the shared types range against the bundled Flowstep, which runs with the locked 2.4.1.Change
_bundled_flow_types_specifiernow compares the installed Flow version with theuv.lockpin.OPENADAPT_DESKTOP_REQUIRE_BUNDLED_FLOW=1is 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)
uv run --locked --extra dev --extra build pytest tests/test_dependency_compat.py--with-editable ../types --with-editable ../flowOPENADAPT_DESKTOP_REQUIRE_BUNDLED_FLOW=1ruff checkandruff format --checkare clean.check_release_intent.pysays "Desktop release intent is consistent". This is a test-only change, so there's no version bump.