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

With code first approach, trcli creates duplicates of test cases then chokes on deadlock trying to cleanup and fails #233

Open
latte-incognito opened this issue May 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@latte-incognito
Copy link

latte-incognito commented May 16, 2024

TestRail CLI Version

1.9.5

CLI Environment

Mac OS Sonoma 14.3, Python 3.12.1

TestRail Version

6.7.2.1037

TestRail Instance Type

Professional Cloud

Current behavior

While uploading test results - 17 (test cases), with code first approach (test cases will be created by trcli)

trcli creates duplicates, 3 for each of them, then fails in the midst of the process, with 500 error in logs

Desired behavior

Desired behaviour test case duplication impossible via trcli.

More Details

My assumption is:

TRCLI send requests inside for loop (for retries purposes I assume)

for i in range(self.retries + 1):

Particular add_case method inside creates ThreadExecutor with 10 workers

with ThreadPoolExecutor(max_workers=MAX_WORKERS_ADD_CASE) as executor:

If one of those worker fails for any reason, full batch re-kicked again, with new iteration of the for loop without waiting for previous to finish.

Then Trcli tries to do the cleanup after failure, but can't do it because test rail instance returns 500 error (probably deadlock)

Also the possible reason of requests to failure in the first place can be that the Cloud instance of test rail have limits around of requests per minute ~150 smthng, with running 10 threads in for cycle can probably hit that limit very fast

P.s. I can't share neither logs, nor files, with NDA reason

@latte-incognito latte-incognito added the bug Something isn't working label May 16, 2024
@acuanico-tr-galt
Copy link
Collaborator

Hi @latte-incognito can you provide us the actual command that you've used? Thank you.

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