-
Notifications
You must be signed in to change notification settings - Fork 416
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
pageserver/http: remove status code boilerplate from swagger spec #7385
Conversation
tenant/<id>/timeline/<id>/get_timestamp_for_lsn
tenant/<id>/timeline/<id>/get_lsn_by_timestamp
534d204
to
6f84961
Compare
2760 tests run: 2642 passed, 0 failed, 118 skipped (full report)Code coverage* (full report)
* collected from Rust tests only The comment gets automatically updated with the latest test results
ce6703e at 2024-04-16T10:01:11.774Z :recycle: |
Thanks for doing that. @mtyazici if the control plane compiles and e2e tests pass, does that give us a good certainty that the removed error codes won't cause issues? I'm thinking especially of the 409/412 cases that might be explicitly used in some logic somewhere. |
There's some failures on https://github.com/neondatabase/cloud/pull/12340. Trying to disentangle test flakiness from the change. |
I now see we retry on any error when checking for
Failures seem to be related to how PR is titled, the tests are passing which shows there is no actual problem. |
I retriggered the tests and they passed. Likely just flakes. |
Tests are passing on https://github.com/neondatabase/cloud/pull/12340. I think we should be ok to merge. |
Problem
We specify a bunch of possible error codes in the pageserver api swagger spec. This is error prone and annoying to work with. https://github.com/neondatabase/cloud/pull/11907 introduced generic error handling on the control plane side, so we can now clean up the spec.
Summary of changes
msg
field in the response body.Tested via https://github.com/neondatabase/cloud/pull/12340
Related https://github.com/neondatabase/cloud/issues/7238
Checklist before requesting a review
Checklist before merging