Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/large-payload-tester.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 24 additions & 2 deletions .github/workflows/large-payload-tester.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name: Large Payload Tester
description: Test the MCP Gateway's ability to handle large payloads
on:
workflow_dispatch:
schedule: daily
workflow_dispatch:

permissions:
contents: read
Expand All @@ -15,9 +15,13 @@ roles: [admin, maintainer, write]
network:
allowed:
- defaults
- go
- containers
- "docker.io"

tools:
github:
toolsets: [default]
bash: ["*"]

mcp-servers:
Expand All @@ -28,6 +32,11 @@ mcp-servers:
ALLOWED_PATHS: "/workspace"
mounts:
- "/tmp/mcp-test-fs:/workspace:ro"
github:
type: stdio
container: "ghcr.io/github/github-mcp-server:v0.30.2"
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

sandbox:
mcp:
Expand Down Expand Up @@ -78,6 +87,7 @@ steps:

# Use jq to properly populate the JSON with dynamic values and generate large array
# Generating 2000 items + 400KB padding to create ~500KB file
# Secret is only included once in the middle item (index 1000)
jq --arg secret "$TEST_SECRET" \
--arg run_id "${{ github.run_id }}" \
--arg timestamp "$(date -Iseconds)" \
Expand All @@ -87,7 +97,7 @@ steps:
.test_timestamp = $timestamp |
.data.metadata.repository = $repo |
.data.metadata.workflow_run_url = $url |
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test agent prompt (.github/agentics/large-payload-tester.md) expects to find a secret_reference when reading large-test-file.json. With this change, secret_reference only exists on a single array element (index 1000), so any logic that reads the first element / a fixed path will fail to find the secret. To keep the test deterministic, either store the secret in a stable location (e.g., a dedicated top-level field) or update the agent prompt/verification logic accordingly and recompile the workflow.

Suggested change
.data.metadata.workflow_run_url = $url |
.data.metadata.workflow_run_url = $url |
.secret_reference = $secret |

Copilot uses AI. Check for mistakes.
.data.large_array = [range(2000) | {id: ., value: ("item-" + tostring), secret_reference: $secret, extra_data: ("data-" + tostring + "-" * 50)}] |
.data.large_array = [range(2000) | . as $i | if $i == 1000 then {id: $i, value: ("item-" + tostring), secret_reference: $secret, extra_data: ("data-" + tostring + "-" * 50)} else {id: $i, value: ("item-" + tostring), random_data: ("rand-" + ($i * 17 % 9973 | tostring) + "-" + ($i * 31 % 8191 | tostring)), extra_data: ("data-" + tostring + "-" * 50)} end] |
.padding = ("X" * 400000)' \
$TEST_FS/$LARGE_PAYLOAD_FILE > $TEST_FS/$LARGE_PAYLOAD_FILE.tmp

Expand All @@ -107,6 +117,18 @@ steps:
echo "Secret stored in $TEST_FS/$SECRET_FILE"
grep -H $TEST_SECRET $TEST_FS/$SECRET_FILE

post-steps:
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: mcp-stress-test-results
Comment on lines +120 to +125
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This artifact upload appears copied from the MCP stress test workflow: the artifact name (mcp-stress-test-results) doesn’t match this workflow and the referenced directories (/tmp/mcp-stress-results/, /tmp/mcp-stress-test/logs/) are not created anywhere in the large-payload tester flow. This will likely produce empty artifacts or noisy warnings; either write results to these paths (and document it in the agent prompt) or change/remove this post-step to upload relevant large-payload outputs instead.

Copilot uses AI. Check for mistakes.
path: |
/tmp/mcp-stress-results/
/tmp/mcp-stress-test/logs/
retention-days: 30


timeout-minutes: 10
strict: true
---
Expand Down