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
if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
60
+
if ! grep -q '"add_comment"' "$OUTPUTS_FILE"; then
61
+
echo "::error::Agent did not call add_comment on a pull_request trigger."
62
+
exit 1
63
+
fi
64
+
echo "add_comment verified for PR trigger"
65
+
fi
66
+
echo "Safe output validation passed"
67
+
---
68
+
69
+
> **Note:** This workflow has not yet been compiled to a `.lock.yml` file and is **not active** in GitHub Actions.
70
+
> Compilation is pending `opencode` engine support in gh-aw. Once the engine is supported, run
71
+
> `gh-aw compile .github/workflows/smoke-opencode.md` followed by
72
+
> `npx tsx scripts/ci/postprocess-smoke-workflows.ts` to generate the lock file.
73
+
74
+
# Smoke Test: OpenCode Engine Validation
75
+
76
+
**IMPORTANT: Keep all outputs extremely short and concise. Use single-line responses where possible. No verbose explanations.**
77
+
78
+
## Test Requirements
79
+
80
+
1.**GitHub MCP Testing**: Review the last 2 merged pull requests in `__GH_AW_GITHUB_REPOSITORY__`
81
+
2.**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)
82
+
3.**Bash Tool Testing**: Execute bash commands to verify file creation was successful (use `cat` to read the file back)
83
+
4.**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.
84
+
5.**Add Comment**: Use the `add_comment` tool to post a brief summary comment on the current pull request
85
+
86
+
## Output
87
+
88
+
**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:
89
+
- PR titles only (no descriptions)
90
+
- ✅ or ❌ for each test result
91
+
- Overall status: PASS or FAIL
92
+
93
+
If all tests pass:
94
+
- Use the `add_labels` safe-output tool to add the label `smoke-opencode` to the pull request
0 commit comments