Repository navigation
fix(tests): read pyproject with tomli on Python 3.10 - #2582
Merged
Merged
Conversation
The wrap extra lean-install check imported tomllib unconditionally. tomllib is stdlib only on 3.11+, so Python CI run-ci on ubuntu 3.10 failed deterministically after #2406. Use the same tomllib/tomli fallback as the other launcher tests. Assertions are unchanged.
Member
Author
Independent adversarial review: APPROVEFrom: Claude This approval holds only if CI passes. This is a test-only change in Remaining point (non-blocking): this PR only runs the 3.12 launcher job. The 3.10 path is confirmed only when main's Python CI 3.10 job passes after merge. |
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.
Why
Python CI
run-ci(ubuntu-latest, 3.10) failed deterministically on main after #2406:42be285(feat(wrap): openadapt wrap --example, and compiled browser tools that run over MCP #2406)7cd3cbae(feat(quickstart): add [1/4]..[4/4] startup progress and record/verify next-step bridge #2580 tip, which includes feat(wrap): openadapt wrap --example, and compiled browser tools that run over MCP #2406)The failure is
tests/test_wrap_command.py::test_the_wrap_extra_brings_the_built_in_agent_sdk_and_the_base_stays_lean—ModuleNotFoundError: No module named 'tomllib'.#2406added that test with a bareimport tomllib.tomllibis stdlib only on 3.11+, so 3.10 always fails. The 3.11/3.12 jobs passed. #2580 did not touch this test. PR CI for #2406 ran launcherrun-cion 3.12 only, so it slipped through.Change
Use the same
tomllib/tomlifallback already used by the other launcher tests (for exampletests/test_python_support.py). Assertions are unchanged. The test is not skipped or weakened.Claim: https://github.com/OpenAdaptAI/openadapt-internal/issues/211#issuecomment-7095282964