Github action step hanging #25229
-
Hi, i created a github action with single job only, that job contains multiple steps, but due to error in step it hanging untill timeout This is the error occured in step and then it start hanging Error occured while creating tests { status: 500, value: { message: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
The runner can’t detect if a running process is working as expected or hanging, you need to look at whatever runs in the step to fix it (and “crash instead of hang” would be a fix, then the runner would notice). If you’d like help with that, please post a link to an affected workflow run, or at least the relevant code. To limit the impact meanwhile you can reduce |
Beta Was this translation helpful? Give feedback.
-
Hi please check this url testing-5 · FoodSafetyAPP/react-cypress-lambdatest@fcdc7a0 · GitHub |
Beta Was this translation helpful? Give feedback.
-
ankushkatiyar:
It should terminate as failed as soon as one of the commands specified in the |
Beta Was this translation helpful? Give feedback.
-
yeah i can understand this. But can i access exit code of run command and then terminate that step manually OR i can catch error using error handling methods if any in github actions ? |
Beta Was this translation helpful? Give feedback.
-
A run step on Linux runs in Bash, you can use the regular Bash mechanisms to handle commands and their exit codes however you want. Just mind that by default that Bash runs with
|
Beta Was this translation helpful? Give feedback.
A run step on Linux runs in Bash, you can use the regular Bash mechanisms to handle commands and their exit codes however you want. Just mind that by default that Bash runs with
set -e
, so it will terminate on the first non-zero exit code that isn’t handled. “Handling” means e.g. using the command as anif
condition: