githubnext / githubnext/gh-aw-test
Suggested test: copilot/doctor-command
- Dominant language
- Shell
- Stars
- 8
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
## Motivation
Link to the gh-aw PR: github/gh-aw#45632 — feat: replace `setup auth`/`setup repo` with unified `doctor` command
The new `gh aw doctor` command consolidates hidden `setup auth` and `setup repo` into a single visible diagnostic. There is currently no E2E test that exercises this CLI path from within a workflow.
## Proposed test
- **Workflow file**: `test-copilot-doctor-command.md`
- **Trigger**: `workflow_dispatch`
- **Engine**: copilot
- **Safe output**: `create-issue`
- **Variant**: standard
## Minimal test prompt sketch
Run `gh aw doctor` in a pre-step and capture its output to a file. Have the agent read the output and create an issue reporting whether all diagnostics passed. This confirms the new command surface is callable from a compiled workflow and its output is parseable.
## New fixtures or secrets needed
None — `gh aw` is already available in the harness runner.
## Notes
The `test-copilot-gh-steps` workflow shows the pattern for capturing CLI output in `steps:` and passing it to the agent. No existing test covers the `doctor` command. Worth also checking whether the deprecated `setup auth` / `setup repo` aliases still work or have been removed entirely.
> [!WARNING]
>
> Firewall blocked 1 domain
>
> The following domain was blocked by the firewall during workflow execution:
>
> - `awmgmcpg`
>> To allow these domains, add them to the `network.allowed` list in your workflow frontmatter:
>
> ```yaml
> network:
> allowed:
> - defaults
> - "awmgmcpg"
> ```
>
> See [Network Configuration](https://github.github.com/gh-aw/reference/network/) for more information.
>
>
> Generated by [🔍 Suggest New E2E Tests](https://github.com/githubnext/gh-aw-test/actions/runs/29403625307) · 30.2 AIC · ⌖ 5.72 AIC · ⊞ 5.6K · [◷](https://github.com/search?q=repo%3Agithubnext%2Fgh-aw-test+is%3Aissue+%22gh-aw-workflow-call-id%3A+githubnext%2Fgh-aw-test%2Fsuggest-new-e2e-tests%22&type=issues)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading test-copilot-gh-steps for the workflow pattern that captures CLI output in steps and passes it to the agent. Add test-copilot-doctor-command.md with workflow_dispatch, the copilot engine, a pre-step running gh aw doctor, and create-issue as the safe output. Done means the compiled workflow runs and the agent reports whether diagnostics passed; check whether the deprecated setup aliases still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, markdown, shell
- Domain
- ci-cd, cli, testing
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100