Uh oh!
There was an error while loading. Please reload this page.
fix: cancel upload when BlobWriter exits with exception - #1243
Conversation
7324818 to
539120bCompareddelange
commented
Jun 30, 2024
@andrewsg can you link me to the relevant documentation section(s) to update? do you have specific wording in mind? |
Hi @ddelange, Thanks for your submission. I've retargeted the PR to the 3.0 branch. For safety the test runner has to be activated manually for external PRs, so I've started the tests running now. Three things:
|
ddelange
commented
Jul 12, 2024
Hi @andrewsg 👋 I rebased my commit to the new target branch, and fixed points 1 2 and 3. Point 3 was my typo in the tests, causing them to exit early. With the test passing, point 4 should also be covered (literally :]). |
andrewsg
commented
Jul 12, 2024
Thank you for doing all of that! Unfortunately, system tests exist alongside the unit tests but they aren't a replacement for unit tests in the coverage requirements for this package, so we still will need unit tests covering the lines mentioned for the PR to pass. |
andrewsg
commented
Jul 12, 2024
Looks like there's another system test issue: Let me know if you need help with running the system tests locally. |
Thanks for the heads up. I'll write a new unit test case. Regarding the OverflowError: can you suggest a cleaner way to trigger the threshold where the first part is uploaded (multipart upload created)? Is there a certain amount of bytes stored in a constant I can import? To change the line to something like |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
andrewsg
commented
Jul 18, 2024
Hi ddlange, yes, overriding the chunk size makes sense to me. Go for it. |
ddelange
commented
Jul 19, 2024
@andrewsg ready for review again, now with unit tests |
andrewsg
commented
Jul 19, 2024
Thank you. Looks like there are still test failures with the system test and with the unit test. Can you take a look? Run "nox -s unit-3.11" (or whatever version) to run the unit tests, subsequently "nox -s cover" to check coverage, and "nox -s blacken lint" to get lint to pass as well. |
59b5db3 to
7645921Compareddelange
commented
Jul 22, 2024
@andrewsg thanks for the heads up.
unit tests are green on my machine, but |
andrewsg
commented
Jul 23, 2024
Thank you for catching the unit test issue in the other tests. It would have been avoided if I'd used the "spec" features of the mocking library properly; my mistake. I appreciate you fixing it in the entire file. I don't know why coverage doesn't work on your machine - it's finicky - but it is clear in CI so all is good with the unit tests and coverage. The system test is still failing. The part of the test that was causing an error previously due to expanding too aggressively, which you fixed by using the chunk size as the size to write, is repeated further down in the test. |
Apply suggestions from code review
ddelange
commented
Jul 24, 2024
thanks for the catch, fixed now! |
ddelange
commented
Jul 30, 2024
@andrewsg can you run CI again? |
andrewsg
commented
Jul 31, 2024
@ddelange Checks pass. Thank you for your contribution, and again thanks for the heads-up about the testing issue. |
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes#1228