Skip to content

chore(#1099): timeout the gh auth status probe - #1103

Merged
admarble merged 2 commits into
mainfrom
feature/1099-chore-github-timeout-the-gh-auth-status-probe-the-
Sep 19, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/1099-chore-github-timeout-the-gh-auth-status-probe-the-

Conversation

@admarble

@admarble admarble commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Pre-PR AC Verification

AC Description Status Evidence
AC-1 checkAuthSync passes a timeout to execSync ✅ Implemented grep -A4 '"gh auth status"' src/lib/workflow/platforms/github.ts | grep -c "timeout:" → 1
AC-2 Hanging gh on PATH returns false within the timeout instead of hanging ✅ Implemented (gate test, mutation-verified) npx vitest run src/lib/workflow/platforms/github.integration.test.ts -t "1099" → 1 passed
AC-3 Existing unit assertions updated, not loosened ✅ Implemented github.test.ts + system.test.ts → 39 passed; timeout referenced in both files
AC-4 No other network-reaching execSync left un-timed in src/ ✅ Implemented 1 match, 1 with timeout:

Mutation-verified: AC-2 — removed timeout from checkAuthSync's execSync call; 1099: a hanging gh makes checkAuthSync() return false within the timeout, not hang failed; restored.

Test plan

Closes #1099

Full suite — runner result (2026-09-19)

Run once in this worktree at 2d95f047, foreground, from a shell with no SEQUANT_* variables: Test Files 5 failed | 317 passed, Tests 6489 passed | 1 expected fail | 6 skipped, 408s. All five failing files were src/ui/tui/* and failed at import with Cannot find module .../node_modules/es-toolkit/dist/compat/index.mjs — the worktree's [email protected] install was missing dist/compat/ (main's copy of the same version has it). After copying the package from main, the same five files pass: Test Files 5 passed, Tests 20 passed. Environment gap in the worktree install, not this diff.

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.

chore(github): timeout the gh auth status probe — the last un-timed network execSync (#1075 follow-up)

1 participant