Skip to content

[ENG-8054] Check and rewrite unittesting where is needed #437

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

Draft
wants to merge 20 commits into
base: feature/buff-worms
Choose a base branch
from

Conversation

mkovalua
Copy link

Ticket

https://openscience.atlassian.net/browse/ENG-8054

Purpose

WB has a bunch of failing tests. Let's fix 'em!

If the cause of a test failure turns out to need a big fix, we can create another ticket to track it.

Changes

Changing unit testing to be passed for 3.13 python (create the branch from the following PR branch to keep changings

#434
)

Side effects

  1. Hard to deal with S3 unittesting from my side (maybe it is somehow related with M1 Max chip so I am not really confident about , so it is weird), for example await provider._check_region() stuck for my though on meeting session the execution flow goes further from Fitz side ).

image

image

while trying to run tests separately they are passed .
python -m poetry run pytest tests/tasks/test_serialization.py::test_non_path_objects_serialize_normally
python -m poetry run pytest tests/server/api/v1/test_provider.py::TestProviderHandlerFinish::test_logging_direct_partial_download_file

image

maybe it is also my local issue, though maybe some changings related MainThread are implemented in any another ticket.

QA Notes

Deployment Notes

mkovalua added 20 commits May 14, 2025 21:48
… be problems with signature on some requests (for example

_complete_multipart_upload
)
…onfig(signature_version='s3v4'), trying to find for others requests, for example for '_abort_chunked_upload' got for now 2025-05-15T13:21:20.637311375Z waterbutler.core.exceptions.UploadError: 403, {"response": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method ...c 4f 41 44</CanonicalRequestBytes><RequestId>42Q4F2F8SDWMFVHX</RequestId><HostId>osG5j/y2tPRMoIelFMON/qSvV+oPZk7EvwcVAMdTlbCnckHJ66LRAInG5vg6dCne7wrmZtJsRdBMyi0yN1w1Bux+zoQ7MEWG</HostId></Error>"}
…o test it out from UI(front-end side)),

add additional casting for folders removal
…ataError: 404, None , for now 'latest-published' produce error TODO: maybe that fix is needed to be updated somehow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant