Skip to content

Commit 6728a2c

Browse files
authored
Add more network errors patterns to workflow rerunner (#34200)
### Details: Adding new tickets, regrouping some old patterns for better statistics
1 parent 91f33ea commit 6728a2c

File tree

2 files changed

+30
-14
lines changed

2 files changed

+30
-14
lines changed

.github/scripts/workflow_rerun/errors_to_look_for.json

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"ticket": 135715
99
},
1010
{
11-
"error_text": "error: RPC failed",
11+
"error_text": "GnuTLS recv error",
1212
"ticket": 131918
1313
},
1414
{
@@ -87,18 +87,6 @@
8787
"error_text": "because the GET request got Content-Type",
8888
"ticket": 158400
8989
},
90-
{
91-
"error_text": "Unable to make request:",
92-
"ticket": 158401
93-
},
94-
{
95-
"error_text": "Failed to make request",
96-
"ticket": 158401
97-
},
98-
{
99-
"error_text": "Unable to download artifact",
100-
"ticket": 158401
101-
},
10290
{
10391
"error_text": "Failure when receiving data from the peer",
10492
"ticket": 159323
@@ -162,5 +150,33 @@
162150
{
163151
"error_text": "urllib3.exceptions.IncompleteRead",
164152
"ticket": 173184
153+
},
154+
{
155+
"error_text": "Error from intermediary with HTTP status code 403",
156+
"ticket": 181450
157+
},
158+
{
159+
"error_text": "getaddrinfo EAI_AGAIN",
160+
"ticket": 178917
161+
},
162+
{
163+
"error_text": "terminal prompts disabled",
164+
"ticket": 181095
165+
},
166+
{
167+
"error_text": "HTTP 500 curl 22 The requested URL returned error: 500",
168+
"ticket": 181530
169+
},
170+
{
171+
"error_text": "Unable to make request: ECONNREFUSED",
172+
"ticket": 158401
173+
},
174+
{
175+
"error_text": "Unable to make request: ECONNRESET",
176+
"ticket": 158401
177+
},
178+
{
179+
"error_text": "Failed to FinalizeArtifact: Failed to make request after 5 attempts: Unexpected token",
180+
"ticket": 181539
165181
}
166182
]

.github/workflows/workflow_rerunner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,6 @@ jobs:
108108
109109
# Need to get a run id with successful status for log analyzing
110110
# cannot lock a run id as logs get deleted after some time
111-
run_id=$(python3 -c "from github import Github, Auth; import os; github=Github(auth=Auth.Token(token=os.environ.get('GITHUB_TOKEN'))); repo = github.get_repo('${GITHUB_REPOSITORY}'); run_id = repo.get_workflow_runs(status='success')[0].id; print(run_id)")
111+
run_id=$(python3 -c "from github import Github, Auth; import os; from datetime import datetime, timedelta, timezone; github=Github(auth=Auth.Token(token=os.environ.get('GITHUB_TOKEN'))); repo = github.get_repo('${GITHUB_REPOSITORY}'); cutoff_date=(datetime.now(timezone.utc)-timedelta(days=14)).date().isoformat(); runs=repo.get_workflow_runs(status='success', created=f'>={cutoff_date}'); print(runs[0].id)")
112112
113113
python3 rerunner.py --repository-name ${GITHUB_REPOSITORY} --run-id $run_id --rerunner-run-id ${{ github.run_id }} --dry-run

0 commit comments

Comments
 (0)