[testrail] Reporter fails if API returned "429 Too Many Requests"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Medium
|
Artem Panchenko | ||
7.0.x |
Fix Released
|
Medium
|
Fuel QA Team |
Bug Description
Sometimes TestRail API returns "429 Too Many Requests" error while uploading tests results from CI. Reporter script doesn't handle such cases, so it fails:
2015-11-10 10:23:28,264 - DEBUG - Looking for previous tests runs on "Ubuntu 14.04" using tests suite "Swarm 8.0"...
Traceback (most recent call last):
File "fuelweb_
main()
File "fuelweb_
results=
File "fuelweb_
config_
File "/home/
for plan in self.get_
File "/home/
if plan['milestone
File "/home/
return self.client.
File "/home/
return self.__
File "/home/
(e.code, error))
testrail.APIError: TestRail API returned HTTP 429 (No additional error message received)
According to TestRail documentation 'Such a response also includes a Retry-After header indicating how many seconds to wait before you are allowed to submit the next request'. That means we can try to add handler for such responses to the TestRail client which will print warning to log and wait for N seconds before sending new request.
tags: | added: area-qa |
no longer affects: | fuel/8.0.x |
Changed in fuel: | |
status: | Fix Committed → Fix Released |
This issue is blocker for MOS QA team because we can't upload results of Tempest tests to TestRail.