Skip to content

Commit 570038e

Browse files
committed
ci: raise agent audit turn limit and preserve logs
The Friday test-health audit hit the 30-turn cap on its first-ever run (2026-04-24) and the agent log was discarded with the self-hosted runner. Heavier recipes need more room, and the next failure should be diagnosable. - Raise --max-turns from 30 to 50 - Switch --output-format from text to stream-json so events are emitted during the run instead of only at process exit; prefix with stdbuf -oL -eL to line-buffer the pipe - Upload /tmp/claude-audit-log.txt and /tmp/audit-<suite>.md as an artifact (if: always(), 14-day retention) using the upload-artifact SHA already pinned in build-notebooks.yml Signed-off-by: Andre Manoel <amanoel@nvidia.com>
1 parent d75113c commit 570038e

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/agentic-ci-daily.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ jobs:
174174
| sed "s|{{date}}|$(date -u +%Y-%m-%d)|g" \
175175
| sed "s|{{memory_path}}|.agentic-ci-state|g")
176176
177-
claude \
177+
stdbuf -oL -eL claude \
178178
--model "$AGENTIC_CI_MODEL" \
179179
-p "$PROMPT" \
180-
--max-turns 30 \
181-
--output-format text \
180+
--max-turns 50 \
181+
--output-format stream-json \
182182
--verbose \
183183
2>&1 | tee /tmp/claude-audit-log.txt
184184
@@ -205,6 +205,17 @@ jobs:
205205
json.dump(state, f, indent=2)
206206
"
207207
208+
- name: Upload agent log
209+
if: always()
210+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
211+
with:
212+
name: claude-audit-log-${{ matrix.suite }}-${{ github.run_id }}
213+
path: |
214+
/tmp/claude-audit-log.txt
215+
/tmp/audit-${{ matrix.suite }}.md
216+
retention-days: 14
217+
if-no-files-found: ignore
218+
208219
- name: Write job summary
209220
if: always()
210221
env:

0 commit comments

Comments
 (0)