Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add build failure cause config yaml #2813

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
31 changes: 31 additions & 0 deletions docs/failure-cause/failure-cause.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
failure_cause:
- name: <failure_name>
description: <failure_description>
categories: <failure_categories>
comment: <failure_body_example>
indications:
- type: build_log_indication
pattern: <A regular expression to find in the build log.>
- type: multi_line_build_log_indication
pattern: <A regular expression to find in the build log.>
- name: "bazel task fail"
description: "failed in bazel task"
categories: product_bug
comment: 'bazel task fail'
indications:
- type: build_log_indication
pattern: '.*FAILED:\s*\b\w+\b did NOT complete successfully'
- name: "kubernetes client exception"
description: "pod connection exception"
categories: agent
comment: 'KubernetesClientException'
indications:
- type: build_log_indication
pattern: '.*Failed\s+.*io\.fabric8\.kubernetes\.client\.KubernetesClientException.*'
- name: "git commit not found"
description: "git commit not found"
categories: git
comment: 'pr forced or branch delted my cause this'
indications:
- type: build_log_indication
pattern: "^ERROR:\\s*Couldn't find any revision to build\\b.*\\bVerify the repository and branch configuration for this job\\b"