Cleanup scripts; allow darwin testing - #148
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughThe pull request hardens repository build, test, and lint scripts with stable root resolution and strict Bash settings. CI adds lint execution and expands non-Windows workflow coverage to macOS. Unix and Windows process-priority fixtures support command-runner tests. Filesystem tests cover home directories and descriptor closure. Async logger tests use explicit package qualification. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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 |
f4ce7d0 to
caa7888
Compare
32d9593 to
74d8490
Compare
c7ef569 to
014e3d3
Compare
8c1e56f to
9535340
Compare
bd970ea to
a4a1148
Compare
a4a1148 to
6dda9cb
Compare
6dda9cb to
a211600
Compare
- remove `test` which used outdated `go fmt` command
a211600 to
0adb725
Compare
- adds `bin/lint`
- remove dot-import - rename package-shadowning vars
This change, and the additiona of a darwin-specific `getProcessPriority()` allows tests to be run on macOS.
This change allows linters for supported GOOS values to pass and reduces the number of programmatically skipped tests.
0adb725 to
0252e64
Compare
| cd "${ROOT_DIR}" | ||
| if ! command -v golangci-lint &> /dev/null; then | ||
| echo "Installing golangci-lint@latest..." | ||
| go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest |
There was a problem hiding this comment.
Is this worth pinning to a version to avoid changes to linting causing unexpected failures
| return []byte(strings.Join(paths, "|")) | ||
| }, func(data []byte) { | ||
| paths := strings.Split(string(data), "|") | ||
| Expect(paths).To(HaveLen(3)) |
There was a problem hiding this comment.
I assume this check was here to avoid index array errors in the following lines
HaveLen(4)?
Post merge: reconfigure pipeline