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

[ci] better errors on bad github response and fix too many status updates #8480

Merged
merged 4 commits into from
Apr 6, 2020

Conversation

danking
Copy link
Contributor

@danking danking commented Apr 6, 2020

CI was getting 422s from GitHub. Using a
raise_for_status=True ClientSession circumvented gidgethubs native
error handling logic smothering the HTTP response body where github
places critical debugging information. Aiohttp is aware that
raise_for_status provides no access to the response body. They addressed
this in https://github.com/aio-libs/aiohttp/pulls/3892, but that has not
been released because 4.0.0 has not yet been released.

Moreover, gidgethub incorrectly handles the too many statuses response. I'll PR a fix into their repo. For now, I've added a bit more information the logs and fixed the main issue, the missing ['status'].

Another relevant issue: aio-libs/aiohttp#4600.

Not sure what was wrong, but CI was getting 422s from GitHub. Using a
`raise_for_status=True` ClientSession circumvented gidgethubs native
error handling logic smothering the HTTP response body where github
places critical debugging information. Aiohttp is aware that
`raise_for_status` provides no access to the response body. They addressed
this in https://github.com/aio-libs/aiohttp/pulls/3892, but that has not
been released because 4.0.0 has not yet been released.

Another relevant issue: aio-libs/aiohttp#4600.
@danking danking changed the title [ci] better errors on bad github response [ci] better errors on bad github response and fix too many status updates Apr 6, 2020
@danking danking merged commit 3373836 into hail-is:master Apr 6, 2020
@danking
Copy link
Contributor Author

danking commented Apr 6, 2020

Force merging due to ongoing disruption to CI.

@danking
Copy link
Contributor Author

danking commented Apr 6, 2020

branch protection reenabled

@danking
Copy link
Contributor Author

danking commented Apr 6, 2020

manually bumping all relevant PRs.

@danking
Copy link
Contributor Author

danking commented Apr 6, 2020

(SHA change will enable more statuses)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants