ci: make repro-mtls-flake.ps1 oracle cleanup not throw on clean start#577
Conversation
The script used `taskkill /F /IM otelcol-contrib.exe 2>$null` to clear stale oracles, but with $ErrorActionPreference='Stop' (and PowerShell 5.1's handling of native-command stderr) the "process not found" message taskkill emits when nothing is running becomes a terminating error. On a clean box — no leftover otelcol — the startup cleanup throws before the oracle is ever started, which surfaced as "not finding the oracle". Replace both taskkill calls with a PowerShell-native, non-throwing kill: Get-Process otelcol-contrib -ErrorAction SilentlyContinue | Stop-Process -Force. Verified: 60/60 @Mtls iterations pass under -Stress on a native Windows box, confirming the stderr-drain fix (PR #576) holds under load. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PowerShell script Changesotelcol-contrib Process Termination
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
☀️ Quality Summary 🚦 build-linux-gcc: 100% successful (✔️ 1521 passed) Created by Quality Monitor v1.14.0 (#f3859fd). More details are shown in the GitHub Checks Result. |
Follow-up to #576.
Problem
The repro script cleared stale oracles with
taskkill /F /IM otelcol-contrib.exe 2>$null. Under$ErrorActionPreference='Stop'(and PowerShell 5.1's handling of native-command stderr), the "process not found" message taskkill emits when nothing is running becomes a terminating error. On a clean box — no leftover otelcol — the startup cleanup throws before the oracle is ever started, which surfaced as "not finding the oracle". (It only appeared to work when a stale otelcol happened to be present, so taskkill succeeded.)Fix
Replace both
taskkillcalls with a PowerShell-native, non-throwing kill:Verification
On a native Windows box: 60/60
@mtlsiterations pass under-Stress, confirming the stderr-drain fix from #576 holds under sustained CPU load (no0 of 1stalls).🤖 Generated with Claude Code
Summary by CodeRabbit