fix: dashboard-build.sh never completes on Windows (race, npm ci node resolution, PATH truncation)#115
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughUpdated ChangesDashboard Build Script Fixes
Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@plugin/scripts/dashboard-build.sh`:
- Around line 90-101: The lock-age check in dashboard-build.sh uses a GNU-only
stat form, so macOS/BSD cannot determine the lock directory creation time
correctly. Update the lock_born lookup in the lock-aging branch to handle both
stat -c %Y and a BSD-compatible fallback such as stat -f %m, keeping the
existing lock_now and LOCK_ACQUIRE_GRACE logic intact so stale pid-less locks
can still be reclaimed in the dashboard build flow.
🪄 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: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 822b0100-f4f4-4010-8447-a09593a713b3
📒 Files selected for processing (1)
plugin/scripts/dashboard-build.sh
fix: portable lock-dir age lookup (GNU stat -c and BSD stat -f) stat -c %Y is GNU-only; on macOS/BSD it fails, so lock_born fell back to lock_now and an aged crashed lock was misread as "peer mid-acquire", stalling the reclaim. Try BSD stat -f %m before the fallback. Addresses CodeRabbit review on ReflexioAI#115. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> @
|
Thanks for the review — addressed in |
Ports three verified downstream fixes. Closes #113.
Summary by CodeRabbit
node/binaries).