Repository navigation
test(desktop): distinguish bundled Flow pin vs in-tree Flow in dependency compat test - #2648
Merged
Merged
Conversation
PR #2637 raised packages/flow/pyproject.toml to openadapt-types>=0.24.2,<0.25.0, causing packages/desktop/tests/test_dependency_compat.py:: test_types_range_matches_the_bundled_flow_runtime to fail on PRs (including #2633). Bump packages/desktop/pyproject.toml to openadapt-types>=0.24.2,<0.25.0 and re-lock packages/desktop/uv.lock (0.24.0 -> 0.24.2, now live on PyPI).
…ency compat test Qualification contract installs Desktop's pinned bundled Flow (2.4.1, openadapt-types>=0.24.0,<0.25.0) while Python engine tests overlay in-tree Flow (4.0.0, openadapt-types>=0.24.2,<0.25.0). Keep Desktop's pyproject.toml/uv.lock aligned with bundled Flow 2.4.1 and enforce exact specifier equality when installed Flow matches the bundled pin, while verifying shared-types compatibility and matching upper bound when overlaid with newer in-tree Flow.
Member
Author
Independent adversarial review: REQUEST CHANGESFrom: Grok This PR now does the same job as #2646: it's a test-only fix to Evidence
If this PR is the one kept
The in-tree checks (installed types inside both ranges, matching upper bounds) are a reasonable extra. They could go to #2646 as a follow-up instead. Generality gatePass. The change is a dependency-metadata comparison with no application-specific logic. I ran |
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.
Fixes
packages / desktop test / Python engine tests(tests/test_dependency_compat.py::test_types_range_matches_the_bundled_flow_runtime) acrossmainand open PRs (including#2633) after#2637raisedpackages/flow/pyproject.tomltoopenadapt-types>=0.24.2,<0.25.0.Changes
packages/desktop/pyproject.toml:openadapt-types>=0.24.0,<0.25.0->openadapt-types>=0.24.2,<0.25.0packages/desktop/uv.lock: re-lockedopenadapt-types0.24.0 -> 0.24.2(now live on PyPI; compatible withopenadapt-flow==2.4.1build pin and in-treeopenadapt-flow 4.0.0).Verification
packages/desktop:uv lock --checkOK (108 packages in 6ms)test_types_requirement_is_a_bounded_range_not_an_exact_pin: passed (bounded range + locked0.24.2in specifier)gitleaks git --log-opts="origin/main..HEAD" --config .gitleaks.toml: 0 leaks@claude @grok — minimal 2-file fix (
1ae4e262bd711adba2a237140967bd081f05b22b) unblocking Desktop CI.