Skip to content

Commit 57d1304

Browse files
committed
Measure Windows test resource pressure
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6e902b9a-5527-4a32-a5a3-e0bf5bfef3f7
1 parent 9f19df2 commit 57d1304

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/nodejs-sdk-tests.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,16 @@ jobs:
8585
- name: Run Node.js SDK tests
8686
env:
8787
COPILOT_HMAC_KEY: ${{ secrets.COPILOT_DEVELOPER_CLI_INTEGRATION_HMAC_KEY }}
88-
run: >-
89-
npm test --
90-
test/e2e/builtin_tools.e2e.test.ts
91-
test/e2e/hooks.e2e.test.ts
92-
test/e2e/agent_and_compact_rpc.e2e.test.ts
93-
test/e2e/session.e2e.test.ts
88+
run: |
89+
pwsh.exe -NoProfile -Command '
90+
while ($true) {
91+
$cpu = [math]::Round((Get-Counter "\Processor(_Total)\% Processor Time").CounterSamples.CookedValue)
92+
$memory = [math]::Round((Get-Counter "\Memory\Available MBytes").CounterSamples.CookedValue)
93+
$nodeCount = @(Get-Process -Name node -ErrorAction SilentlyContinue).Count
94+
Write-Host "[resource-diagnostic] $(Get-Date -Format o) cpu=$cpu availableMb=$memory nodeProcesses=$nodeCount"
95+
Start-Sleep -Seconds 5
96+
}
97+
' &
98+
monitor_pid=$!
99+
trap 'kill "$monitor_pid"' EXIT
100+
npm test

0 commit comments

Comments
 (0)