Update smoke-ci to use comment-memory and write a haiku#27640
Conversation
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/df7330b9-17c6-45bb-87a9-704799049894 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
❌ Smoke CI failed. Please review the logs for details. |
|
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/b3ff2b40-a87a-471f-9151-0d4094e863e7 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates the smoke-ci workflow to enable comment-memory and introduce lightweight persistence by recording run IDs to cache-memory/repo-memory and appending a haiku to comment-memory during pull_request runs.
Changes:
- Enabled
safe-outputs.comment-memoryand addedcache-memory+repo-memoryconfiguration tosmoke-ci. - Updated the engine command to write run IDs to
/tmp/gh-aw/cache-memory/and/tmp/gh-aw/repo-memory/default/, and append a haiku to/tmp/gh-aw/comment-memory/*.mdon PR events. - Recompiled the generated workflow lock file to include cache/repo memory plumbing and a
push_repo_memoryjob.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/smoke-ci.md | Enables comment-memory and adds memory writes + haiku append logic in the engine command. |
| .github/workflows/smoke-ci.lock.yml | Regenerated compiled workflow reflecting cache-memory/repo-memory/comment-memory and adds repo-memory push steps/job. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 2
| if [ "${GITHUB_EVENT_NAME}" = "pull_request" ]; then | ||
| safeoutputs add_comment --body "✅ smoke-ci: safeoutputs CLI comment + comment-memory run (${GITHUB_RUN_ID})"; | ||
| mkdir -p /tmp/gh-aw/comment-memory; | ||
| HAIKU="CI lights the path\nGreen checks bloom at dawn\nQuiet bots still sing"; |
There was a problem hiding this comment.
HAIKU="...\n..." does not create a multi-line string in bash; the \n sequences will be written literally, so the “3-line haiku” ends up as a single line containing backslash-n characters. Use ANSI-C quoting ($'...') or a heredoc/printf to embed real newlines so the markdown file gets three lines.
| HAIKU="CI lights the path\nGreen checks bloom at dawn\nQuiet bots still sing"; | |
| HAIKU=$'CI lights the path\nGreen checks bloom at dawn\nQuiet bots still sing'; |
| bash -lc 'mkdir -p /tmp/gh-aw/cache-memory /tmp/gh-aw/repo-memory/default; | ||
| printf "%s\n" "${GITHUB_RUN_ID}" >> /tmp/gh-aw/cache-memory/runs.txt; | ||
| printf "%s\n" "${GITHUB_RUN_ID}" >> /tmp/gh-aw/repo-memory/default/runs.txt; |
There was a problem hiding this comment.
runs.txt in repo-memory is appended to on every run with no rotation/pruning. Since repo-memory validation enforces small size/patch limits (10KB in the compiled workflow), this file will eventually exceed limits and cause the push_repo_memory job to fail. Consider truncating to the last N run IDs (e.g., keep a rolling window) or writing per-day/per-week files to bound growth.
| bash -lc 'mkdir -p /tmp/gh-aw/cache-memory /tmp/gh-aw/repo-memory/default; | |
| printf "%s\n" "${GITHUB_RUN_ID}" >> /tmp/gh-aw/cache-memory/runs.txt; | |
| printf "%s\n" "${GITHUB_RUN_ID}" >> /tmp/gh-aw/repo-memory/default/runs.txt; | |
| bash -lc 'mkdir -p /tmp/gh-aw/cache-memory /tmp/gh-aw/repo-memory/default; | |
| MAX_RUNS=200; | |
| printf "%s\n" "${GITHUB_RUN_ID}" >> /tmp/gh-aw/cache-memory/runs.txt; | |
| tail -n "${MAX_RUNS}" /tmp/gh-aw/cache-memory/runs.txt > /tmp/gh-aw/cache-memory/runs.txt.tmp && | |
| mv /tmp/gh-aw/cache-memory/runs.txt.tmp /tmp/gh-aw/cache-memory/runs.txt; | |
| printf "%s\n" "${GITHUB_RUN_ID}" >> /tmp/gh-aw/repo-memory/default/runs.txt; | |
| tail -n "${MAX_RUNS}" /tmp/gh-aw/repo-memory/default/runs.txt > /tmp/gh-aw/repo-memory/default/runs.txt.tmp && | |
| mv /tmp/gh-aw/repo-memory/default/runs.txt.tmp /tmp/gh-aw/repo-memory/default/runs.txt; |
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/6002d2d6-92b9-4e82-ac15-468b1be07525 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…) (#28132) Agent-Logs-Url: https://github.com/github/gh-aw/sessions/6002d2d6-92b9-4e82-ac15-468b1be07525 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
Summary
Update the smoke-ci workflow to explicitly use comment-memory and persist a 3-line haiku during pull_request runs.
Changes
/home/runner/work/gh-aw/gh-aw/.github/workflows/smoke-ci.md:safe-outputs.comment-memory: truesafeoutputs add_commentbehavior for pull requests/tmp/gh-aw/comment-memory/*.md(or createdefault.mdif none exist)safeoutputs noopon push events/home/runner/work/gh-aw/gh-aw/.github/workflows/smoke-ci.lock.ymlValidation
make recompilemake agent-finish(fails due to pre-existing unrelated tests inpkg/workflow):TestOutputPullRequestFallbackAsIssueFalseTestPushToPullRequestBranchConfigParsingparallel_validation: