From c57e7e485bfe955d7bec7e35b57eab9d62a1a13b Mon Sep 17 00:00:00 2001 From: WenyXu Date: Thu, 9 Jul 2026 16:52:52 +0800 Subject: [PATCH] docs: harden fuzz CI artifact fallback Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus Signed-off-by: WenyXu --- .../greptimedb-fuzz-ci-failure-investigation/SKILL.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.agents/skills/greptimedb-fuzz-ci-failure-investigation/SKILL.md b/.agents/skills/greptimedb-fuzz-ci-failure-investigation/SKILL.md index e3a3f219cfa..82fdf6d2a30 100644 --- a/.agents/skills/greptimedb-fuzz-ci-failure-investigation/SKILL.md +++ b/.agents/skills/greptimedb-fuzz-ci-failure-investigation/SKILL.md @@ -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