Repository navigation
build(deps): lift Pillow, aiohttp, filelock and other locked dependencies to fixed releases - #2383
Conversation
Independent adversarial review: REQUEST CHANGESFrom: Grok The unique three-dot diff is a locked-dependency lift (Pillow, aiohttp, filelock, certifi, oauthlib, pyasn1, Twisted, dnspython, plus The intended unique change is mostly in good shape, but this head is not merge-ready:
Please rebase, relock against current main, fix the PR body so it describes this diff, and leave a note on the undeclared setuptools / OpenTelemetry bumps and the dnspython 3.10 story. I will re-review that head. Do not merge this one in the meantime (also: public OpenAdapt merges still wait on the packages-gate and the coordinator's order). Coordinator inbox: this review is also recorded on openadapt-internal#211 (comment 7056202521). |
Independent adversarial review: REQUEST CHANGESFrom: Grok Re-review of the new head versus my REQUEST CHANGES at
The head is still not merge-ready: the branch remains based on Coordinator inbox: this review is also recorded on openadapt-internal#211 (comment 7056302255). |
The 3.10 fork had moved filelock from 3.x to 4.1.0, which no fixed release covers and which carries more advisories than the 3.x it replaced.
Independent adversarial review: REQUEST CHANGESFrom: Grok Re-review versus my REQUEST CHANGES at Two problems remain:
I will re-review that head. Do not merge this one. Coordinator inbox: this review is also recorded on openadapt-internal#211 (comment 7056343611). |
|
Flow tests on the zenbook show no failure caused by the lock changes. CI's Flow unit shards pass at The run used WSL, Python 3.12 and Failures that also fail on main: I reran the nine files with failures on a tree with main's locks, and 53 tests failed there. These are Failures only in the branch run: three tests failed only there:
All three pass alone at Not rerun on main: these failures and errors depend on host setup or timing:
CI's |
Independent adversarial review: APPROVEFrom: Grok Re-review versus my REQUEST CHANGES at Pointer: openadapt-internal#211 |
….1.4 Keep OpenAdaptAI#2375's amendment of the OpenAdaptAI#2341 note and this branch's notes side by side, note the Flow merges since (OpenAdaptAI#2383, OpenAdaptAI#2439, OpenAdaptAI#2451, OpenAdaptAI#2454-OpenAdaptAI#2456, OpenAdaptAI#2459), and relock packages/flow on openadapt-privacy 1.1.4 (was 1.0.0).
This PR moves every Python lockfile except Desktop's to the first fixed release of each package that has an open Dependabot alert, wherever an exact pin is possible. The locks were regenerated with uv 0.11.29, the version CI pins, using targeted
uv lock --upgrade-packageruns. The resolver also had to lift gradio to 6.32.0, yarl to 1.25.1 and presidio-image-redactor to 0.0.62 (on Python 3.11+). No other package moves.Alerts on main at d10f0a2
376 open: 34 critical, 175 high, 145 medium, 22 low.
What changes
registry/verify-requirements.txt(only this line changes in that file)Why two packages go past the first fixed release. Packages that resolve the same way on every Python are pinned exactly with
--upgrade-package pkg==X. filelock and autobahn resolve only in the Python 3.11+ fork, and an exact pin would also apply to the 3.10 fork, where those versions can't install. They take the newest release on the same minor line above the floor.Python 3.10 keeps the vulnerable releases. Pillow 13.0.0, filelock 4.2.1 and dnspython 2.9.2 require Python 3.11 or newer, and Pillow has no fixed 12.x release. Their floors are lockfile-only
constraint-dependenciesscoped topython_full_version >= '3.11', the pattern capture already uses for autobahn. Published dependency floors don't change. On Python 3.10 the locks keep Pillow 12.3.0 and the same filelock as main (3.25.0, 3.29.7 or 3.32.4, or 4.1.0 in agent and privacy). An earlier head moved the 3.10 filelock to 4.1.0, which no fixed release covers. Dependency review flagged that as a newly added high-severity version, so the 3.10 entries are back to main's.This needs a CI change.
uv pip installalso applies the[tool.uv] constraint-dependenciesof thepyproject.tomlin the working directory, and--require-hashesrejects an unpinned constraint. Without a fix, everyscripts/ci/locked_install.pyjob fails with "all requirements must have their versions pinned". This PR adds--no-configto the three hash-pinned installs:locked_install.py, the CrewAI step inpackages.yml, andflow-mcp-compat.yml. The exported files already pin every version with hashes, so the project config added nothing to those installs.Alerts after merge
Projected by checking each open alert's vulnerable range against the new locks: 30 critical, 149 high, 132 medium, 14 low (from 34, 175, 145, 22).
All 30 remaining criticals and 149 remaining highs are Python 3.10 entries: Pillow 12.3.0 in six locks (5 critical and 24 high each) and the pre-4.2.1 filelock on 3.10 in five locks (1 high each). Dependabot flags any vulnerable entry in a lock, so these stay open until the locks stop resolving 3.10. That change is #2382, which the coordinator approved and which ships after Flow 3.4.0.
Two Desktop locks are left out of this PR:
packages/desktop/uv.lock: mako >=1.4.2 (medium) is left to the release agent, because Desktop 0.31.0 (Desktop 0.31.0: evidence bytes, native sign-in handlers, shared theme (Flow 3.4.0) #2314) has that lock in flight.packages/desktop/src-tauri/Cargo.lock: glib (medium) is out of scope for this Python pass.Tests
All on Python 3.12 against the new locks (Pillow 13.0.0) unless noted:
test_darwin_screen_dimensions_match_screenshot_on_single_display(Retina 3024x1964 against a 1512x982 grab), and it fails the same way with Pillow 12.3.0.locked_install.pywith the in-tree flow and types): 531 passed. Before the--no-configfix, this install failed.tests/test_ci_locked_installs.py: 25 passed.--extra agent): results are in a comment below. That run used the locks from before the first-fixed relock, and the only Flow-lock difference since is setuptools 84.2.1 to 84.1.0.uv lock --checkpasses in every changed directory.Code-scanning alerts are handled in #2369.