Skip to content

fix(cli): doctor exits nonzero on failed checks - #2376

Merged
tamirdresher merged 2 commits into
github:devfrom
omercangumus:omercangumus/2362-doctor-exit-code
Nov 1, 2026
Merged

tamirdresher merged 2 commits into
github:devfrom
omercangumus:omercangumus/2362-doctor-exit-code

Conversation

@omercangumus

Copy link
Copy Markdown
Contributor

Summary

  • Return exit code 1 when squad doctor reports failed checks; warnings remain non-fatal.
  • Check CLI exit status and verify standalone executable and launcher propagation, including Windows PowerShell $LASTEXITCODE.

Closes #2362

Checks

pm run lint passed.

  • Doctor and standalone tests passed (94/94).

ode --check scripts/release/validate-standalone-bundle.mjs passed.

@github-actions

Copy link
Copy Markdown
Contributor

🟡 Impact Analysis — PR #2376

Risk tier: 🟡 MEDIUM

📊 Summary

Metric Count
Files changed 5
Files added 1
Files modified 4
Files deleted 0
Modules touched 4

🎯 Risk Factors

  • 5 files changed (≤5 → LOW)
  • 4 modules touched (2-4 → MEDIUM)

📦 Modules Affected

root (1 file)
  • .changeset/doctor-exit-status.md
scripts (1 file)
  • scripts/release/validate-standalone-bundle.mjs
squad-cli (1 file)
  • packages/squad-cli/src/cli/commands/doctor.ts
tests (2 files)
  • test/cli/doctor.test.ts
  • test/standalone-build.test.ts

This report is generated automatically for every PR. See #733 for details.

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🛫 PR Readiness Check

ℹ️ This comment updates on each push. Last checked: commit c69dea4

PR Scope: 📦🔧 Mixed (product + infrastructure)

⚠️ 3 item(s) to address before review

Status Check Details
❌ Single commit 2 commits — consider squashing before review
✅ Not in draft Ready for review
✅ Branch up to date Up to date with dev
❌ Copilot review No Copilot review yet — it may still be processing
✅ Changeset present Changeset file found
✅ Scope clean No .squad/ or docs/proposals/ files
✅ No merge conflicts No merge conflicts
✅ Copilot threads resolved No Copilot review threads
❌ CI passing 9 check(s) still running

Files Changed (5 files, +119 −1)

File +/−
.changeset/doctor-exit-status.md +5 −0
packages/squad-cli/src/cli/commands/doctor.ts +3 −0
scripts/release/validate-standalone-bundle.mjs +36 −0
test/cli/doctor.test.ts +53 −1
test/standalone-build.test.ts +22 −0

Total: +119 −1


This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.

@omercangumus
omercangumus marked this pull request as ready for review October 31, 2026 23:12
@omercangumus
omercangumus marked this pull request as draft October 31, 2026 23:12
Warnings remain non-fatal, and standalone validation checks exit-code propagation.

Closes github#2362

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@omercangumus
omercangumus force-pushed the omercangumus/2362-doctor-exit-code branch from 08523cc to 9b642b3 Compare October 31, 2026 23:13
@omercangumus
omercangumus marked this pull request as ready for review October 31, 2026 23:25
@tamirdresher
tamirdresher merged commit a1ea4e3 into github:dev Nov 1, 2026
22 of 23 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.

bug(cli): doctor failures return exit code 0 from Windows standalone

2 participants