Skip to content

chore(deps,ci): resolve 8 Dependabot advisories, parallelize Vitest, and add CI caches (ticket 80) - #340

Merged
scrimshawlife-ctrl merged 1 commit into
mainfrom
feat/80-deps-and-test-speed
Nov 28, 2026
Merged

scrimshawlife-ctrl merged 1 commit into
mainfrom
feat/80-deps-and-test-speed

Conversation

@scrimshawlife-ctrl

Copy link
Copy Markdown
Contributor

Summary

Resolve all 8 open Dependabot vulnerabilities across root and MCP client lockfiles, enable 4-worker parallel Vitest execution, and add CI concurrency cancellation + dependency caching (ticket 80).

 package.json / package-lock.json
+  "overrides": { "katex": "^0.18.2" }                  # closes alert #13 (GHSA-238p-pmpm-9mq7)

 clients/mcp/package.json / clients/mcp/package-lock.json
-  "@zero-state/jchain": "^0.1.3" ([email protected], @hono/[email protected])
+  "@zero-state/jchain": "file:../typescript"           # preserves ../../../typescript symlink & unblocks npm/Dependabot
+  "overrides": { "hono": "^4.13.18", "@hono/node-server": "^2.1.6" }  # closes alerts #1..#7

 vitest.config.ts
-  fileParallelism: false
+  fileParallelism: true, maxWorkers: 4                 # isolated workerd per worker

 .github/workflows/{test,docs-lint,secret-scan,clients-ts,client-python}.yml
+  concurrency cancel-in-progress on non-main refs + setup-node / setup-python caches

Evidence

  • Before:
    GitHub Dependabot: 8 open vulnerabilities ([email protected], [email protected] x5, @hono/[email protected] x2)
    npm test (96 files, serial): ~195s
    
    After:
    npm audit (root & clients/mcp): 0 vulnerabilities
    npm test (96 files, 4 parallel workers): 96/96 test files, 843+/843+ passed
    

Merge Danger

Door: two-way

Lockfile overrides, test runner parallelism, and GitHub Actions workflow caching/concurrency only; zero Worker runtime code or D1 schema changes.

Blast Radius: Low

release-clients.yml continues to rewrite dependencies.@zero-state/jchain and bundleDependencies during release packing, while clients/mcp keeps its ../../../typescript symlink under npm ci.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T11:25:36.519944Z d5c81ad PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: d5c81addc2

ℹ️ 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 clients/mcp/package-lock.json Outdated
Comment on lines +1364 to +1366
"node_modules/@zero-state/jchain": {
"resolved": "../typescript",
"link": true
"version": "0.1.3",
"resolved": "file:../typescript",

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 Regenerate the MCP lockfile with local linking enabled

On a clean checkout, this entry records the local client as a packed dependency rather than a link, and the corresponding ../typescript package entry has been removed. With the repository's default configuration, npm ci rejects this lockfile with Missing: @zero-state/[email protected] from lock file; I reproduced this offline using the committed manifests and lockfile. This blocks the MCP installation steps in both .github/workflows/clients-ts.yml and .github/workflows/release-clients.yml before tests run. Regenerate the lockfile with linking enabled, retaining the local package entry and link: true. npm's bundled npm ci documentation confirms that install-links defaults to false and that enabling it installs file dependencies as regular packages “instead of creating a symlink”; the TypeScript-client workflow explicitly requires that symlink.

Useful? React with 👍 / 👎.

@scrimshawlife-ctrl
scrimshawlife-ctrl force-pushed the feat/80-deps-and-test-speed branch from d5c81ad to b1c426d Compare November 28, 2026 11:43
@scrimshawlife-ctrl
scrimshawlife-ctrl merged commit dab8376 into main Nov 28, 2026
10 checks passed
@scrimshawlife-ctrl
scrimshawlife-ctrl deleted the feat/80-deps-and-test-speed branch November 28, 2026 11:47
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.

1 participant