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

Getting Deadlock error while uploading test results from trcli with junit(Deadlock found when trying to get lock; try restarting transaction) #248

Open
ashishs2424 opened this issue Jul 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ashishs2424
Copy link

TestRail CLI Version

v1.9.5

CLI Environment

Windows 11 ,Ubuntu 20.04 ,Ubuntu 22.04

TestRail Version

8.0.4 Default (7036)

TestRail Instance Type

Professional Cloud

Current behavior

Steps:-- trcli -y \ -h "https://lantronix.testrail.io" \ -u "[email protected]" \ -p "abc@xyz" \ --project "Automation Projects" \ parse_junit \ --case-fields "custom_version:1" \ --case-fields "custom_automation_type:1" \ --title "Testrun" \ --run-description "CI Build:${URL}" \ -f "./junit-report.xml"

Actual Results:- Parsing JUnit report. Processed 410 test cases in section pytest. Checking project. Done. Found 218 test cases not matching any TestRail case. Adding missing test cases to the suite. Adding test cases: 5/218 Error during add_case. Trying to cancel scheduled tasks. Aborting: add_case. Trying to cancel scheduled tasks. Adding test cases: 6/218 Deadlock found when trying to get lock; try restarting transaction Deleted created test cases

Desired behavior

Parsing JUnit report. Processed 410 test cases in section pytest. Checking project. Done. Adding results: 1/218 Adding results: 2/218 Adding results: 3/218, Done. Adding results: 4/218, Done. No attachments found to upload. Submitted 218 test results in 443.7 secs.

More Details

No response

@ashishs2424 ashishs2424 added the bug Something isn't working label Jul 19, 2024
@acuanico-tr-galt
Copy link
Collaborator

HI @ashishs2424 have you tried exploring the multithreading feature in trcli? Thank you.

@ashishs2424
Copy link
Author

@acuanico-tr-galt yes we tried but getting failed .
For example we have test plan with 1000 test cases and xml has only 700 so if there is no test automation ids it is getting failed .
It should ignore the cases which doesn't have automation ids but its getting deadlock error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants