Test stuck indefinitely

14 views
Skip to first unread message

akshaym...@gmail.com

unread,
Nov 4, 2020, 10:23:55 PM11/4/20
to lemoncheesecake
I have a test that I run in parallel for multiple data sets. I'm following the syntax provided here for injecting data from a JSON file to my test and then use lcc run --threads 10 to run 10 instances of the same test at a time. However, my test gets stuck sometimes indefinitely for hours and I don't know the reason. This issue is not seen every time I run my test.

Is there a way I could see what's going wrong? What debugging strategy shall I be using since I have no idea where the tests are stuck since all the logs go the lcc logger and nothing on console? This test runs in Jenkins where I see this behaviour. If this was run with python interpreter, then python -m trace --trace YOURSCRIPT.py might have worked. I'm looking for something similar for lcc.

Nicolas Delon

unread,
Nov 5, 2020, 7:37:32 AM11/5/20
to lemoncheesecake
Hello,

I've you tried "python -m trace --trace `which lcc` run" followed by the arguments you pass to lcc run ?

Regards.

akshaym...@gmail.com

unread,
Nov 5, 2020, 10:01:02 PM11/5/20
to lemoncheesecake
Hi Nicolas, thanks for your response. However, in the meantime, I tried a different approach that helped.

I've been running my test with the --save-report at_each_event, which left the stuck tests with "In progress" status. And I figured out the problem by looking at the logs from the HTML report.

Reply all
Reply to author
Forward
0 new messages