Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/patch-add-edit-wiki-safe-output.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

166 changes: 119 additions & 47 deletions .github/workflows/dev.lock.yml

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions .github/workflows/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ name: Dev
description: Daily status report for gh-aw project
timeout-minutes: 30
strict: false
engine:
id: pi
model: copilot/claude-sonnet-4-20250514
engine: copilot

permissions:
contents: read
Expand Down
80 changes: 44 additions & 36 deletions .github/workflows/smoke-codex.lock.yml

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion .github/workflows/smoke-codex.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ safe-outputs:
allowed: [githubactionagent]
max: 1
hide-comment:
edit-wiki:
messages:
footer: "> 🔮 *The oracle has spoken through [{workflow_name}]({run_url})*{effective_tokens_suffix}{history_link}"
run-started: "🔮 The ancient spirits stir... [{workflow_name}]({run_url}) awakens to divine this {event_type}..."
Expand Down Expand Up @@ -102,13 +103,20 @@ checkout:
- Check if `/tmp/gh-aw/cache-memory/smoke-codex-history.json` exists; if it does, read it and note the previous run's results (run ID, timestamp, status)
- Write current run results to `/tmp/gh-aw/cache-memory/smoke-codex-history.json` with content: `{"run_id": "${{ github.run_id }}", "timestamp": "<current UTC timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ>", "status": "PASS or FAIL", "tests_passed": <count>, "tests_failed": <count>}` (create the parent directory if it doesn't exist)
- Use bash to verify the file was written successfully (use `cat` to read it back)
10. **Edit Wiki Testing**: Create a new wiki page with a haiku and link it from the main wiki page using the `edit_wiki` safe-output tool:
- Clone the wiki repo to `/tmp/gh-aw/wiki` using: `git clone https://github.com/${{ github.repository }}.wiki.git /tmp/gh-aw/wiki` (if the wiki doesn't exist yet, skip this test and mark it ⚠️ Skipped)
- Configure git identity in the wiki clone: `git -C /tmp/gh-aw/wiki config user.email "github-actions[bot]@users.noreply.github.com"` and `git -C /tmp/gh-aw/wiki config user.name "github-actions[bot]"`
- Create a new wiki page `/tmp/gh-aw/wiki/Smoke-Test-Haiku.md` with content: a title "# Smoke Test Haiku", a blank line, and an original 3-line haiku about automated testing or continuous integration (write the haiku content in the file, NOT in the commit message)
- Update `/tmp/gh-aw/wiki/Home.md` (if it exists) to append a link to the new page: `- [Smoke Test Haiku](Smoke-Test-Haiku)` (if Home.md does not exist, create it with that link)
- Stage and commit the wiki changes: `git -C /tmp/gh-aw/wiki add . && git -C /tmp/gh-aw/wiki commit -m "Add smoke test haiku page [run ${{ github.run_id }}]"`
- Call the `edit_wiki` safe-output tool with `{ "message": "Add smoke test haiku page", "wiki_dir": "/tmp/gh-aw/wiki" }`

## Output

**ALWAYS create an issue** with a summary of the smoke test run:
- Title: "Smoke Test: Codex - ${{ github.run_id }}"
- Body should include:
- Test results (✅ or ❌ for each test, including test #9 Cache Memory)
- Test results (✅ or ❌ for each test, including test #9 Cache Memory and test #10 Edit Wiki)
- Overall status: PASS or FAIL
- Run URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
- Timestamp
Expand Down
Loading
Loading