ci: run smoke tests sequentially, capture mcplocal log
Some checks failed
CI/CD / lint (push) Successful in 48s
CI/CD / typecheck (push) Successful in 48s
CI/CD / test (push) Successful in 1m0s
CI/CD / build (push) Failing after 48s
CI/CD / publish-rpm (push) Has been skipped
CI/CD / smoke (push) Has been cancelled

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:
Michal
2026-03-09 18:25:55 +00:00
parent 26bf38a750
commit 1ac08ee56d

View File

@@ -187,7 +187,7 @@ jobs:
chmod +x /usr/local/bin/mcpctl
- 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
run: |
@@ -225,15 +225,20 @@ jobs:
- name: Run smoke tests
# Exclude tests that need a running MCP server instance (Docker) or
# LLM providers — CI has neither. They crash mcplocal when it tries
# to proxy to a non-existent container.
# LLM providers — CI has neither. --no-file-parallelism avoids
# concurrent requests crashing mcplocal.
run: >-
pnpm --filter mcplocal exec vitest run
--config vitest.smoke.config.ts
--no-file-parallelism
--exclude '**/security.test.ts'
--exclude '**/audit.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: