Inspect selected fields in existing captures through shared CLI/MCP Evidence. Page matching frames without changing dissection or two-pass read coverage; retain failed descriptor/process cleanup ownership and reject excess admission. Verified with real TShark 4.0.17 and 4.2.2, public Wireshark recordings, owned HTTP application traffic, real CLI/MCP workflows and schema checks. Co-authored-by: Olorinm <59321404+Olorinm@users.noreply.github.com> Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
51 lines
1.9 KiB
YAML
51 lines
1.9 KiB
YAML
name: Real packet capture
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- "tests/boundary/captures/**"
|
|
- "tests/boundary/cli/captureCleanup.test.ts"
|
|
- "tests/boundary/mcp/packetCaptureMcp.test.ts"
|
|
- "src/captures/**"
|
|
- "src/domain/captures/**"
|
|
- "src/application/captures/**"
|
|
- "src/contracts/captures/**"
|
|
- "src/composition/captures.ts"
|
|
- "src/cli/captureCommands.ts"
|
|
- "src/server/registerCaptureTools.ts"
|
|
- "src/server/createServer.ts"
|
|
- "src/server/sessionAvailabilityPolicy.ts"
|
|
- "src/application/CapabilityInventory.ts"
|
|
- "src/contracts/toolContracts.ts"
|
|
- "src/contracts/toolEffects.ts"
|
|
- "src/cli.ts"
|
|
- "src/cliCommandNames.ts"
|
|
- "src/process/**"
|
|
- "src/artifacts/readStableArtifact.ts"
|
|
- "scripts/verify-packet-capture.mjs"
|
|
- ".github/workflows/real-packet-capture.yml"
|
|
- "package*.json"
|
|
- ".nvmrc"
|
|
permissions:
|
|
contents: read
|
|
concurrency:
|
|
group: real-packet-capture-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
tshark:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: .nvmrc
|
|
cache: npm
|
|
- run: sudo apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get install -y tshark util-linux python3
|
|
- run: npm ci
|
|
- run: npm run build:cached
|
|
- run: npm run test:focused -- src/process/LinuxResourceLimits.test.ts tests/boundary/captures/captureProvider.test.ts tests/boundary/captures/captureDescriptorCleanup.test.ts tests/boundary/captures/resourceLimits.test.ts tests/boundary/captures/packetOutput.test.ts tests/boundary/mcp/packetCaptureMcp.test.ts tests/boundary/cli/captureCleanup.test.ts
|
|
- run: node scripts/verify-packet-capture.mjs
|
|
env:
|
|
REA_TSHARK_COMMAND: /usr/bin/tshark
|