-
Notifications
You must be signed in to change notification settings - Fork 4
test: Extend execute test to windows #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Warning Rate limit exceeded@nielsenko has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 15 minutes and 12 seconds before requesting another review. ⌛ 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. 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughRefactors and expands tests for the execute helper (adds workingDirectory, stdout, stderr usage; stderr streaming; complex shell command; SIGINT handling) and implements MockStdout.addStream; also restructures CI workflow YAML and expands job matrices. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/ci.yml (1)
32-52: LGTM! Consider selective multi-platform testing for optimization.The addition of the platform matrix successfully extends testing to Windows and macOS, which aligns with the PR objective. All commands used are cross-platform compatible.
However, the platform matrix now applies to both
cli_toolsandconfigpackages, increasing CI job count from 4 to 12 (3× execution time). If theconfigpackage doesn't contain platform-specific code, consider using a conditional matrix to test onlycli_toolson multiple platforms while keepingconfigon ubuntu-latest only.Example optimization (if config is platform-agnostic):
matrix: dart: [3.3, 3.9] package: [cli_tools, config] platform: [ubuntu-latest] include: - package: cli_tools platform: windows-latest dart: 3.3 - package: cli_tools platform: windows-latest dart: 3.9 - package: cli_tools platform: macos-latest dart: 3.3 - package: cli_tools platform: macos-latest dart: 3.9
📜 Review details
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
.github/workflows/ci.yml(1 hunks)
🔇 Additional comments (2)
.github/workflows/ci.yml (2)
3-9: LGTM!The workflow triggers are properly structured with standard YAML indentation.
12-30: LGTM!The
dart_formatjob is well-structured. Running format checks only on ubuntu-latest is appropriate since formatting results are platform-independent.
…w tests to run on windows (except trap SIGINT)
18ef1df to
8dff006
Compare
christerswahn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR Description
Enable execute tests to run on Windows
This PR makes the
executetests cross-platform by:@TestOn('!windows')annotation that excluded all tests from Windowstraphas no Windows equivalent, andProcess.kill(ProcessSignal.sigint)doesn't trigger signal handlers on Windows anyway)echo "Hello world!"toecho Hello world!for cross-platform compatibilityMockStdout.addStream()to support the new testsSummary by CodeRabbit
Public API
Tests
Chores
✏️ Tip: You can customize this high-level summary in your review settings.