HyukjinKwon commented on code in PR #44850:
URL: https://github.com/apache/spark/pull/44850#discussion_r1464224462
##########
.github/workflows/notify_test_workflow.yml:
##########
@@ -115,8 +115,22 @@ jobs:
}
// Here we get check run ID to provide Check run view instead of
Actions view, see also SPARK-37879.
- const check_runs = await github.request(check_run_endpoint,
check_run_params)
- const check_run_head = check_runs.data.check_runs.filter(r =>
r.name === "Run / Check changes")[0]
+ let retryCount = 0;
+ let check_run_head;
+ while (retryCount < 3) {
+ const check_runs = await github.request(check_run_endpoint,
check_run_params);
+ check_run_head = check_runs.data.check_runs.find(r => r.name
=== "Run / Check changes");
+ if (check_run_head) {
+ break;
+ }
+ retryCount++;
+ if (retryCount < 3) {
+ await new Promise(resolve => setTimeout(resolve, 3000));
+ }
+ }
+ if (!check_run_head) {
Review Comment:
I vaguely remember it's not actually the matter of timeout .. but let's try
and see if it makes better.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]