Repository navigation
Pin the exact idle clock in Windows autoscale refusal tests - #120
Conversation
Matching '^as \d+$' also passes if a refused shrink or an outage reset the clock to now, which would silently restart every pool's idle countdown. Closes #119 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 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 |
GPT AI Code ReviewSkipped: API key not configured The To enable GPT reviews, add
Once the secret is configured, re-run this workflow or push a new commit to trigger a fresh review. REVIEW SKIPPED - API KEY NOT CONFIGURED Reviewed by GPT via gpt-pr-review.yml. Advisory only. |
DeepSeek AI Code Review1. Acceptance criteriaBoth ACs are met:
2. Bugs and logic errorsOne subtle correctness concern in the test change:
However, The real risk: if 3. CLI and API safetyNo CLI signature changes, no new dependencies, no new GitHub API calls introduced by this PR. The README note about API cost is accurate and does not misstate token scope or rate-limit behavior. 4. Test coverageThe tightened assertions cover both AC scenarios (refused shrink, GitHub outage). One gap worth noting: the test does not assert that the state file is not rewritten at all (e.g. mtime unchanged), only that its content matches. A regression that rewrote the file with the same value would pass. That's a minor gap and probably out of scope for this issue. 5. Suggested follow-up issues
APPROVE — both acceptance criteria are satisfied; the only observations are non-blocking test-robustness notes. Reviewed by DeepSeek via deepseek-pr-review.yml. Advisory only. |
Closes #119
Summary
tests\windows_pools_test.ps1: after a refused shrink and after a GitHub outage, assert the exact.windows-autoscale-stateline is unchanged, not just that it matches^as \d+$. That pattern would also pass a clock reset to now. The code was already correct; DeepSeek's claim on Add windows-pools.ps1 autoscale for the native Windows fleet #118 that it resets the clock was a misread, sincesinceis loaded from the state before the timeout comparison.Test plan
tests\windows_pools_test.ps1under pwsh and Windows PowerShell 5.1: all checks passed on both🤖 Generated with Claude Code