Skip to content

Prune leftover vitest 4 packages from bun.lock - #718

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/fix-frozen-lockfile-a681
Oct 15, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/fix-frozen-lockfile-a681

Conversation

@0thernet

@0thernet 0thernet commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Restore bun install --frozen-lockfile after sequential Dependabot merges left unused vitest 4.1.11 packages in bun.lock, and run Worker tests on vitest 5.0.4.

Why

#404 reports the latest benchmarks-mode refresh as unhealthy: run 38742460171 failed at DEPENDENCIES_OUTCOME=failure with bun 1.3.14’s “lockfile had changes, but lockfile is frozen.” Every source was skipped.

That SHA already included Dependabot #713–#715. Each PR updated package.json and bun.lock on its own, but the merged lockfile still listed vitest 4.1.11 packages that bun now wants to prune (@vitest/pretty-format, @vitest/runner, @vitest/snapshot, @vitest/utils, tinyrainbow, and @vitest/snapshot/magic-string). Frozen install treats that prune as a lockfile change.

#715 also left Worker / Worker gates red: vitest 5.0.4 turns fsModuleCache on by default, and @cloudflare/vitest-plugin 1.4.0’s workerd runner fails every file with readAll ENOENT on node_modules/.vitest-cache (cloudflare/workers-sdk#16237).

Change

  • Regenerated bun.lock with bun 1.3.14 (the version CI and packageManager pin). Twelve stale vitest 4 lines removed. package.json is unchanged.
  • --frozen-lockfile is still required; this does not weaken CI.
  • Set fsModuleCache: false in the Worker vitest config so tests run on vitest 5.0.4. Vitest is not downgraded.

Verification

  • bun install --frozen-lockfile failed on a clean checkout of de653a7 (then-current main).
  • After the lockfile prune, the same command succeeded on a clean node_modules tree, in an isolated temp directory, in CI Checks, and on the Vercel preview install.
  • bun run usage:worker:check: 43 files, 733 tests passed on vitest 5.0.4.

Cargo / rustls is out of scope (handled separately).

#404

Open in Web Open in Cursor 

Sequential Dependabot merges of #713–#715 left unused vitest 4.1.11
entries in bun.lock. bun 1.3.14 then refused frozen installs, so the
benchmarks-mode data refresh skipped every source.

Co-authored-by: hraness <0thernet@users.noreply.github.com>
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
aicharts Ready Ready Preview Oct 15, 2026 1:55pm UTC

Request Review

vitest 5.0.4 turns filesystem module caching on by default.
@cloudflare/vitest-plugin 1.4.0 then fails every workerd file with
readAll ENOENT on node_modules/.vitest-cache. Keep vitest 5.0.4 and
turn that cache off until a plugin release reads the files from Node.

Co-authored-by: hraness <0thernet@users.noreply.github.com>
@cursor
cursor Bot enabled auto-merge (squash) October 15, 2026 13:54
@cursor
cursor Bot merged commit b3064c8 into main Oct 15, 2026
19 of 20 checks passed
@cursor
cursor Bot deleted the cursor/fix-frozen-lockfile-a681 branch October 15, 2026 14:05
cursor Bot pushed a commit that referenced this pull request Oct 15, 2026
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
Security on `main` was red because `rustls@0.23.45` matches four new
advisories: RUSTSEC-2026-0346, RUSTSEC-2026-0347, RUSTSEC-2026-0348, and
RUSTSEC-2026-0349. The published patch is `rustls >= 0.23.46`.

Rebased onto `main` after #718 (bun.lock prune + Worker vitest 5
`fsModuleCache` fix). This PR is rustls only.

- `crates/aicharts-cli/Cargo.toml` exact pin `=0.23.45` → `=0.23.46`
- `Cargo.lock` package and checksum (the path `bun run security:check`
audits)
- `distribution/cli/linux-notices.json` version and archive checksum so
Required's notices gate stays bound to the lockfile
- License files in 0.23.46 are byte-identical to 0.23.45, so notice file
hashes stay

`cargo update -p rustls --precise 0.23.46` did not re-resolve other
crates.

Local verification before rebase:

- `cargo audit --file Cargo.lock`: 0 vulnerabilities; RUSTSEC-2026-0346
through 0349 absent
- `bun run security:check`: all lanes pass, including
`cargo-audit:Cargo.lock`
- `bun run release:linux:notices:check`: 37/37
- `cargo test -p aicharts-cli --bin aicharts https`: 40 passed

Warnings that remain (pre-existing, recorded only): unmaintained
`bincode@1.3.3`, yanked `yoke-derive@0.8.3`

Will squash-merge when Required is green.
<!-- CURSOR_AGENT_PR_BODY_END -->

<div><a
href="https://cursor.com/agents/bc-554ecace-5d43-5178-8a7f-2a43b9052963?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-554ecace-5d43-5178-8a7f-2a43b9052963&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div>

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: hraness <0thernet@users.noreply.github.com>

This branch was successfully deployed

1 active deployment
Preview — bab97ada Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants