-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Allow large form posts via multipart encoded forms to command API #5000
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
Conversation
This temporarily puts this under a feature flag, to make debugging a little easier, but initial tests show things working as expected. This allows for a large form post to be chunked up and POST, where we were noticing a number of different issues with body size before.
Codecov Report
@@ Coverage Diff @@
## master #5000 +/- ##
=========================================
Coverage ? 76.72%
=========================================
Files ? 158
Lines ? 9962
Branches ? 1246
=========================================
Hits ? 7643
Misses ? 1984
Partials ? 335
|
Also, this might be able to be implemented as a slumber serializer so we're not forking the code more here. Docs at: https://slumber.readthedocs.io/en/v0.6.0/options.html#serializer Perhaps we can clean up this hotfix PR with a follow up PR and a better serializer. |
I like this idea. I'd wait some weeks to see if this solution solves most of these problems and in that case, I can write the serializer. I think it's the way to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I've triggered my project at corporate with huge build output and it built properly.
One problem that I noticed is that none of the sphinx-build
commands were logged in the build output: https://readthedocs.com/projects/read-the-docs-test-builds/builds/168252/
I'm not sure if it's related to this, but it wasn't happening before this PR.
On the other hand, for a normal build without huge output, it did log those commands: https://readthedocs.com/projects/read-the-docs-test-builds/builds/168251/ |
Strange, i missed this in my testing, i don't see a build that has those steps. I might have solved the request issue but opened a new bug with this. I do think this is at least part of the solution and agree it probably makes sense to let this simmer and figure out if writing a serializer would further help 👍 I'd say we should merge this if it looks okay, as it is feature flagged anyways, and track down why the large command posts are not showing up in a separate issue |
What is strange to me is that all of the requests are done with the
Agree. |
Is this actually hotfixed? If so, we have a conflict, which seems bad. We should get it merged ASAP. |
This is live on .com yes, there was a bug causing builds to fail with a generic error. |
This temporarily puts this under a feature flag, to make debugging a
little easier, but initial tests show things working as expected. This
allows for a large form post to be chunked up and POST, where we were
noticing a number of different issues with body size before.
Additionally, we can remove the chunked encoding PR as this was not the ultimate fix that worked.
Hotfixed on readthedocsinc, not on community version.