Skip to content

deps: combine open dependabot PRs into one batched update - #5374

Closed
danielhanchen wants to merge 1 commit into
mainfrom
combine-dependabot-2026-05-11
Closed

danielhanchen wants to merge 1 commit into
mainfrom
combine-dependabot-2026-05-11

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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.

PR Ecosystem Change
#4916 npm-oxc-validator oxc-parser 0.123.0 -> 0.129.0
#5343 npm /studio/frontend hono 4.12.17 -> 4.12.18, ip-address 10.1.0 -> 10.2.0 (GHSA-p77w-8qqv-26rm, GHSA-qp7p-654g-cw7p, GHSA-hm8q-7f3q-5f36)
#5362 pip python group, 3 updates
#5363 github-actions actions group, 3 updates across release-desktop / security-audit / studio-tauri-smoke
#5364 cargo-tauri 13 updates: hmac 0.12 -> 0.13, sha2 0.10 -> 0.11, reqwest 0.12 -> 0.13, tauri-plugin-opener 2.5.3 -> 2.5.4, rand 0.10.0 -> 0.10.1, windows-sys 0.59 -> 0.61, plus transitive bumps
#5365 bun /studio/frontend bun-frontend group, 14 updates
#5366 cargo openssl 0.10.76 -> 0.10.79 (security)
#5367 cargo rand 0.10.0 -> 0.10.1 (security; same target as #5364)
#5368 cargo tauri 2.10.3 -> 2.11.1 (security)
#5369 cargo rustls-webpki 0.103.10 -> 0.103.13 (security)

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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread pyproject.toml
@@ -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"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The versions specified for setuptools (82.0.1) and setuptools-scm (9.2.2) do not exist in the public PyPI registry. The current latest stable versions are 75.x and 8.x respectively. This will cause installation failures.

Comment thread pyproject.toml
"protobuf",
"sentencepiece>=0.2.0",
"datasets>=3.4.1,!=4.0.*,!=4.1.0,<4.4.0",
"datasets>=4.0,<4.6",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The datasets package is currently at version 3.x. Version 4.0 has not been released. This version constraint will prevent the environment from being resolved.

Comment thread studio/frontend/package.json Outdated
Comment on lines +87 to +99
"@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",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Several dependencies in this block are set to non-existent versions: @biomejs/biome (2.4.15), @eslint/js (10.0.1), eslint (10.3.0), and typescript (6.0.3). These versions are significantly ahead of current stable releases (e.g., ESLint 9.x, TypeScript 5.x) and will cause bun install to fail.

Comment thread studio/src-tauri/Cargo.toml Outdated
Comment on lines +15 to +17
hmac = "0.13"
sha2 = "0.11"
reqwest = { version = "0.13", features = ["json"] }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The versions for hmac (0.13), sha2 (0.11), and reqwest (0.13) are not available on crates.io. reqwest is currently at 0.12.x, and the others are at 0.12.x and 0.10.x respectively.

Comment thread studio/src-tauri/Cargo.toml Outdated
[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"] }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The version 0.61 for windows-sys does not exist. The current latest version is 0.59.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread pyproject.toml
"protobuf",
"sentencepiece>=0.2.0",
"datasets>=3.4.1,!=4.0.*,!=4.1.0,<4.4.0",
"datasets>=4.0,<4.6",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment thread studio/frontend/package.json Outdated
Comment on lines +19 to +23
"@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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@danielhanchen
danielhanchen force-pushed the combine-dependabot-2026-05-11 branch from da627d5 to 781a86e Compare May 11, 2026 12:58
@danielhanchen

Copy link
Copy Markdown
Member Author

Validation run

Probed this PR locally with test_unsloth_studio.py --pr 5374 pointed at an env-mode install under UNSLOTH_STUDIO_HOME=temp/studio_pr5374/studio. One real breakage surfaced; pushed a fix and re-ran end to end. Summary below.

Breakage caught

The original combine-dependabot-2026-05-11 branch (sha da627d5b) included #5365 (bun-frontend group, 14 updates). Frontend build failed during unsloth studio update:

> tsc -b && vite build

tsconfig.app.json(26,5): error TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0.
  Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.

Root cause: #5365 bumps typescript ~5.9.3 -> ~6.0.3, which promotes the baseUrl deprecation to a hard tsc error. With baseUrl removed, three additional TS errors surface:

src/features/chat/runtime-provider.tsx(17,8): error TS2724:
  '"@assistant-ui/react"' has no exported member named 'unstable_RemoteThreadListAdapter'. Did you mean 'RemoteThreadListAdapter'?
src/features/chat/runtime-provider.tsx(22,3): error TS2724:
  '"@assistant-ui/react"' has no exported member named 'unstable_useRemoteThreadListRuntime'. Did you mean 'useRemoteThreadListRuntime'?
src/components/ui/calendar.tsx(93,9): error TS2353:
  Object literal may only specify known properties, and 'table' does not exist in type 'Partial(ClassNames)'.
src/components/ui/chart.tsx(287,17): error TS2322:
  Type 'string | number | ((obj: any) => any) | undefined' is not assignable to type 'Key | null | undefined'.

These come from #5365's other bumps: @assistant-ui/react 0.12.28 -> 0.14.0 (renamed the unstable_* exports to non-prefixed), react-day-picker ^9.13.2 -> ^10.0.0 (dropped the table classname), recharts 3.7.0 -> 3.8.1 (tighter Key prop type). Each needs source migration in src/features/chat/runtime-provider.tsx, src/components/ui/calendar.tsx, src/components/ui/chart.tsx, and the two tsconfig*.json files. Out of scope for a "combine open dependabot PRs" exercise.

Fix

Force-pushed 781a86ec which drops #5365 from this combine PR. The other nine (security advisories #5343, #5366, #5367, #5368, #5369 and version groups #4916, #5362, #5363, #5364) are unchanged. Dependabot will recreate #5365 on its next weekly tick, and that can land as a focused PR after the source migration above.

End-to-end smoke against the amended branch

Booted Studio from the install at temp/studio_pr5374/studio with UNSLOTH_STUDIO_HOME set:

Surface Result
Frontend build (tsc -b && vite build) PASS, 0 errors, vite bundle 3.29 MB / 920 kB gzip
Studio venv install (pyproject.toml bumps from #5362: setuptools 80.9 -> 82.0.1, setuptools-scm 9.2.0 -> 9.2.2, datasets 3.4.1 -> 4.0/4.6) PASS, no resolver errors
GET /api/health 200 {"status":"healthy","version":"2026.5.2",...}
POST /api/auth/login (bootstrap password) 200, returned JWT
POST /api/auth/change-password 200
POST /api/inference/load with unsloth/gemma-3-270m-it-GGUF + UD-Q4_K_XL 200, status=loaded, is_gguf=true
POST /v1/chat/completions (model=default, temperature=0, seed=3407) 200, finish_reason=stop, non-empty content (The single word is **tree**.)

Not exercised (deliberately)

  • Tauri desktop shell. PR touches studio/src-tauri/Cargo.toml (tauri 2.10.3 -> 2.11.1, reqwest 0.12 -> 0.13, windows-sys 0.59 -> 0.61, plus the four security pins). The local install runs in CLI/server mode only; the studio-tauri-smoke.yml workflow covers desktop-build smoke on CI.
  • Frontend in-browser UI under Playwright. Probe pre-flight crashed unrelated to this PR (test_unsloth_studio.py ran import unsloth; print(unsloth.__file__) against the workspace's namespace-package install where unsloth.__file__ is None, raising TypeError). The frontend bundle builds clean and the chat path works end to end at the API layer; full UI rendering will be covered by the studio-mac-ui / studio-ui smoke workflows once this lands.

Pre-existing install gap (NOT caused by this PR)

unsloth studio update finished with python dependencies up to date but the venv did NOT contain fastapi, structlog, uvicorn, python-multipart, or aiosqlite. I had to uv pip install -r studio/backend/requirements/no-torch-runtime.txt plus the missing extras manually to get Studio to boot. This reproduces against main and is unrelated to the dep bumps; flagging here so it's not mis-attributed to 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.
@danielhanchen
danielhanchen force-pushed the combine-dependabot-2026-05-11 branch from 781a86e to fadf48f Compare May 12, 2026 00:39

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@danielhanchen

Copy link
Copy Markdown
Member Author

Re-reviewed against current main: closing in favour of #10138

Picked this back up and re-checked it against main as it stands today rather than against the base it was branched from. Two things came out of that, and together they mean this branch should not land.

1. The branch is 2,846 commits behind main, and most of it is now a downgrade

git rev-list --left-right --count HEAD...origin/main
1	2846

The base here is a6462876 from 2026-05-11. Since then the ordinary weekly Dependabot runs advanced nearly all of these same dependencies past the versions this PR pins. Item by item against current main:

Item This PR current main Effect of merging
actions/checkout v6.0.2 v7.0.1 downgrade
actions/setup-node v6.4.0 v7.0.0 downgrade
swatinem/rust-cache e18b4977 v2.9.2 6323deb1 downgrade
oxc-parser ^0.129.0 ^0.131.0 downgrade
hono 4.12.18 4.12.25 downgrade
tauri 2.11.1 2.11.5 downgrade
rand (direct) 0.10.1 0.10.2 downgrade
openssl 0.10.79 absent from the lock moot
rustls-webpki 0.103.13 0.103.13 already landed
setuptools / setuptools-scm 82.0.1 / 9.2.2 80.9.0 / 9.2.0 still wanted
ip-address 10.2.0 10.1.1 still wanted, but 10.2.0 is itself now behind
express-rate-limit 8.5.1 8.5.0 unnecessary, see below
datasets >=4.0,<4.6 old exclusions breaks installs, see below

Only two items are genuinely still needed, and the ip-address one has since become insufficient: 10.2.0 does not clear GHSA-mwp4-54f8-5fhr (high, affects <= 10.3.0) or GHSA-4xrf-jv44-h6hh (fixed 10.2.2). 10.3.1 is the first version that clears all four open advisories.

2. The datasets change would break a fresh install

This is the blocking one, independent of the staleness.

- "datasets>=3.4.1,!=4.0.*,!=4.1.0,<4.4.0"
+ "datasets>=4.0,<4.6"

patch_datasets() in unsloth/import_fixes.py raises NotImplementedError for datasets 4.4.0 through 4.5.0, and it is called unconditionally at import from unsloth/_gpu_init.py. The releases on PyPI inside [4.0, 4.6) are 4.0.0, 4.1.0, 4.1.1, 4.2.0, 4.3.0, 4.4.0, 4.4.1, 4.4.2, 4.5.0, so a resolver takes 4.5.0, which is inside the raise band. Confirmed both halves locally:

$ uv pip install --dry-run "datasets>=4.0,<4.6"
 + datasets==4.5.0

datasets==4.0.0   -> OK (guard passes)
datasets==4.1.0   -> OK (guard passes)
datasets==4.3.0   -> OK (guard passes)
datasets==4.4.0   -> RAISES NotImplementedError
datasets==4.4.1   -> RAISES NotImplementedError
datasets==4.4.2   -> RAISES NotImplementedError
datasets==4.5.0   -> RAISES NotImplementedError

The range would also re-admit 4.0.* and 4.1.0, excluded since #3392, with no rationale given for dropping them. And it leaves studio/backend/requirements/no-torch-runtime.txt on the old string, which mirrors that extra by hand.

Worth noting why CI did not catch this: no PR-triggered job installs the huggingfacenotorch extra, so nothing here ever resolves the constraint that was changed. The green checks on this PR are not evidence about the datasets range.

If the ceiling should be raised, the right shape is already sitting unmerged on trl-1x-datasets-caps, which keeps the guard band excluded while opening >= 4.6.

Also worth correcting for the record

The description above is stale relative to the final head fadf48f5. It claims a studio/src-tauri/Cargo.toml baseline from #5364 (hmac 0.12 -> 0.13, sha2 0.10 -> 0.11, reqwest 0.12 -> 0.13, tauri-plugin-opener 2.5.3 -> 2.5.4, windows-sys 0.59 -> 0.61), but the head does not touch Cargo.toml at all, only Cargo.lock. It also says openssl resolved to "not in dep tree", whereas openssl 0.10.79 is present in the head lockfile. That only became true on main later and for a different reason.

Separately, the two swatinem/rust-cache pins kept their trailing # v2.9.1 comment while the SHA moved off the v2.9.1 tag, and the release-desktop.yml action bumps were never exercised by any PR because that workflow is workflow_dispatch only.

Replacement

#10138 carries the live subset against current main: the setuptools build pins, and the ip-address override at 10.3.1 rather than 10.2.0. It drops the express-rate-limit bump, which is unnecessary since the override governs the resolved ip-address version anyway, and it does not touch datasets.

Closing this one.

danielhanchen added a commit that referenced this pull request Sep 6, 2026
… 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant