-
Notifications
You must be signed in to change notification settings - Fork 371
Update smoke-ci haiku cache-memory behavior and issue body count #27849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -54,10 +54,11 @@ strict: true | |||||||||
| --- | ||||||||||
|
|
||||||||||
| For all events, call the tools in this exact order: | ||||||||||
| 1. Use `cache-memory` to write a short JSON record for this run. | ||||||||||
| 2. Use `repo-memory` to write a short markdown run note. | ||||||||||
| 3. Use `create_issue` with temporary ID `aw_smokeci` and include the run URL in the body. | ||||||||||
| 4. Use `update_issue` targeting `aw_smokeci` with `operation: "append"` to add a second line confirming the update succeeded. | ||||||||||
| 1. Use `cache-memory` to inspect `/tmp/gh-aw/cache-memory/smoke-ci-haiku/`, count how many haiku records already exist, then save that count as `existing_haiku_count`. | ||||||||||
| 2. Create a new haiku for this run and use `cache-memory` to save it as a JSON record in `/tmp/gh-aw/cache-memory/smoke-ci-haiku/` with a filesystem-safe timestamp filename in `YYYY-MM-DD-HH-MM-SS-sss` format (no `:`). | ||||||||||
|
Comment on lines
+57
to
+58
|
||||||||||
| 1. Use `cache-memory` to inspect `/tmp/gh-aw/cache-memory/smoke-ci-haiku/`, count how many haiku records already exist, then save that count as `existing_haiku_count`. | |
| 2. Create a new haiku for this run and use `cache-memory` to save it as a JSON record in `/tmp/gh-aw/cache-memory/smoke-ci-haiku/` with a filesystem-safe timestamp filename in `YYYY-MM-DD-HH-MM-SS-sss` format (no `:`). | |
| 1. Use `cache-memory` to inspect `/tmp/gh-aw/cache-memory/smoke-ci-haiku/`, count how many existing haiku record files match `*.json`, then save that count as `existing_haiku_count`. | |
| 2. Create a new haiku for this run and use `cache-memory` to save it in `/tmp/gh-aw/cache-memory/smoke-ci-haiku/` as a JSON object with exactly these required keys: `run_url`, `haiku_text`, `timestamp`, and `existing_haiku_count`. Use the consistent filename pattern `YYYY-MM-DD-HH-MM-SS-sss.json` (filesystem-safe, no `:`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Step 1 assumes
/tmp/gh-aw/cache-memory/smoke-ci-haiku/already exists. On a first run (or after cache eviction), inspecting/listing this directory may fail and break the workflow. Please clarify that if the directory is missing,existing_haiku_countmust be set to 0 and the directory should be created before writing the new record.