Repository navigation
ci: add Windows to CI test matrix - #1283
Conversation
Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughThe pull request extends CI pipeline support to Windows by adding bash shell specification and expanding the OS matrix, while conditionally skipping a platform-specific test on Windows runners to handle compatibility issues. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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 |
…ences Co-Authored-By: Claude Opus 4.6 <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/workflows/node.js.yml (1)
34-35:⚠️ Potential issue | 🔴 CriticalRestructure to keep background servers alive during test execution.
Background processes started with
&in separate steps will be killed by the GitHub Actions runner cleanup when each step completes, especially on Windows. Since tests in subsequent steps depend on these servers, they will fail onwindows-latest(and potentially other runners).Combine the server startup commands with the dependent test steps into single
- run:blocks to keep processes alive:Example approach
- run: | cd packages/agent_filters/ && npx ts-node tests/express/server.ts & cd packages/graphai/ && npx http-server tests/http-server/docs & cd packages && yarn run test cd agents && yarn http_testAlternatively, add explicit wait/cleanup logic or use job-level orchestration to ensure servers persist across steps.
🧹 Nitpick comments (2)
.github/workflows/node.js.yml (1)
16-21: LGTM — bash default + Windows runner addition looks correct.Setting
shell: bashas a job-level default is the right approach to ensure cross-platform consistency for commands using&,cd, and other shell builtins.One optional consideration:
strategy.fail-fastdefaults totrue, so a Windows-specific failure will cancel in-flight Ubuntu/macOS jobs. While you're stabilizing Windows support, you might want to addfail-fast: falseto avoid that.Optional: disable fail-fast during stabilization
strategy: + fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest]agents/vanilla_node_agents/tests/agents/test_agent_runner.ts (1)
3-11: Pragmatic skip — consider tracking the underlying fix.The Windows detection and targeted skip are cleanly implemented.
os.platform() === "win32"is the correct check, and the approach of skipping just the one agent is appropriately narrow.Consider opening a tracking issue for making
pathUtilsAgentwork cross-platform (e.g., usingpath.seporpath.joininternally) so this skip doesn't become permanent.Would you like me to open a tracking issue for fixing
pathUtilsAgentto handle Windows path separators natively?
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Summary
windows-latestto the CI test matrixshell: bashas default for all steps (Windows needs Git Bash forrm -rand&)🤖 Generated with Claude Code
Summary by CodeRabbit