docs: harden fuzz CI artifact fallback

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
WenyXu
2026-07-09 16:52:52 +08:00
co-authored by Sisyphus
parent b788dd61d9
commit c57e7e485b
@@ -167,9 +167,9 @@ Fallback if `gh run view --log` is incomplete:
```bash
gh api "repos/$REPO/actions/jobs/$JOB_ID/logs" > job-$JOB_ID-logs.zip
unzip -q job-$JOB_ID-logs.zip -d job-logs
unzip -oq job-$JOB_ID-logs.zip -d job-logs
gh api "repos/$REPO/actions/runs/$RUN_ID/logs" > run-$RUN_ID-logs.zip
unzip -q run-$RUN_ID-logs.zip -d run-logs
unzip -oq run-$RUN_ID-logs.zip -d run-logs
```
In the job log, inspect the `Run Fuzz Test` step first. Capture:
@@ -214,9 +214,13 @@ Fallback by artifact id:
```bash
ARTIFACT_ID=$(jq -r --arg name "$ARTIFACT" '.artifacts[] | select(.name == $name and (.expired | not)) | .id' artifacts.json | head -n 1)
if [ -z "$ARTIFACT_ID" ]; then
echo "Artifact not found or expired: $ARTIFACT"
exit 1
fi
gh api "repos/$REPO/actions/artifacts/$ARTIFACT_ID/zip" > artifact-$ARTIFACT_ID.zip
mkdir -p artifacts/"$ARTIFACT"
unzip -q artifact-$ARTIFACT_ID.zip -d artifacts/"$ARTIFACT"
unzip -oq artifact-$ARTIFACT_ID.zip -d artifacts/"$ARTIFACT"
```
For distributed fuzz failures, download at least the matching kind logs. Also