chore: soak test scripts to typescript#3062
Conversation
…from environment values' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Greptile SummaryThis PR converts four soak-test shell scripts to TypeScript, wiring them into the workflow with a new Confidence Score: 5/5Safe to merge; the only finding is a P2 reporting regression in the step summary output that does not affect test correctness. All functional test logic (metric assertions, pod stability, updatePodMap per even iteration) is correctly ported. The single finding is a missing informational section in the GitHub Step Summary — the test will still pass or fail correctly without it. scripts/soak-summary.ts — missing cache miss trend section Important Files Changed
Sequence DiagramsequenceDiagram
participant WF as soak.yaml
participant ST as soak-test.ts
participant RM as soak-record-metrics.ts
participant SS as soak-summary.ts
participant K8s as kubectl/cluster
WF->>ST: npx tsx soak-test.ts
ST->>K8s: updatePodMap() — initial snapshot
loop i = 1..70 (every 5 min)
ST->>K8s: collectMetrics()
ST->>RM: npx tsx soak-record-metrics.ts i auditor informer metrics.csv
RM-->>ST: appends CSV row
ST->>ST: assertMetrics(i) — ctrl failures, cache miss growth, resync failures
opt i % 2 === 0
ST->>K8s: checkPodStability(i) + updatePodMap()
end
ST->>ST: sleep 300s
end
ST-->>WF: exit 0 / exit 1 + failure-reason.txt
WF->>SS: npx tsx soak-summary.ts metrics.csv informer-log failure-reason
SS->>SS: read CSV, compute totals
SS-->>WF: write GITHUB_STEP_SUMMARY
Reviews (3): Last reviewed commit: "chore: address greptile comments" | Re-trigger Greptile |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Description
Converted
soak-test.sh,soak-summary.sh,soak-test-metrics.sh,soak-record-metrics.shto.tsfiles to reduce complexity and increase maintainability.End to End Test:
(See Pepr Excellent Examples)
Related Issue
Fixes #
Relates to #
Type of change
Checklist before merging