macOS job stuck for 2h+

It seems to happen often enough to start tracking this issue and seek help. I’m seeing a job stuck halfway in the job step resubmitting the workflow seems to give a different result which is not what I would be expecting. For example, this job was stuck for more than 2h. I will turn on more debugging from within Gradle but it seems to be stuck pre-Gradle execution.

How would I go debugging this issue to get to the bottom? It could be the Github Action that is wrapping the Gradle execution, however, how can I confirm this without having to change to not use it? Is there some logging I can turn on to see what is happening inside the action?

@lacasseio,

If possible, please try using a self-hosted macOS runner to run the workflow to see if the same problem occurs.
Any progress, feel free to contact us.

Is there some logging I can turn on to see what is happening inside the action?

You can enable debug logging in your repository to get more debug logs in the workflow runs.

In addition, if the problem still exists, please share your repository with us, so that we can check more information to analyze the root cause.