Skip to content

update: bring Rust, web and pnpm dependencies to latest - #2819

Merged
inureyes merged 2 commits into
mainfrom
update/upgrade-deps-20261101
Nov 1, 2026
Merged

inureyes merged 2 commits into
mainfrom
update/upgrade-deps-20261101

Conversation

@inureyes

@inureyes inureyes commented Nov 1, 2026

Copy link
Copy Markdown
Member

Brings dependencies to latest before v0.8.0. pnpm moves from 11.18.0 to 12.16.1, with the pins in package.json, ci.yml, build_bundle.py, the bundle manifest and the docs updated. cargo deny advisories pass, and the stale RUSTSEC-2026-0202 ignore is removed because cxx 1.0.205 no longer matches it.

Major bumps and migrations

Package Version Migration
axum, tower, tower-http 0.7 to 0.8, 0.4 to 0.5, 0.5 to 0.7 Routes use {id} and {*path}. URLs are unchanged. --api-prefix values containing { or } are now refused, since axum would panic on them.
reqwest 0.12 to 0.13 rustls-no-provider, with ring installed by src/http_tls.rs. No aws-lc-rs in the build.
sha2 0.10 to 0.11 Digests no longer format as hex; src/sha256_hex.rs replaces {:x}.
symphonia 0.5 to 0.6 New decoding API; gapless trimming stays off, so sample output is unchanged.
minijinja 2 to 3 Value::from(Serde(..)), and whitespace settings in SyntaxConfig.
tokenizers, serde-saphyr, rcgen, criterion 0.23, 2, 0.14, 0.8 API updates.
safetensors, toml, lz4_flex, rustyline, dirs, fancy-regex, base64, sentencepiece, tokio-tungstenite latest No code change.
lucide-react, TypeScript, @types/node, others 1.66, 6.0.3, 26 Site brand icons moved to brand-icons.tsx, lockfile tests read pnpm 12's last document.

Behavior changes

  • HTTPS through reqwest now verifies against the OS trust store instead of bundled webpki roots. MLXCEL_EXTRA_CA_CERTS still applies. hf-hub keeps its own stack.
  • minijinja 3 changes template semantics: a list or dict rendered directly uses Python quoting, // and % floor, round is half-even, and division by zero is an error. No output changed on the checkpoints below; a template outside them could differ.

WebUI fixes exposed by the bumps

  • A failed route chunk could leave an empty page, because each render gave use() a new promise. A failed chunk now stays failed and reaches the reload banner.
  • axe 4.14 flagged the brand link and loaded-model chip names under WCAG 2.5.3. The monogram moved to CSS, and the chip's visible text now matches its name.

Held back

  • hf-hub 0.5: 1.0 forces aws-lc-rs through hf-xet and has no sync API. This keeps reqwest 0.12 and native-tls in the graph, as before.
  • TypeScript 6.0.3: typescript-eslint 8.72 requires below 6.1.
  • Transitive, pinned by parents: matchit (axum), generic-array (crypto-common).
  • minimatch in webpage/site: 1 moderate advisory through eslint's own requirement, dev only. WebUI production dependencies have no advisory.

Validation

  • make verify: 14917 passed, 0 failed. WebUI unit 777, Chromium 128, engine smoke 21, bundle reproducibility, and site build and lint pass.
  • 12 real checkpoints against the previous build: identical generate output, /apply-template with and without tools, and /tokenize.
  • HTTPS download through the new client, and acceptance test 3 at 2.019x.

Not validated locally: Windows and Linux builds (left to CI), mlxcel-xla under iree and spike/iree-ffi (need IREE_DIST).

Moves every declared Rust and web dependency to its latest release ahead of v0.8.0, and pnpm from 11.18.0 to 12.16.1. hf-hub stays on 0.5 because 1.0 forces aws-lc-rs through hf-xet and has no sync API. TypeScript stays on 6.0.3 because typescript-eslint does not accept 7.0.

Migrations: axum 0.8 route syntax, reqwest 0.13 with ring installed as the rustls provider through `src/http_tls.rs`, sha2 0.11 hex formatting through `src/sha256_hex.rs`, symphonia 0.6, minijinja 3, tokenizers 0.23, serde-saphyr 2, rcgen 0.14 and criterion 0.8. lucide-react 1.x dropped brand icons, so the site carries its own.

The new versions also exposed two WebUI defects, fixed here: a failed route chunk left an empty page because each render handed use() a new promise, and axe 4.14 flagged the brand link and loaded-model chip names (WCAG 2.5.3).

Validated with `make verify` (14917 passed, 0 failed), identical generate output, templates and tokens against the previous build on 12 checkpoints, and an HTTPS download.
@inureyes inureyes added type:enhancement New features, capabilities, or significant additions type:dependency Dependency updates priority:high High priority status:review Under review and removed type:enhancement New features, capabilities, or significant additions labels Nov 1, 2026
@inureyes
inureyes merged commit 95ea652 into main Nov 1, 2026
30 of 33 checks passed
@inureyes
inureyes deleted the update/upgrade-deps-20261101 branch November 1, 2026 15:41
@inureyes inureyes added status:done Completed and removed status:review Under review labels Nov 1, 2026
inureyes added a commit that referenced this pull request Nov 2, 2026
safetensors 0.8 returns `&str` from `SafeTensors::names()`, so the `name.as_str()` left in the Youtu-VL runtime resolved to the unstable `str_as_str` library feature and broke `cargo check --features cuda,xla-iree`, the first of the OpenXLA job's two steps. `required` is a `BTreeSet<&str>`, so it takes the borrowed name directly.

The second step, `xla-diagnostics`, then failed on four `format!("{:x}", Sha256::digest(..))` sites: sha2 0.11 returns a `hybrid_array::Array` that no longer implements `LowerHex`. Three are reachable in that job (Gemma3n diagnostics, the Molmo diagnostics support module) and one sits behind `xla-reference-diagnostics`, which CI does not compile; all now call the `sha256_hex` helper #2819 added for exactly this reason.

Validation: `cargo check --features cuda,xla-iree --all-targets`, `cargo check --no-default-features --features xla-diagnostics --all-targets`, and `cargo check --features xla-reference-diagnostics --all-targets` against the provisioned IREE runtime on spark-102, all exit 0.

Closes #2820
inureyes added a commit that referenced this pull request Nov 2, 2026
safetensors 0.8 returns `&str` from `SafeTensors::names()`, so the `name.as_str()` left in the Youtu-VL runtime resolved to the unstable `str_as_str` library feature and broke `cargo check --features cuda,xla-iree`, the first of the OpenXLA job's two steps. `required` is a `BTreeSet<&str>`, so it takes the borrowed name directly.

The second step, `xla-diagnostics`, then failed on four `format!("{:x}", Sha256::digest(..))` sites: sha2 0.11 returns a `hybrid_array::Array` that no longer implements `LowerHex`. Three are reachable in that job (Gemma3n diagnostics, the Molmo diagnostics support module) and one sits behind `xla-reference-diagnostics`, which CI does not compile; all now call the `sha256_hex` helper #2819 added for exactly this reason.

Validation: `cargo check --features cuda,xla-iree --all-targets`, `cargo check --no-default-features --features xla-diagnostics --all-targets`, and `cargo check --features xla-reference-diagnostics --all-targets` against the provisioned IREE runtime on spark-102, all exit 0.

Closes #2820
inureyes pushed a commit that referenced this pull request Nov 15, 2026
## Summary

Closes #1670.

`.github/dependabot.yml` had `cargo` and `github-actions` entries only. Add the two roots the issue names:

| Ecosystem | Directory | Why |
|---|---|---|
| `pip` | `/python` | Python client, gated by `.github/workflows/python.yml` |
| `npm` | `/webpage/site` | Download webpage, committed `pnpm-lock.yaml` |

Both copy the `cargo` entry's conventions: weekly Monday 09:00 Asia/Seoul, a `minor-and-patch` group, semver-major ignored, label `type:dependency`, commit prefix `deps` with scope. `open-pull-requests-limit` is 5 (the actions entry's value) because these roots are small.

## Decisions

- **No `versioning-strategy` override for pip.** `python/pyproject.toml` declares lower bounds (`openai>=1.40`, `httpx>=0.27`) for a published library; Dependabot's default (`auto`) applies `widen` to libraries, which leaves floors alone; whether it classifies this package as a library is not something I could verify offline. An explicit `increase` would raise the supported minimum for every user.
- **TypeScript held to patch releases in the npm block.** `pnpm-lock.yaml` shows `[email protected]` peering on `typescript: '>=4.8.4 <6.1.0'`, and the v0.8.0 dependency update (#2819, technical report 2819) already pinned TypeScript at 6.0.3 for that reason. Without the ignore, the first weekly run would open a PR that breaks `eslint`. The comment in the file follows the style of the existing `dtolnay/rust-toolchain` entry.
- **`next` and `eslint-config-next` move together.** Both are exact-pinned to the same version, so the single `minor-and-patch` group puts them in one PR.

## Verification

- `yaml.safe_load` parses the file and lists `cargo /`, `github-actions /`, `pip /python`, `npm /webpage/site`.
- `type:dependency` is an existing repository label.
- Not verified: an actual Dependabot run. It only happens on the default branch, so the first scheduled run (or the Dependabot tab's "Check for updates") after merge is the real test. In particular I could not confirm that Dependabot's pnpm support reads the pnpm 12 lockfile format that #2819 introduced; if it does not, the npm block will report an error in the Dependabot tab and needs a follow-up.
- Config-only change; no Rust or Python code touched, so `cargo` checks do not apply.

## Out of scope

`webui/` (pnpm, `@lablup/mlxcel-webui`) is a third dependency root with no Dependabot coverage. The issue names only `python/` and `webpage/site`, so I left it; it would take the same shape of block and the same TypeScript hold.
inureyes added a commit that referenced this pull request Nov 16, 2026
…st (#3115)

`server::chat_template_json::tests::non_string_object_keys_are_coerced_like_python` fails on main after #2819.

minijinja's `Value` now compares `true` equal to `1`, as Python does, so a map with both keys keeps one entry. The test expected `{"1": "a", "true": "b"}`, but the code now produces `{"1": "b"}`, which is exactly `json.dumps({1: "a", True: "b"})`. The code is right and the test's expectation was wrong.

The test now checks each coercion with its own map, and pins the collision case to Python's result. The `chat_template_json` tests pass (21).
@inureyes inureyes added this to the 0.8 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:high High priority status:done Completed type:dependency Dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant