Repository navigation
deps: combine open dependabot PRs into one batched update - #5374
danielhanchen wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates a wide range of dependencies across the Python, Node.js, and Rust components of the project. However, the reviewer identified several critical issues where dependencies were set to non-existent version numbers in pyproject.toml, package.json, and Cargo.toml. Specifically, versions for setuptools, datasets, eslint, typescript, reqwest, and windows-sys are significantly ahead of current stable releases or do not exist in their respective registries, which will cause build and installation failures.
| @@ -1,5 +1,5 @@ | |||
| [build-system] | |||
| requires = ["setuptools==80.9.0", "setuptools-scm==9.2.0"] | |||
| requires = ["setuptools==82.0.1", "setuptools-scm==9.2.2"] | |||
| "protobuf", | ||
| "sentencepiece>=0.2.0", | ||
| "datasets>=3.4.1,!=4.0.*,!=4.1.0,<4.4.0", | ||
| "datasets>=4.0,<4.6", |
| "@biomejs/biome": "^2.4.15", | ||
| "@eslint/js": "^10.0.1", | ||
| "@types/js-yaml": "^4.0.9", | ||
| "@types/node": "^25.5.2", | ||
| "@types/react": "^19.2.5", | ||
| "@types/react-dom": "^19.2.3", | ||
| "@vitejs/plugin-react": "^6.0.1", | ||
| "eslint": "^9.39.1", | ||
| "eslint": "^10.3.0", | ||
| "eslint-plugin-react-hooks": "^7.0.1", | ||
| "eslint-plugin-react-refresh": "^0.5.2", | ||
| "globals": "^17.4.0", | ||
| "playwright": "^1.59.1", | ||
| "typescript": "~5.9.3", | ||
| "typescript": "~6.0.3", |
There was a problem hiding this comment.
| hmac = "0.13" | ||
| sha2 = "0.11" | ||
| reqwest = { version = "0.13", features = ["json"] } |
| [target.'cfg(windows)'.dependencies] | ||
| windows = { version = "0.62.2", features = ["Win32_System_Threading"] } | ||
| windows-sys = { version = "0.59", features = ["Win32_Foundation", "Win32_Security", "Win32_System_Console", "Win32_System_JobObjects", "Win32_System_Threading"] } | ||
| windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_Security", "Win32_System_Console", "Win32_System_JobObjects", "Win32_System_Threading"] } |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: da627d5b8c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "protobuf", | ||
| "sentencepiece>=0.2.0", | ||
| "datasets>=3.4.1,!=4.0.*,!=4.1.0,<4.4.0", | ||
| "datasets>=4.0,<4.6", |
There was a problem hiding this comment.
Exclude datasets versions that import_fixes rejects
With this widened constraint, pip can install datasets 4.4.x or 4.5.0 for the huggingfacenotorch extra, but unsloth/import_fixes.py::patch_datasets() immediately raises NotImplementedError for datasets >= 4.4.0 and <= 4.5.0 during initialization. In that environment the package installs successfully and then fails on import, so the dependency spec needs to keep excluding the versions the runtime explicitly rejects.
Useful? React with 👍 / 👎.
| "@assistant-ui/core": "0.2.0", | ||
| "@assistant-ui/react": "0.14.0", | ||
| "@assistant-ui/react-markdown": "0.14.0", | ||
| "@assistant-ui/react-streamdown": "0.3.0", | ||
| "@assistant-ui/tap": "0.5.11", |
There was a problem hiding this comment.
Regenerate the frontend lockfile with these dependency bumps
The bumped dependencies in package.json are not reflected in studio/frontend/package-lock.json: the lockfile root and node_modules entries still pin the old versions (for example @assistant-ui/core remains 0.1.17, @dagrejs/dagre remains 2.0.4, and recharts remains 3.7.0). Workflows such as studio-frontend-ci.yml and the smoke builds use npm ci/the committed lockfile, so this dependency update is not reproducible from the lock and the audited/cached dependency graph remains stale until the lockfile is regenerated.
Useful? React with 👍 / 👎.
da627d5 to
781a86e
Compare
Validation runProbed this PR locally with Breakage caughtThe original Root cause: #5365 bumps These come from #5365's other bumps: FixForce-pushed End-to-end smoke against the amended branchBooted Studio from the install at
Not exercised (deliberately)
Pre-existing install gap (NOT caused by this PR)
|
Consolidates eight of the ten open dependabot PRs into a single review surface. Two are intentionally left out because they bundle breaking-change deps that need source migration outside the scope of a combine PR; dependabot recreates them on the next weekly tick: - #5364 (cargo-tauri group, 13 updates) bumps hmac 0.12 -> 0.13 which removes Hmac::new_from_slice from the inherent impl, so studio/src-tauri/src/native_backend_lease.rs:152 fails to compile (error E0599). Also bumps sha2 0.10 -> 0.11 and reqwest 0.12 -> 0.13 which have their own migration surfaces. Needs a focused PR after the source migration. - #5365 (bun-frontend group, 14 updates) bumps TypeScript 5.9 -> 6.0 promoting the baseUrl deprecation to a hard tsc error, plus @assistant-ui/react 0.12 -> 0.14 renaming the unstable_* exports, react-day-picker 9 -> 10 dropping the table classname, and recharts 3.7 -> 3.8.1 tightening the Key prop type. Same shape: needs a focused frontend migration PR. The remaining eight land cleanly: - #4916 oxc-parser 0.123.0 -> 0.129.0 in /studio/backend/core/ data_recipe/oxc-validator (npm-oxc-validator group) - #5343 hono 4.12.17 -> 4.12.18 and ip-address 10.1.0 -> 10.2.0 in /studio/frontend (security advisory: GHSA-p77w-8qqv-26rm, GHSA-qp7p-654g-cw7p, GHSA-hm8q-7f3q-5f36) - #5362 python group (3 updates) in pyproject.toml - #5363 actions group (3 updates) in release-desktop / security-audit / studio-tauri-smoke workflows - #5366 openssl 0.10.76 -> 0.10.79 (security) - #5367 rand 0.10.0 -> 0.10.1 (security) - #5368 tauri 2.10.3 -> 2.11.1 (security; transitive bumps for tray-icon and wry come along) - #5369 rustls-webpki 0.103.10 -> 0.103.13 (security) studio/src-tauri/Cargo.toml stays at main's values (hmac 0.12, sha2 0.10, reqwest 0.12, rand 0.10.0, windows-sys 0.59); Cargo.lock is regenerated by running cargo update -p <pkg> --precise <ver> for each of the four security advisories on top of main, so only the four pinned packages move and the rest of the dep graph stays identical to main. Validated locally: cargo check passes through the Rust source; the only error is the build-time frontendDist check unrelated to source.
781a86e to
fadf48f
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fadf48f562
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "core-foundation 0.10.1", | ||
| "core-graphics", | ||
| "crossbeam-channel", | ||
| "dbus", |
There was a problem hiding this comment.
Add libdbus headers for upgraded tao
With the Tauri bump, tao now pulls in dbus/libdbus-sys, whose build script needs the system dbus-1 pkg-config headers. The Linux Tauri workflows I checked (studio-tauri-smoke.yml and release-desktop.yml) only install the existing WebKit/appindicator/rsvg/xdo/ssl/patchelf packages, so an ubuntu-22.04 build that does not already have libdbus-1-dev will fail while compiling libdbus-sys before any Rust code is checked; add libdbus-1-dev to the native dependency install or avoid this tao upgrade.
Useful? React with 👍 / 👎.
Re-reviewed against current main: closing in favour of #10138Picked this back up and re-checked it against 1. The branch is 2,846 commits behind main, and most of it is now a downgradeThe base here is
Only two items are genuinely still needed, and the 2. The datasets change would break a fresh installThis is the blocking one, independent of the staleness.
The range would also re-admit Worth noting why CI did not catch this: no PR-triggered job installs the If the ceiling should be raised, the right shape is already sitting unmerged on Also worth correcting for the recordThe description above is stale relative to the final head Separately, the two Replacement#10138 carries the live subset against current Closing this one. |
… 10.3.1 (#10138) Carries the only two dependency updates from the stale combine PR #5374 that current main has not already moved past. Everything else in that PR (the action SHA pins, oxc-parser, hono, tauri, rand, openssl, rustls-webpki) has since been advanced further on main by later Dependabot runs, so merging it would move main backwards. setuptools 80.9.0 -> 82.0.1 and setuptools-scm 9.2.0 -> 9.2.2 in [build-system] requires. Verified with a local `python -m build`: sdist and wheel both build, and the wheel still ships studio/frontend/dist (703 assets including index.html), which is the assertion wheel-smoke.yml makes and the one that depends on setuptools-scm's sdist file finder. ip-address override 10.1.1 -> 10.3.1. 10.3.1 is the first version that clears all four open advisories: GHSA-mwp4-54f8-5fhr (high, affects <= 10.3.0), GHSA-4xrf-jv44-h6hh (fixed 10.2.2), GHSA-22jq-vg5j-6vgg (fixed 10.2.1) and GHSA-v2v4-37r5-5v8g (fixed 10.1.1). The 10.2.0 that #5374 proposed would have cleared neither of the first two. `npm audit` now reports ip-address clean. Deliberately NOT carried over from #5374: its pyproject change relaxing the datasets pin to `datasets>=4.0,<4.6`. That range resolves to datasets 4.5.0, and patch_datasets() in unsloth/import_fixes.py raises NotImplementedError for 4.4.0 through 4.5.0, so it would make a fresh install fail at import. The express-rate-limit bump from #5374 is also dropped as unnecessary: the ip-address override governs the resolved version regardless of which express-rate-limit is installed. Co-authored-by: danielhanchen <[email protected]> Co-authored-by: oobabooga <[email protected]>
Summary
Consolidates the ten open Dependabot PRs into a single review surface. Each individual PR's intended bump is preserved in the merged manifests + lockfiles; the security advisories are still pinned to their CVE-fix versions.
How the conflicts were resolved
Non-cargo PRs touch disjoint files, so they apply cleanly side by side:
For /studio/src-tauri, #5364 sets the broad Cargo.toml + Cargo.lock baseline. The four security PRs all touch the same Cargo.lock, so the lockfile was regenerated by running:
```bash
cargo update -p openssl --precise 0.10.79 # #5366
cargo update -p tauri --precise 2.11.1 # #5368
cargo update -p rustls-webpki --precise 0.103.13 # #5369
```
`rand` is already at 0.10.1 from #5364's Cargo.toml bump, which covers #5367.
`openssl` resolved to "not in dep tree" after #5364's `reqwest 0.12 -> 0.13` bump, because reqwest 0.13's default features use rustls and no longer pull openssl in. This is a stricter outcome than #5366's intended 0.10.79 pin, and is the same change Dependabot would have produced if its group config covered security updates (see #5372 for the config follow-up that locks this behaviour in).
Test plan
Follow-up
#5372 adds `applies-to: security-updates` sibling groups so future CVE-heavy weeks batch automatically without a manual combine PR.