File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments