-
Hello, One of my workflows is failing (see [1]), but I don’t seem to get any valuable output regarding the cause of the failure. Unfortunately, this is not the first time this has happened, and I had to spend hours trying to debug my changes. I set both It seems like the runner takes my bash commands and generates a temporary shell script to execute them all. This however seems to sometimes hide the error message when one of the commands fails. Is there any way to debug this, or at least get more output? Currently, I get this as the output:
[1] https://github.com/BioDynaMo/biodynamo/runs/893818544?check_suite_focus=true Best, |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
I forked your repository and tested. According to my troubleshooting, I found the error returned from the command line “$INSTALL_DIR/bin/thisbdm.sh”. I recommend that you can try to check if the command lines in the script ‘thisbdm.sh’ contain some defects, and also try executing this script on your local environment to see if it can work fine. |
Beta Was this translation helpful? Give feedback.
-
Hi @brightran, Thanks for your reply. Could you please tell me how you managed to find out that the error originated from We are running the same type workflow on Ubuntu 18.04, 20.04, and on macOS, but without any failures there… Yes, I could check the command lines in the Why is it not possible to see in the Github Actions output which line of I hope that there is some more convenient way to debug this vague failure. Edit: |
Beta Was this translation helpful? Give feedback.
-
In the “System tests BioDynaMo” step, I printed a label after each command line executed successfully, and found the label for the line “$INSTALL_DIR/bin/thisbdm.sh” did not print. So I could locate the command line where the error was returned from. For this issue, I have created an issue ticket (actions/virtual-environments#1279) to help you report it. |
Beta Was this translation helpful? Give feedback.
-
Thanks for opening the issue ticket. I hope the team understands that the absence of an error message makes this a non-trivial debugging issue. I will keep an eye on the ticket |
Beta Was this translation helpful? Give feedback.
-
OK, please keep following the issue ticket. |
Beta Was this translation helpful? Give feedback.
-
Hello, @senui I am working on the ticket. I set
Line:
I found out which part of code is executing this line:
Fix:
|
Beta Was this translation helpful? Give feedback.
-
Hi @al-cheb, Many thanks for investigating the issue at hand! Although I believe that the line that you marked with “failed line” is by design supposed to return a non-zero exit code if Is this something you guys at Github considered? Will things stay like this? Furthermore, it is strange that this was not reproducible on the same docker container on my own machine. Do you have any idea why this only fails on GH Actions? |
Beta Was this translation helpful? Give feedback.
-
Case with source: Looks like it by design:
Is there a difference between "." and "source" in bash, after all?
bash, scripts, environment-variables, environment
asked by
ysap
on 01:07AM - 30 Aug 12 UTC
Reproduce behavior: Without source( ./test.sh):
With source(source ./test.sh):
With source || true (source ./test.sh || true):
|
Beta Was this translation helpful? Give feedback.
-
Hi @al-cheb, Thanks for the clear explanation. I understand the situation better now, and will keep this in the back of my mind if I ever get a non-zero exit code again! Thanks, |
Beta Was this translation helpful? Give feedback.
Hello, @senui
I am working on the ticket. I set
set -x
to find a line that cause the issue:Line:
I found out which part of code is executing this line:
. scl_source enable llvm-toolset-6.0
scl_source
code