Skip to content

Conversation

@c-salomonsen
Copy link
Contributor

I noticed a bug where if Data/usps.h5 did not already exist, tests/test_dataloader.py were for some reason not able to download the data correctly.

I suspect this could be due to TemporaryDirectory not being able to write to the /tmp directory in the container, so this draft PR is to see if adding `TemporaryDirectory(dir="Data") fixes this as the container has write permissions here anyways... 🤞🏻

@c-salomonsen c-salomonsen added the bug Something isn't working label Feb 23, 2025
@c-salomonsen c-salomonsen self-assigned this Feb 23, 2025
@Seilmast
Copy link
Collaborator

I get only OK tests locally, but I see that github actions fail on some USPS data. Will this pull request fix this?

@c-salomonsen
Copy link
Contributor Author

Yeah, I think I fixed it now. It was most likely due to the directory Data not existing before attempting to download to it, causing it to fail. But with the last commit it seems to be fixed 🎉

@c-salomonsen c-salomonsen marked this pull request as ready for review February 23, 2025 17:24
Copy link
Collaborator

@Seilmast Seilmast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good

@Seilmast Seilmast merged commit cb99d04 into main Feb 23, 2025
2 of 3 checks passed
@c-salomonsen c-salomonsen deleted the christian/fix-usps-test-bug branch February 23, 2025 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants