cli/pkg
Snider 9db41c4406
feat(qa): add qa watch command for CI monitoring (#60)
* feat(qa): add qa watch command for CI monitoring (#47)

Implements `core qa watch` to monitor GitHub Actions after a push:
- Polls workflow runs for a commit until completion
- Shows live progress with pass/fail counts
- On failure, shows job name, failed step, and link to logs
- Exits with appropriate code (0 = passed, 1 = failed)

Usage:
  core qa watch              # Watch current repo's HEAD
  core qa watch --repo X     # Watch specific repo
  core qa watch --timeout 5m # Custom timeout

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(qa): address CodeRabbit feedback on watch command

- Add length check before slicing commitSha to prevent panic on short SHAs
- Count all non-success conclusions as failures (cancelled, timed_out, etc.)
- Use errors.E/Wrap pattern for consistent error handling with operation context

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(qa): add context-aware commands and log parsing

- Use exec.CommandContext with timeout context for all gh invocations
  so commands are cancelled when deadline expires
- Implement fetchErrorFromLogs using 'gh run view --log-failed'
  to extract first meaningful error line from failed workflows
- Pass context through call chain for proper timeout propagation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 03:37:16 +00:00
..
agentic feat(framework): add QUERY/QUERYALL/PERFORM dispatch patterns 2026-01-30 10:18:54 +00:00
ai refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
build fix(vm): use double-dash flags for linuxkit build command (#57) 2026-02-01 01:49:00 +00:00
cache refactor: flatten CLI to root, simplify pkg/mcp for CLI-only use 2026-01-29 18:13:51 +00:00
ci refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
cli fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
container test: increase coverage across packages 2026-01-29 13:19:08 +00:00
dev feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
devops refactor: flatten CLI to root, simplify pkg/mcp for CLI-only use 2026-01-29 18:13:51 +00:00
docs feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
doctor refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
errors feat(pkg): add standalone log and errors packages 2026-01-30 22:02:40 +00:00
framework fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
git feat(framework): add QUERY/QUERYALL/PERFORM dispatch patterns 2026-01-30 10:18:54 +00:00
go refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
i18n feat(qa): add qa watch command for CI monitoring (#60) 2026-02-01 03:37:16 +00:00
log feat(pkg): add standalone log and errors packages 2026-01-30 22:02:40 +00:00
mcp refactor: flatten CLI to root, simplify pkg/mcp for CLI-only use 2026-01-29 18:13:51 +00:00
php feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
pkgcmd refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
process test(process): add concurrency tests and global function wrappers 2026-01-30 19:55:37 +00:00
qa feat(qa): add qa watch command for CI monitoring (#60) 2026-02-01 03:37:16 +00:00
release fix(docs): respect workspace.yaml packages_dir setting (fixes #46) (#55) 2026-02-01 01:59:27 +00:00
repos feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
sdk refactor(i18n): migrate all pkg/* to grammar engine 2026-01-30 23:09:45 +00:00
setup feat(setup): add github command for repo configuration (#59) 2026-02-01 03:37:06 +00:00
test refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
updater feat(php): add quality commands and split cmd/php for maintainability 2026-01-29 23:58:03 +00:00
vm refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
workspace feat(setup): add github command for repo configuration (#59) 2026-02-01 03:37:06 +00:00