Skip to content

Commit 76543db

Browse files
committed
More fixes for failing CI workflows
1 parent 80111a9 commit 76543db

File tree

5 files changed

+26
-0
lines changed

5 files changed

+26
-0
lines changed

.github/workflows/build-and-test-extension.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141
- name: Install dependencies
4242
run: npm ci --include=optional --ignore-scripts
4343

44+
## esbuild's optional platform binary is normally wired up by its postinstall
45+
## script; .npmrc 'ignore-scripts=true' suppresses that, so rebuild here.
46+
- name: Rebuild esbuild platform binary
47+
run: npm rebuild esbuild --ignore-scripts=false
48+
4449
- name: Build server (dependency)
4550
run: npm run build -w server
4651

.github/workflows/build-server.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
run: npm ci --include=optional --ignore-scripts
4141
working-directory: .
4242

43+
## esbuild's optional platform binary is normally wired up by its postinstall
44+
## script; .npmrc 'ignore-scripts=true' suppresses that, so rebuild here.
45+
- name: Build Server - Rebuild esbuild platform binary
46+
run: npm rebuild esbuild --ignore-scripts=false
47+
4348
- name: Build Server - Clean previous build
4449
run: npm run clean
4550

.github/workflows/client-integration-tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ jobs:
6262
- name: MCP Integration Tests - Install node dependencies for client and server workspaces
6363
run: npm ci --workspace=client --ignore-scripts && npm ci --workspace=server --ignore-scripts
6464

65+
## esbuild's optional platform binary is normally wired up by its postinstall
66+
## script; .npmrc 'ignore-scripts=true' suppresses that, so rebuild here.
67+
- name: MCP Integration Tests - Rebuild esbuild platform binary
68+
run: npm rebuild esbuild --ignore-scripts=false
69+
6570
- name: MCP Integration Tests - Setup CodeQL environment
6671
uses: ./.github/actions/setup-codeql-environment
6772
with:
@@ -169,6 +174,11 @@ jobs:
169174
- name: CODEQL_PATH Tests - Install server dependencies
170175
run: npm ci --workspace=server --ignore-scripts
171176

177+
## esbuild's optional platform binary is normally wired up by its postinstall
178+
## script; .npmrc 'ignore-scripts=true' suppresses that, so rebuild here.
179+
- name: CODEQL_PATH Tests - Rebuild esbuild platform binary
180+
run: npm rebuild esbuild --ignore-scripts=false
181+
172182
- name: CODEQL_PATH Tests - Build server bundle
173183
run: npm run bundle -w server
174184

.github/workflows/copilot-setup-steps.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ jobs:
4848
- name: Copilot Setup - Install dependencies
4949
run: npm ci --include=optional --ignore-scripts
5050

51+
## esbuild's optional platform binary is normally wired up by its postinstall
52+
## script; .npmrc 'ignore-scripts=true' suppresses that, so rebuild here.
53+
- name: Copilot Setup - Rebuild esbuild platform binary
54+
run: npm rebuild esbuild --ignore-scripts=false
55+
5156
- name: Copilot Setup - Setup CodeQL environment
5257
uses: ./.github/actions/setup-codeql-environment
5358
with:

client/scripts/run-integration-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ fi
8686
# Step 1: Build and bundle the server code
8787
echo "📦 Building CodeQL MCP server bundle..."
8888
cd "$SERVER_DIR"
89+
npm run rebuild:esbuild
8990
npm run bundle
9091

9192
# Step 2: Install CodeQL packs (only once for both modes, skip if --no-install-packs)

0 commit comments

Comments
 (0)