Skip to content

Conversation

@ochafik
Copy link
Contributor

@ochafik ochafik commented Jan 20, 2026

Problem

When running npm run test:e2e:docker:update on macOS (or any non-Linux host), the Docker container runs npm ci which installs Linux-native binaries (e.g., sharp). These overwrite the host's node_modules, causing issues when running local commands afterwards.

Solution

  1. Preserve node_modules: Move aside before Docker runs, restore after
  2. Expose port 9323: Access Playwright HTML report at http://localhost:9323
mv node_modules{,.local} && docker run -p 9323:9323 ... && rm -fR node_modules && mv node_modules{.local,}
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 20, 2026

Open in StackBlitz

@modelcontextprotocol/ext-apps

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/ext-apps@311

@modelcontextprotocol/server-basic-react

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-basic-react@311

@modelcontextprotocol/server-basic-vanillajs

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-basic-vanillajs@311

@modelcontextprotocol/server-budget-allocator

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-budget-allocator@311

@modelcontextprotocol/server-cohort-heatmap

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-cohort-heatmap@311

@modelcontextprotocol/server-customer-segmentation

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-customer-segmentation@311

@modelcontextprotocol/server-map

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-map@311

@modelcontextprotocol/server-pdf

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-pdf@311

@modelcontextprotocol/server-scenario-modeler

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-scenario-modeler@311

@modelcontextprotocol/server-shadertoy

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-shadertoy@311

@modelcontextprotocol/server-sheet-music

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-sheet-music@311

@modelcontextprotocol/server-system-monitor

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-system-monitor@311

@modelcontextprotocol/server-threejs

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-threejs@311

@modelcontextprotocol/server-transcript

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-transcript@311

@modelcontextprotocol/server-video-resource

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-video-resource@311

@modelcontextprotocol/server-wiki-explorer

npm i https://pkg.pr.new/modelcontextprotocol/ext-apps/@modelcontextprotocol/server-wiki-explorer@311

commit: 415ce6c

@ochafik ochafik marked this pull request as draft January 20, 2026 11:22
@ochafik ochafik force-pushed the ochafik/docker-node-modules branch from 0fbc825 to 3a0a8e2 Compare January 20, 2026 11:23
@ochafik ochafik changed the title fix(e2e): preserve host node_modules during docker snapshot update Jan 20, 2026
@ochafik ochafik marked this pull request as ready for review January 20, 2026 15:43
- Move node_modules aside before Docker to avoid host/container binary conflicts
- Restore after Docker completes
- Expose port 9323 and serve report on 0.0.0.0 on test failure
@ochafik ochafik force-pushed the ochafik/docker-node-modules branch from 3a0a8e2 to 415ce6c Compare January 20, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants