Conversation
# Conflicts: # server/datastore/mysql/schema.sql
# Conflicts: # server/datastore/mysql/schema.sql
# Conflicts: # server/datastore/mysql/schema.sql
# Conflicts: # server/datastore/mysql/schema.sql
# Conflicts: # server/datastore/mysql/schema.sql
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #43365 +/- ##
=======================================
Coverage 66.88% 66.88%
=======================================
Files 2590 2590
Lines 207649 207649
Branches 9279 9279
=======================================
Hits 138883 138883
- Misses 56127 56128 +1
+ Partials 12639 12638 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
There was a problem hiding this comment.
Pull request overview
Adds a dedicated Windows GitHub Actions workflow to run Orbit’s Windows-specific Go tests and extends the test suite to cover key Windows-only functionality (BitLocker COM/WMI paths and CIS audit via secedit), alongside a small COM worker shutdown race fix.
Changes:
- Added a new GitHub Actions workflow to execute selected Windows-only Orbit Go test packages on
windows-latest(plus log upload + scheduled Slack notify on failure). - Added/updated Windows-only tests for BitLocker management helpers and CIS audit table behavior.
- Fixed a COM worker shutdown race by introducing a
stopchannel (instead of closingworkCh) and cleanly signaling closure viadone.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
orbit/pkg/table/cis_audit/cis_audit_windows_test.go |
Tightens assertions and adds a Windows CI-oriented test that exercises a real CIS item via secedit. |
orbit/pkg/bitlocker/bitlocker_worker_windows.go |
Reworks COM worker shutdown to avoid panics from closing a channel that another goroutine may send on. |
orbit/pkg/bitlocker/bitlocker_management_windows_test.go |
Adds Windows-only tests for error formatting, helpers, COM worker lifecycle, and COM/WMI BitLocker status retrieval. |
.github/workflows/test-go-windows.yml |
Introduces a new Windows CI workflow to run the relevant Orbit Windows Go test packages and publish logs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (2)
WalkthroughAdds a Windows-specific GitHub Actions workflow to run Go tests on Possibly related PRs
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.github/workflows/test-go-windows.yml (1)
65-65: Unused variable$pkgList.The variable
$pkgListis assigned but never used. Thego testcommand on line 68 uses$packagesdirectly.🧹 Proposed fix to remove unused variable
$packages | ForEach-Object { Write-Host " $_" } - $pkgList = $packages -join "," - Write-Host "Running Windows-specific Go tests for packages:" + Write-Host "Running Windows-specific Go tests for packages:"🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/test-go-windows.yml at line 65, The assignment to $pkgList is unused; remove the unnecessary variable ($pkgList = $packages -join ",") and update any references to use $packages directly (or, if the intent was to pass a comma‑joined string to the go test invocation, replace usage of $packages with $pkgList and keep the join). Locate the assignment of $pkgList and either delete it or change the go test invocation to consume the joined string depending on the intended behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/test-go-windows.yml:
- Around line 86-92: The summary captures only the matched substring because the
code uses .Matches.Value; change each capture to return the full matching line
by using the MatchInfo .Line property (e.g. set $failures = ($logContent |
Select-String -Pattern "^--- FAIL:" -AllMatches).Line and likewise replace
.Matches.Value with .Line for $panics and $failPkgs) so the printed summary
shows the entire test failure/panic/package lines for easier debugging.
---
Nitpick comments:
In @.github/workflows/test-go-windows.yml:
- Line 65: The assignment to $pkgList is unused; remove the unnecessary variable
($pkgList = $packages -join ",") and update any references to use $packages
directly (or, if the intent was to pass a comma‑joined string to the go test
invocation, replace usage of $packages with $pkgList and keep the join). Locate
the assignment of $pkgList and either delete it or change the go test invocation
to consume the joined string depending on the intended behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c14cc438-2aee-418f-88c6-41bfcb64d70d
📒 Files selected for processing (4)
.github/workflows/test-go-windows.ymlorbit/pkg/bitlocker/bitlocker_management_windows_test.goorbit/pkg/bitlocker/bitlocker_worker_windows.goorbit/pkg/table/cis_audit/cis_audit_windows_test.go
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
|
@lucasmrod Can you review this PR (mostly tests) since you're the codeowner for GitHub workflows? |
Resolves #40809
Added a few basic tests.
Fixed a small race condition. Manually tested orbit on Windows with the fix.
Summary by CodeRabbit
Bug Fixes
Tests
Chores