Skip to content

Commit c5b5638

Browse files
committed
handle missing mcp.log file
1 parent 6119ccd commit c5b5638

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/e2e.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,12 @@ jobs:
6464

6565
- name: Start MCP server in background
6666
if: matrix.transport != 'stdio'
67-
run: nohup ./dist/mcp-grafana -t ${{ matrix.transport }} > mcp.log 2>&1 &
67+
run: |
68+
nohup ./dist/mcp-grafana -t ${{ matrix.transport }} > mcp.log 2>&1 &
69+
sleep 2 # Give server time to start and create log file
70+
if [ ! -f mcp.log ]; then
71+
echo "Warning: mcp.log was not created. Server may have failed to start."
72+
fi
6873
6974
- name: Run Python e2e tests
7075
env:
@@ -76,4 +81,4 @@ jobs:
7681
7782
- if: failure() && matrix.transport != 'stdio'
7883
name: Print MCP logs
79-
run: cat mcp.log
84+
run: cat mcp.log 2>/dev/null || echo "No log file found (mcp.log)"

0 commit comments

Comments
 (0)