ubuntu-image haschangelog tests fail due to github API rate limit exceeded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
Fix Released
|
Medium
|
Łukasz Zemczak |
Bug Description
In some recent autopkgtest runs for github PRs haschangelog test failures can be noticed that aren't actually related to real failures:
Traceback (most recent call last):
File "/tmp/autopkgte
pull = remote.
File "/usr/lib/
self.url + "/pulls/" + str(number)
File "/usr/lib/
return self.__
File "/usr/lib/
raise self.__
github.
It seems like the autopkgtest infra is doing too many API calls in the selected time frame which in turn causes the test to fail. From our POV we're actually only doing two real github API calls, so probably there are some other tests that also use the same thing. One possible action would be to make the test-case wait and retry in such a case, but this would mean at the worst case the test to take over an hour.
Another solution would be to check if we can bump the rate limit (authenticating somehow?).
Changed in ubuntu-image: | |
milestone: | none → 1.4 |
tags: | added: id-5a38e6dc4fe1bdb99a5fb640 |
Changed in ubuntu-image: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-image: | |
status: | Fix Committed → Fix Released |
I have prepared a workaround - it looks like just using the https API pages directly doesn't trigger API limits - at least that's what I noticed so far.
https:/ /github. com/CanonicalLt d/ubuntu- image/pull/ 152
We can always re-open if this seems like not the right workaround.