ci: run smoke tests sequentially, capture mcplocal log
Some checks failed
Some checks failed
Run vitest with --no-file-parallelism to prevent concurrent requests from crashing mcplocal. Also capture mcplocal output to a log file and dump it on failure for debugging. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -187,7 +187,7 @@ jobs:
|
|||||||
chmod +x /usr/local/bin/mcpctl
|
chmod +x /usr/local/bin/mcpctl
|
||||||
|
|
||||||
- name: Start mcplocal
|
- name: Start mcplocal
|
||||||
run: node src/mcplocal/dist/main.js &
|
run: nohup node src/mcplocal/dist/main.js > /tmp/mcplocal.log 2>&1 &
|
||||||
|
|
||||||
- name: Wait for mcplocal
|
- name: Wait for mcplocal
|
||||||
run: |
|
run: |
|
||||||
@@ -225,15 +225,20 @@ jobs:
|
|||||||
|
|
||||||
- name: Run smoke tests
|
- name: Run smoke tests
|
||||||
# Exclude tests that need a running MCP server instance (Docker) or
|
# Exclude tests that need a running MCP server instance (Docker) or
|
||||||
# LLM providers — CI has neither. They crash mcplocal when it tries
|
# LLM providers — CI has neither. --no-file-parallelism avoids
|
||||||
# to proxy to a non-existent container.
|
# concurrent requests crashing mcplocal.
|
||||||
run: >-
|
run: >-
|
||||||
pnpm --filter mcplocal exec vitest run
|
pnpm --filter mcplocal exec vitest run
|
||||||
--config vitest.smoke.config.ts
|
--config vitest.smoke.config.ts
|
||||||
|
--no-file-parallelism
|
||||||
--exclude '**/security.test.ts'
|
--exclude '**/security.test.ts'
|
||||||
--exclude '**/audit.test.ts'
|
--exclude '**/audit.test.ts'
|
||||||
--exclude '**/proxy-pipeline.test.ts'
|
--exclude '**/proxy-pipeline.test.ts'
|
||||||
|
|
||||||
|
- name: Dump mcplocal log on failure
|
||||||
|
if: failure()
|
||||||
|
run: cat /tmp/mcplocal.log || true
|
||||||
|
|
||||||
# ── Build & package RPM ───────────────────────────────────
|
# ── Build & package RPM ───────────────────────────────────
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|||||||
Reference in New Issue
Block a user