Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .agents/skills/analyze-ci-failure/scripts/analyze_ci_failure.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ def parse_log(log_path):
"error waiting for container",
"error during connect:",
"user command error:",
"curl: (",
"connection reset by peer",
"input/output error",
"errno 5",
]
):
if clean_line:
Expand Down Expand Up @@ -151,6 +155,19 @@ def create_plan(job_name, log_path, errors):
):
is_flake = True
flake_reason = "Buildkite agent / Docker runner infrastructure failure (dockerd disconnection / grpc context canceled / exit status 125). This is an infrastructure flake, not a codebase bug."
elif any(
"curl:" in e.lower()
or "recv failure: connection reset" in e.lower()
or "connection reset by peer" in e.lower()
for e in errors
):
is_flake = True
flake_reason = "Network connection reset during runner bootstrap or artifact download (curl recv failure / connection reset). This is an infrastructure network flake."
elif any(
"input/output error" in e.lower() or "errno 5" in e.lower() for e in errors
):
is_flake = True
flake_reason = "Transient runner host disk / Darwin sandbox I/O error (OSError: [Errno 5] Input/output error). This is an infrastructure flake, not a codebase defect."

classification = (
"⚡ **Classification**: **Infrastructure / Flake Issue** (Not a codebase bug)"
Expand Down
Loading