forked from Ikalus1988/MisakaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) 路 1.22 KB
/
Copy pathmcp-stress.yml
File metadata and controls
46 lines (43 loc) 路 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: MCP Endpoint Stress Tests
on:
pull_request:
paths:
- "workers/register-proxy-sw.js"
- "workers/mcp-endpoint.stress.test.mjs"
- ".github/workflows/mcp-stress.yml"
push:
branches: [main]
paths:
- "workers/register-proxy-sw.js"
- "workers/mcp-endpoint.stress.test.mjs"
workflow_dispatch:
permissions:
contents: read
jobs:
stress:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: "22"
- name: Run MCP stress suite
run: |
set -o pipefail
node --expose-gc --test workers/mcp-endpoint.stress.test.mjs 2>&1 | tee mcp-stress-results.txt
- name: Publish performance metrics
if: always()
run: |
{
echo "## MCP stress metrics"
echo '```json'
grep 'MCP_STRESS_METRIC' mcp-stress-results.txt | sed 's/^.*MCP_STRESS_METRIC //' || true
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
- name: Upload stress results
if: always()
uses: actions/upload-artifact@v6
with:
name: mcp-stress-results
path: mcp-stress-results.txt