greptimedb-fuzz-ci-failure-investigation
Skill6.7k starsChanged 4 months agoApache-2.0View on GitHub
Investigate a failed GreptimeDB fuzz CI target link by downloading GitHub Actions job logs plus fuzz artifacts such as kind logs, monitor dumps, and CSV dumps, then correlate the failure with local GreptimeDB source code. Use when the user provides a failed fuzz CI target/job URL or asks to diagnose GreptimeDB fuzz CI failures.
Trending
Quiet since September.about the whole repository
Who's talking about GreptimeTeam/greptimedb
- yihong0618/gitblog“从给 Greptime 贡献代码的过程中,我都学到了什么”GitHub · Jul 22, 2025 · 40 reactions
- yihong0618/gitblog“2025 年我提了 500 个 Pull Requests”GitHub · Dec 26, 2025 · 32 reactions
- yihong0618/gitblog“最近给开源项目贡献的记录”GitHub · Jan 27, 2025 · 27 reactions
- A Hacker News story“GreptimeDB – A distributed, cloud-native, time-series database written in Rust”Hacker News · Nov 15, 2022 · 7 points
- databendlabs/jsonb“User Story: GreptimeDB uses jsonb for it's JSON support”GitHub · Sep 19, 2024 · 5 reactions
The biggest 5 of 56 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 56
Talked about on GitHub, Bluesky and Hacker News (56 times).
On GitHub · 36
- Jul 22, 2025从给 Greptime 贡献代码的过程中,我都学到了什么 — yihong0618/gitblog40 reactions · 12 comments
- Dec 26, 20252025 年我提了 500 个 Pull Requests — yihong0618/gitblog32 reactions · 9 comments
- Jan 27, 2025最近给开源项目贡献的记录 — yihong0618/gitblog27 reactions · 4 comments
- Sep 19, 2024User Story: GreptimeDB uses jsonb for it's JSON support — databendlabs/jsonb5 reactions · 1 comment
- Feb 5, 2025fix: rewrite fetch, skip of the Limit node in correct order — apache/datafusion4 reactions · 1 comment
31 more on GitHub
- Aug 6, 2023Tracking issues of preparing breaking change for OpenDAL v0.40 — apache/opendal4 reactions · 2 comments
- Sep 10, 2025Add GreptimeDB icon — simple-icons/simple-icons2 reactions
- Aug 22, 2025Repacment API for capabilities such as `list_has_content_length` etc. — apache/opendal2 reactions · 1 comment
- Feb 11, 2025using static check to ignore memory bug and darling pointer — foyer-rs/foyer2 reactions · 8 comments
- Apr 13, 2024feat(promql): add lookback parameter — GreptimeTeam/greptime-proto2 reactions · 1 comment
- Feb 2, 2024feat: region procedure service — GreptimeTeam/greptime-proto2 reactions
- Dec 10, 2023RFC-3734: Buffered reader — apache/opendal2 reactions · 8 comments
- Dec 1, 2023docs: add range query `align to` docs — GreptimeTeam/docs2 reactions · 1 comment
- Aug 28, 2023Add documentation about Profile-Guided Optimization (PGO) — GreptimeTeam/docs2 reactions
- Jun 20, 2023Support `Like` and other familiar exprs in substrait — apache/datafusion2 reactions · 2 comments
- Mar 20, 2023[Task] <support using greptimedb store history metrics data> — apache/hertzbeat2 reactions
- Mar 8, 2023`all_schema()` will skip ExtensionPlan's own schema and fetches schemas from children plans — apache/datafusion2 reactions
- Sep 28, 2026Update docs for feat: add HDFS object storage backend — GreptimeTeam/docs1 reaction
- Sep 15, 2026Update docs for feat: allow re-enabling WAL after disabling — GreptimeTeam/docs1 reaction
- Sep 10, 2026Update docs for feat: support request-level insert WAL skipping — GreptimeTeam/docs1 reaction
- Sep 9, 2026feat(proto): add request-level skip_wal to region inserts — GreptimeTeam/greptime-proto1 reaction · 1 comment
- Sep 9, 2026Update docs for feat: add repartition partition count hint — GreptimeTeam/docs1 reaction
- Sep 4, 2026Update docs for fix(wal): bound Kafka requests and extend latency buckets — GreptimeTeam/docs1 reaction
- Sep 1, 2026Update docs for feat(telemetry): add log directory size retention — GreptimeTeam/docs1 reaction
- Aug 31, 2026new feature: add capability-rooted secure filesystem access — apache/opendal1 reaction
- Aug 10, 2026Document v1.2 breaking changes in the upgrade guide — GreptimeTeam/docs1 reaction
- Aug 10, 2026Fix sparse primary key encoding documentation for v1.2 — GreptimeTeam/docs1 reaction
- Aug 5, 2026Update docs for docs: align wal.sync_period documented default with actual fallback (5s) — GreptimeTeam/docs1 reaction
- Aug 3, 2026Update docs for feat: support enabling skip_wal with ALTER TABLE — GreptimeTeam/docs1 reaction
- Aug 3, 2026Update docs for feat(function): add json_object_keys scalar function — GreptimeTeam/docs1 reaction
- Jul 31, 2026Update docs for fix: sandbox SQL local filesystem access — GreptimeTeam/docs1 reaction
- Jul 14, 2026Update docs for feat: enlarge file meta cache — GreptimeTeam/docs1 reaction
- Jul 6, 2026Update docs for feat: report region query stats in heartbeat — GreptimeTeam/docs1 reaction
- Jun 24, 2026docs: add export import v2 guide — GreptimeTeam/docs1 reaction · 18 comments
- Apr 26, 2026#40910 Add GreptimeDB driver support — dbeaver/dbeaver1 reaction · 15 comments
- Apr 23, 2026Update docs for fix: align gRPC CLI option names with config naming — GreptimeTeam/docs1 reaction
On Bluesky · 14
- Dec 20, 2024GreptimeTeam / greptimedb: An open-source, cloud-native, unified time series database for metrics, logs and events with SQL/PromQL… — @rusttrending.bsky.social4 likes and reposts
- Sep 4, 2026GreptimeTeam / greptimedb: The open-source observability database. One columnar engine for metrics, logs, and traces, on object storage.… — @rusttrending.bsky.social2 likes and reposts
- Aug 13, 2025GreptimeTeam / greptimedb: Open-source, cloud-native, unified observability database for metrics, logs and traces, supporting… — @rusttrending.bsky.social2 likes and reposts
- Jun 7, 2025GreptimeTeam / greptimedb: Open-source, cloud-native, unified observability database for metrics, logs and traces, supporting… — @rusttrending.bsky.social2 likes and reposts · 1 reply
- Apr 13, 2025GreptimeTeam / greptimedb: An open-source, cloud-native, unified observerability database for metrics, logs and events, supporting… — @rusttrending.bsky.social2 likes and reposts
9 more on Bluesky
- Jun 27, 2026GreptimeTeam / greptimedb: The open-source Observability 2.0 database. One engine for metrics, logs, and traces — replacing Prometheus,… — @rusttrending.bsky.social1 likes and repost
- May 5, 2025GreptimeTeam/greptimedb: Open-source, cloud-native, unified observability database for metrics, logs and traces, supporting… — @fluid.sublimer.me1 likes and repost
- May 3, 2025metrics, logs, tracesを格納するためのDB。クエリーはSQLやPromQLなどで書ける。Rust実装。Webベースのdashboardもある。Grafana連携もok。オープンソースのほかクラウドサービスも用意。 — @matsuu.bsky.social1 likes and repost
- Apr 27, 2025GreptimeTeam / greptimedb: Open-source, cloud-native, unified observability database for metrics, logs and traces, supporting… — @rusttrending.bsky.social1 likes and repost
- Feb 21, 2025GreptimeTeam / greptimedb: An open-source, cloud-native, unified time series database for metrics, logs and events, supporting… — @rusttrending.bsky.social1 likes and repost
- Jun 2, 2024GreptimeTeam / greptimedb: An open-source, cloud-native, distributed time-series database with PromQL/SQL/Python supported. Available on… — @rusttrending.bsky.social1 likes and repost
- Apr 1, 2024GreptimeTeam / greptimedb: An open-source, cloud-native, distributed time-series database with PromQL/SQL/Python supported. Available on… — @rusttrending.bsky.social1 likes and repost
- Jul 29, 2023GreptimeTeam / greptimedb: An open-source, cloud-native, distributed time-series database with PromQL/SQL/Python supported. ★2899… — @rusttrending.bsky.social1 likes and repost
- Dec 28, 2025Connaissez-vous greptimedb ? Ce projet m'intrigue beaucoup ! github.com/GreptimeTeam... — @bool.fr0 likes and reposts · 2 replies
On Hacker News · 6
- Nov 15, 2022GreptimeDB – A distributed, cloud-native, time-series database written in Rust7 points
- Apr 7, 2024GreptimeDB: A fast and cost-effective alternative to InfluxDB3 points
- Feb 12, 2024Another distributed time-series database written in Rust3 points
- Jan 14, 2025GreptimeDB: Unified Storage for Logs, Metrics, and Traces with OpenTelemetry2 points
- Jul 27, 2024Unified time series database for metrics, logs, and events written in Rust1 point
1 more on Hacker News
- Feb 6, 2024Another distributed time-series database written in Rust1 point
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- tests-integration/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- greptimedb-development-docker-imageSkill
- greptimedb-release-noteSkill
- greptimedb-releaseSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. About 0 are common, 12 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Always pass --repo GreptimeTeam/greptimedb to gh.
- Very specific: line 18
Use this skill for fuzz CI only.
- Distinctive: line 79
When the input is a job URL, do not ask for the target name first.
- Distinctive: line 88
If only a run URL is provided, list failed jobs and choose the fuzz job matching the group/mode.
- Very specific: line 97
Use the local GreptimeDB checkout for source analysis.
- Very specific: line 99
Use a scratch directory outside the source tree, such as /tmp/greptimedb-fuzz-ci.
- Distinctive: line 103
Create a scratch directory:
- Distinctive: line 220
After download, read the manifest before the bulk logs:
- Very specific: line 263
Before drilling into a specific error string, build a small macro-level model of the failure.
- Very specific: line 280
Use the timeline to classify the failure phase: setup, workload execution, storage/WAL/write path, query path, cleanup, or runner …
- Distinctive: line 318
When a failure appears configuration-related, compare all three levels before claiming a config did or did not take effect:
- Very specific: line 326
If a logged value differs from the expected config, explicitly state whether the config was not applied, was overridden by another layer, …
- Distinctive: line 332
Before final classification, list at least two plausible causes and the evidence that supports or weakens each, for example:
- Distinctive: line 369
Do not blame cleanup errors after the fuzz failure.
- Distinctive: line 370
Do not treat expected retry warnings as root cause unless they align with the assertion, crash, or timeout.
- Very specific: line 372
Do not assume an artifact is relevant only because it contains fuzz.
- Distinctive: line 374
Do not diagnose from current local main if the run used a different SHA.
- Distinctive: line 378
Read the tested SHA:
- Very specific: line 395
If local HEAD differs, inspect files at that SHA or create a temporary worktree:
- Very specific: line 401
Remove temporary worktrees after investigation with git worktree remove <path>.
- Distinctive: line 402
Never overwrite the user's current branch.
- Distinctive: line 406
Start from concrete strings: fuzz target name, panic text, assertion message, error variant, SQL statement, or log message.
- Very specific: line 422
When reporting code evidence, cite the file/function/line and quote the log line that reaches it.
- Very specific: line 469
If logs or artifacts cannot be downloaded because gh is not authenticated or the artifacts expired, say so directly and include the exact …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GreptimeDB Fuzz CI Failure Investigation
Investigate failed fuzz-test jobs for GreptimeTeam/greptimedb from a local
checkout. The purpose is to download the failed job's CI output and fuzz artifacts,
then explain the likely cause by correlating the evidence with GreptimeDB source.
Always pass --repo GreptimeTeam/greptimedb to gh; local remotes may point to
forks. Keep the workflow read-only: do not rerun jobs, cancel workflows, push,
comment on PRs, or delete artifacts unless the user explicitly asks.
Scope
Use this skill for fuzz CI only. In .github/workflows/integration.yml, fuzz failures
are the CI jobs that use .github/actions/fuzz-test:
fuzztest— standalone fuzz targets.unstable-fuzztest— unstable standalone fuzz target.distributed-fuzztest— distributed cluster fuzz targets.distributed-fuzztest-with-chaos— distributed fuzz targets with Chaos Mesh.
Each matrix job runs a semantic group of targets on one prepared environment.
The group defaults to fail-fast: after the first target failure it captures that
target's diagnostics and marks the remaining targets as skipped. The workflow
strategy still uses fail-fast: false, so failures do not cancel other groups.
The reusable action .github/actions/fuzz-test/action.yaml delegates each target
to .github/scripts/run-fuzz-targets.sh. CI passes FUZZ_BIN_DIR, so the script
runs the prebuilt target executable:
<prebuilt-fuzz-binary> -max_total_time=<seconds> \
-artifact_prefix=<target-dir>/libfuzzer/Without FUZZ_BIN_DIR, such as during local reproduction, the script falls back
to cargo fuzz run <target> --fuzz-dir tests-fuzz -D -s none with the same
libFuzzer arguments.
Failed jobs upload one group artifact. Its stable name identifies the job kind, mode, and group, for example:
fuzz-distributed-remote-wal-database-and-regular-tableThe artifact contains manifest.json, summary.md, and one directory per target
under targets/<target>/. A failed distributed target can include fuzz.log,
libFuzzer reproducers, CSV/SQL traces, Kind logs, monitor dumps, and Kubernetes
state. Setup failures use targets/setup/.
Inputs
The normal user input is a CI target link: a GitHub Actions job URL for one failed matrix target. Treat that URL as the primary source of truth. Example:
https://github.com/GreptimeTeam/greptimedb/actions/runs/29000666156/job/86062894741Also accept these fallback inputs:
- A workflow run URL, e.g.
https://github.com/GreptimeTeam/greptimedb/actions/runs/29000666156. - A run id plus a fuzz target, mode name, artifact name, PR, branch, or commit SHA.
Parse ids from URLs:
REPO=GreptimeTeam/greptimedb
RUN_ID=29000666156
JOB_ID=86062894741When the input is a job URL, do not ask for the target name first. Use the job id to fetch metadata, then derive the group and mode from the job name. A distributed fuzz job name usually contains the CI group tuple:
Fuzz Test (Distributed, <mode>, <group>)
Fuzz Test with Chaos (Distributed, <mode>, <group>)If only a run URL is provided, list failed jobs and choose the fuzz job matching the group/mode. Ask only when multiple fuzz jobs are plausible and there is no group, mode, artifact, or job-url clue.
Prerequisites
ghmust be installed and authenticated (gh auth status). Actions logs and artifacts commonly require authentication even for a public repo.jq,unzip, and standard shell tools are useful for reducing logs.- Use the local GreptimeDB checkout for source analysis. If the run's head SHA is not the current checkout, inspect the code at the run's SHA before making claims.
- Use a scratch directory outside the source tree, such as
/tmp/greptimedb-fuzz-ci.
1. Capture run and job metadata
Create a scratch directory:
mkdir -p /tmp/greptimedb-fuzz-ci/$RUN_ID
cd /tmp/greptimedb-fuzz-ci/$RUN_IDFetch run metadata:
gh run view "$RUN_ID" --repo "$REPO" \
--json databaseId,name,displayTitle,event,headBranch,headSha,status,conclusion,createdAt,updatedAt,url,workflowName \
> run.jsonFetch all jobs through the REST API:
gh api "repos/$REPO/actions/runs/$RUN_ID/jobs?per_page=100" \
--paginate --jq '.jobs[]' \
| jq -s '{jobs: .}' > jobs.jsonList failed fuzz-like jobs:
jq -r '
.jobs[]
| select(.conclusion != null and .conclusion != "success")
| select(.name | test("Fuzz Test|fuzz"; "i"))
| [.id, .name, .status, .conclusion, .html_url] | @tsv
' jobs.jsonFor a known JOB_ID, capture job name and step outcomes:
jq -r --arg id "$JOB_ID" '
.jobs[] | select((.id | tostring) == $id) |
"job=\(.name) conclusion=\(.conclusion) url=\(.html_url)",
(.steps[]? | [.number, .name, .status, .conclusion, .started_at, .completed_at] | @tsv)
' jobs.json > job-summary.txtRecord the fuzz job kind, matrix mode, group, failed step, event type, branch, and
head SHA. Do not assume main for PR or merge-queue runs. The failed target is
authoritative in the downloaded artifact's manifest.json; do not guess it from
the group name.
2. Download CI output for the failed job
Download the selected job's log; this is the authoritative target CI output for the
cargo fuzz run command:
gh run view "$RUN_ID" --repo "$REPO" --job "$JOB_ID" --log > job-$JOB_ID.logDownload the full workflow log only when setup/build context matters:
gh run view "$RUN_ID" --repo "$REPO" --log > run-$RUN_ID.logFallback if gh run view --log is incomplete. The job logs endpoint returns a
plain text stream, while the full run logs endpoint returns a zip archive:
gh api "repos/$REPO/actions/jobs/$JOB_ID/logs" > job-$JOB_ID.log
gh api "repos/$REPO/actions/runs/$RUN_ID/logs" > run-$RUN_ID-logs.zip
unzip -oq run-$RUN_ID-logs.zip -d run-logsIn the job log, inspect the Run Fuzz Test step first. Capture:
- exact target name;
max_total_time;- panic/assertion/backtrace or libFuzzer crash output;
- generated crash/reproducer path if printed;
- timeout or resource symptoms.
3. Find and download fuzz artifacts
List artifacts:
gh api "repos/$REPO/actions/runs/$RUN_ID/artifacts?per_page=100" \
--paginate --jq '.artifacts[]' \
| jq -s '{artifacts: .}' > artifacts.json
jq -r '.artifacts[] | [.id, .name, .expired, .size_in_bytes] | @tsv' artifacts.jsonMatch the one group artifact by job kind, mode slug, and group slug. If the display
name does not make the slug obvious, list the run artifacts and choose the unique
fuzz-* artifact whose suffix matches the group. Do not search for separate Kind,
monitor, or CSV artifacts; these are target subdirectories in the group artifact.
Download exact artifacts when possible:
ARTIFACT='fuzz-distributed-remote-wal-database-and-regular-table'
gh run download "$RUN_ID" --repo "$REPO" --name "$ARTIFACT" --dir artifacts/"$ARTIFACT"Fallback by artifact id:
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 -oq artifact-$ARTIFACT_ID.zip -d artifacts/"$ARTIFACT"After download, read the manifest before the bulk logs:
jq -r '.[] | [.target, .status, .exit_code, .after_prior_failure, .artifact_collection] | @tsv' \
artifacts/"$ARTIFACT"/manifest.jsonSelect the first failure entry as the primary target. Entries with
skipped_after_failure did not run; entries with after_prior_failure=true ran
against a potentially contaminated shared environment. Note expired or missing
artifacts explicitly; retention is currently short (retention-days: 3).
4. Understand artifact contents
Evidence for target <target> is rooted at
artifacts/$ARTIFACT/targets/<target>/. result.json records timestamps, status,
exit code, fuzz budget, prior-failure provenance, and artifact collection status.
fuzz.log is the complete libFuzzer output from the prebuilt target executable in
CI; local fallback runs it through cargo fuzz run.
Kind logs under targets/<target>/kind/ come from an immediate failure snapshot
and usually include Kubernetes state plus container logs. Prioritize:
- GreptimeDB component logs: frontend, datanode, metasrv, flownode, monitor.
- Kubernetes pod descriptions/events: restarts, OOMKilled, scheduling, image pull, volume, DNS, and network issues.
- External service logs: etcd, Kafka, Minio, Chaos Mesh, Kafka WAL helper.
Monitor dumps under targets/<target>/monitor/ are collected by
.github/scripts/collect-fuzz-monitor-artifacts.sh. They may include:
state.log,sql.log,copy.log,port-forward.log;*.show_create_table.sqlfor_gt_logsand OpenTelemetry trace tables;- parquet dumps for
_gt_logs,opentelemetry_traces,opentelemetry_traces_operations, andopentelemetry_traces_services.
CSV and SQL traces are under targets/<target>/csv/. LibFuzzer crash or timeout
reproducers are under targets/<target>/libfuzzer/. Kubernetes descriptions and
events are under targets/<target>/kubernetes/. Standalone service logs are under
targets/<target>/service/ when available.
5. Build a layered diagnosis model
Before drilling into a specific error string, build a small macro-level model of
the failure. This prevents overfitting on the loudest symptom, such as
libFuzzer: deadly signal, Internal error, or a cleanup warning.
5.1 Create a failure timeline
Record the key timestamps in order:
- job start and setup steps;
- external dependencies ready, such as etcd, Kafka, Minio, and Chaos Mesh;
- GreptimeDB cluster ready;
- fuzz binary starts;
- first generated operation or SQL visible in the target log;
- first suspicious component log line;
- user-visible fuzz failure or panic;
- artifact collection and cleanup.
Use the timeline to classify the failure phase: setup, workload execution, storage/WAL/write path, query path, cleanup, or runner infrastructure.
5.2 Trace the error propagation chain
For distributed fuzz failures, identify the chain from outer symptom to inner cause candidate. Prefer this shape:
fuzz panic/assertion
-> client-visible SQL/gRPC/HTTP error
-> frontend or monitor error
-> meta/datanode/flownode component error
-> storage/WAL/object-store/Kafka/etcd/k8s dependency errorAt each boundary, decide whether that layer produced the error or merely wrapped and forwarded a downstream error. Do not stop at wrapper errors unless there is no deeper evidence.
5.3 Investigate by component boundary
For distributed targets, scan evidence in this order unless the timeline points elsewhere:
- fuzz target and generated operations;
- frontend request handling and SQL/error response;
- metasrv metadata/procedure/routing;
- datanode/mito2/metric-engine region execution;
- WAL, Kafka, object store, Minio, etcd, or other dependencies;
- Kubernetes pod state, restarts, scheduling, DNS, network, and runner resource signals.
For each layer, answer two questions: "is this the first causal error?" and "is this layer producing or propagating the failure?"
5.4 Verify intended config against runtime behavior
When a failure appears configuration-related, compare all three levels before claiming a config did or did not take effect:
- the workflow/action/Helm/YAML config at the tested SHA;
- the actual pod/container runtime config or startup logs, if available;
- the source path that consumes the config, including hard-coded defaults and library retry/backoff settings.
If a logged value differs from the expected config, explicitly state whether the config was not applied, was overridden by another layer, or refers to a different kind of timeout/retry/deadline.
5.5 Keep competing hypotheses until evidence rules them out
Before final classification, list at least two plausible causes and the evidence that supports or weakens each, for example:
- product bug;
- fuzz/test invalid assumption or missing wait;
- config not applied or overridden;
- dependency/infra flake;
- timeout, retry, or resource pressure.
Then choose the most likely cause and keep the confidence scoped. It is often valid to have high confidence in the observed error chain but only medium confidence in the ultimate cause category.
5.6 State what would disprove the diagnosis
Include one or two falsifiable checks, such as a same-SHA rerun, a fixed reproducer, a cross-target pattern in the same dependency mode, or one missing artifact/log that would change the conclusion.
6. Reduce evidence before reading source
Extract high-signal lines from job logs and artifacts:
grep -RInE '(^|[^[:alpha:]])(ERROR|Error|WARN|panic|panicked|FAILED|failure|timeout|Timeout|assert|backtrace|SIG[A-Z]+|OOMKilled|CrashLoopBackOff|ImagePullBackOff|libFuzzer|AddressSanitizer|UndefinedBehaviorSanitizer)' \
job-$JOB_ID.log run-$RUN_ID.log job-logs run-logs artifacts 2>/dev/null > signals.txtThen identify the first causal failure, not the last cleanup error. A typical order:
cargo fuzz runoutput injob-$JOB_ID.log.- GreptimeDB component logs around the same timestamp.
- Kubernetes events/restarts/OOMs.
- Monitor/CSV dumps that show the generated SQL or cluster state.
Avoid common mistakes:
- Do not blame cleanup errors after the fuzz failure.
- Do not treat expected retry warnings as root cause unless they align with the assertion, crash, or timeout.
- Do not assume an artifact is relevant only because it contains
fuzz; match mode and target. - Do not diagnose from current local
mainif the run used a different SHA.
7. Inspect the tested source revision
Read the tested SHA:
HEAD_SHA=$(jq -r '.headSha // empty' run.json)
if [ -z "$HEAD_SHA" ]; then
echo "Error: HEAD_SHA is empty or null"
exit 1
fi
UPSTREAM_REMOTE=$(git remote -v \
| awk '/GreptimeTeam\/greptimedb(\.git)?\/?([[:space:]])/ { print $1; exit }')
UPSTREAM_REMOTE=${UPSTREAM_REMOTE:-origin}
git rev-parse --verify "$HEAD_SHA^{commit}" >/dev/null 2>&1 \
|| git fetch "$UPSTREAM_REMOTE" "$HEAD_SHA"If local HEAD differs, inspect files at that SHA or create a temporary worktree:
git worktree add --detach /tmp/greptimedb-fuzz-ci/$RUN_ID/source "$HEAD_SHA"Remove temporary worktrees after investigation with git worktree remove <path>.
Never overwrite the user's current branch.
8. Map logs to GreptimeDB code
Start from concrete strings: fuzz target name, panic text, assertion message, error variant, SQL statement, or log message. Search/read the matching source at the run SHA.
Useful entry points:
tests-fuzz/— fuzz targets, operation generators, checkers, dump paths..github/actions/fuzz-test/action.yaml— exact CI fuzz runner configuration..github/workflows/integration.yml— fuzz matrix and artifact upload names..github/scripts/collect-fuzz-monitor-artifacts.sh— monitor dump contents.src/mito2/AGENTS.md— storage/WAL/region failures.src/metric-engine/AGENTS.md— metric/logical table failures.src/frontend/AGENTS.md— SQL/protocol/query orchestration failures.src/meta-srv/AGENTS.md— metadata/procedure/routing failures.src/flow/AGENTS.md— flow failures.
When reporting code evidence, cite the file/function/line and quote the log line that reaches it. Separate confirmed facts from hypotheses.
9. Classify the cause
Use this taxonomy:
- Product bug: GreptimeDB panics, returns wrong results, loses data, or violates invariants under generated fuzz operations.
- Fuzz/test bug: the fuzz target/generator/checker makes an invalid assumption or fails to wait for an asynchronous condition it requires.
- Flake/race: timing/order/resource issue, usually supported by timeouts, retries, pod restarts, or prior similar failures.
- Environment/infra: runner disk/OOM, Docker/kind, network, dependency install, Kafka/Minio/etcd startup, or GitHub service issue.
- Unknown: logs/artifacts are expired or evidence conflicts.
10. Final response format
Use this structure:
## Summary
- Likely cause: <one sentence>
- Confidence: high|medium|low
- Classification: product bug|fuzz/test bug|flake/race|environment/infra|unknown
- Confidence basis: <which parts are confirmed vs inferred>
## Evidence
- `<job log or artifact path>`: quoted line(s)
- `<source-file:line>`: relevant code path
## Reasoning
<short chain from fuzz target -> CI output -> artifact logs -> source code>
## Alternative hypotheses
- <hypothesis>: <supporting and weakening evidence>
- <hypothesis>: <supporting and weakening evidence>
## Next steps
1. <minimal fix, reproduction command, or verification command>
2. <rerun command or extra log needed, if any>
## What would disprove this
- <specific rerun, artifact, log line, or reproducer result that would change the diagnosis>If logs or artifacts cannot be downloaded because gh is not authenticated or the
artifacts expired, say so directly and include the exact command/error.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

