Skip to content

ci: add Windows to CI test matrix - #1283

Merged
isamu merged 3 commits into
mainfrom
ci-add-windows-test
Feb 7, 2026
Merged

isamu merged 3 commits into
mainfrom
ci-add-windows-test

Conversation

@isamu

@isamu isamu commented Feb 7, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add windows-latest to the CI test matrix
  • Set shell: bash as default for all steps (Windows needs Git Bash for rm -r and &)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Extended continuous integration pipeline to support Windows OS testing alongside macOS and Linux environments
    • Implemented platform-specific test handling to ensure proper execution compatibility across operating systems

@coderabbitai

coderabbitai Bot commented Feb 7, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@isamu has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 20 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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.

📝 Walkthrough

Walkthrough

The 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

Cohort / File(s) Summary
CI Workflow Configuration
.github/workflows/node.js.yml
Adds default bash shell specification for run steps and extends OS matrix to include windows-latest alongside existing Ubuntu and macOS runners.
Test Platform Handling
agents/vanilla_node_agents/tests/agents/test_agent_runner.ts
Introduces OS detection to identify Windows platform and conditionally skips execution of pathUtilsAgent test on Windows with informational logging.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 Windows comes to the test, with open arms so wide,
We skip the path agent there, but with nothing to hide,
Bash shells now lead the way, on every runner's ground,
Cross-platform harmony at last—let CI's wings be found! 🚀

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and clearly describes the main objective of the pull request: adding Windows to the CI test matrix.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ci-add-windows-test

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 | 🔴 Critical

Restructure 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 on windows-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_test

Alternatively, 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: bash as 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-fast defaults to true, so a Windows-specific failure will cancel in-flight Ubuntu/macOS jobs. While you're stabilizing Windows support, you might want to add fail-fast: false to 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 pathUtilsAgent work cross-platform (e.g., using path.sep or path.join internally) so this skip doesn't become permanent.

Would you like me to open a tracking issue for fixing pathUtilsAgent to handle Windows path separators natively?

@isamu
isamu merged commit 48df8f0 into main Feb 7, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant