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

[SPARK-46811][INFRA] Fix Github Action: TypeError: Cannot read properties of undefined (reading 'head_sha') #44850

Closed
wants to merge 5 commits into from

Conversation

yaooqinn
Copy link
Member

@yaooqinn yaooqinn commented Jan 23, 2024

What changes were proposed in this pull request?

This PR adds a retry for detecting the Check changes job and a check for whether it is initialized or not to avoid TypeError

Why are the changes needed?

Notify test workflow fails at a high rate

Does this PR introduce any user-facing change?

no

How was this patch tested?

An example PR:
https://github.com/yaooqinn/spark/actions/runs/7624423347/job/20766523539?pr=3

Was this patch authored or co-authored using generative AI tooling?

no

@github-actions github-actions bot added the INFRA label Jan 23, 2024
@yaooqinn yaooqinn changed the title WIP: [SPARK-46811][INFRA] Fix Github Action: TypeError: Cannot read properties of undefined (reading 'head_sha') [SPARK-46811][INFRA] Fix Github Action: TypeError: Cannot read properties of undefined (reading 'head_sha') Jan 23, 2024
@yaooqinn
Copy link
Member Author

cc @HyukjinKwon, can you help review this

await new Promise(resolve => setTimeout(resolve, 3000));
}
}
if (!check_run_head) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I vaguely remember it's not actually the matter of timeout .. but let's try and see if it makes better.

@HyukjinKwon
Copy link
Member

Merged to master.

@HyukjinKwon
Copy link
Member

If it works, let's also backport this to other brnaches.

@yaooqinn
Copy link
Member Author

Thank you @HyukjinKwon. Let's give it a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants