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."
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"
Note: This workflow has not yet been compiled to a .lock.yml file and is not active in GitHub Actions.
Compilation is pending opencode engine support in gh-aw. Once the engine is supported, run
gh-aw compile .github/workflows/smoke-opencode.md followed by
npx tsx scripts/ci/postprocess-smoke-workflows.ts to generate the lock file.
Smoke Test: OpenCode Engine Validation
IMPORTANT: Keep all outputs extremely short and concise. Use single-line responses where possible. No verbose explanations.
Test Requirements
GitHub MCP Testing: Review the last 2 merged pull requests in __GH_AW_GITHUB_REPOSITORY__
File Writing Testing: Create a test file /tmp/gh-aw/agent/smoke-test-opencode-${{ github.run_id }}.txt with content "Smoke test passed for OpenCode at $(date)" (create the directory if it doesn't exist)
Bash Tool Testing: Execute bash commands to verify file creation was successful (use cat to read the file back)
Build AWF: Run npm ci && npm run build to verify the agent can successfully build the AWF project. If the command fails, mark this test as β and report the failure.
Add Comment: Use the add_comment tool to post a brief summary comment on the current pull request
Output
REQUIRED: Call add_comment to post a brief comment (max 5-10 lines) on the current pull request (this is validated by the post-step check) containing:
PR titles only (no descriptions)
β or β for each test result
Overall status: PASS or FAIL
If all tests pass:
Use the add_labels safe-output tool to add the label smoke-opencode to the pull request