You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OUTPUTS_FILE="${GH_AW_SAFE_OUTPUTS:-${RUNNER_TEMP}/gh-aw/safeoutputs/outputs.jsonl}"
if [ ! -s "$OUTPUTS_FILE" ]; then
echo "::error::No safe outputs were invoked. Smoke tests require the agent to call safe output tools."
echo "Checked path: $OUTPUTS_FILE"
exit 1
fi
echo "Safe output entries found: $(wc -l < "$OUTPUTS_FILE")"
if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
if ! grep -q '"add_comment"' "$OUTPUTS_FILE"; then
echo "::error::Agent did not call add_comment on a pull_request trigger."
exit 1
fi
echo "add_comment verified for PR trigger"
fi
echo "Safe output validation passed"
Smoke Test: Copilot Engine Validation
IMPORTANT: Keep all outputs extremely short and concise. Use single-line responses where possible. No verbose explanations.
Pre-Computed Test Results
The following tests were already executed in a deterministic pre-agent step. Your job is to verify the results and produce the summary comment.
1. GitHub MCP Testing
Verify MCP connectivity by calling github-list_pull_requests for ${{ github.repository }} (limit 1, state merged). Confirm the result matches the pre-fetched data below.
2. GitHub.com Connectivity
Pre-step result: HTTP ${{ steps.smoke-data.outputs.SMOKE_HTTP_CODE }} from github.com.
β if HTTP 200 or 301, β otherwise.
3. File Write/Read Test
Pre-step wrote and read back: "${{ steps.smoke-data.outputs.SMOKE_FILE_CONTENT }}"
File path: ${{ steps.smoke-data.outputs.SMOKE_FILE_PATH }}
Verify by running cat on the file path using bash to confirm it exists.
Pre-Fetched PR Data
${{ steps.smoke-data.outputs.SMOKE_PR_DATA }}
Output
Add a very brief comment (max 5-10 lines) to the current pull request with:
PR titles only (no descriptions)
β or β for each test result
Overall status: PASS or FAIL
Mention the pull request author and any assignees
If all tests pass, add the label smoke-copilot to the pull request.