Skip to content
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

Enable empty file uploading #145

Merged
merged 5 commits into from
Jul 17, 2024
Merged

Enable empty file uploading #145

merged 5 commits into from
Jul 17, 2024

Conversation

dolaameng
Copy link
Contributor

Ref: b/343510166

Previously uploading empty files fails because there is no file created for empty contents (in gcs_upload.py::_upload_blob it didn't upload the file when file_size==0). Adding code to support this special case.

Tested

  • Added integration test test_model_upload/test_model_upload_empty_files. It fails with existing code.
  • After code change, the test passes.

@dolaameng dolaameng requested review from rosbo, neshdev and a team July 17, 2024 22:10
Copy link
Contributor

@rosbo rosbo left a comment

Choose a reason for hiding this comment

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

Thanks!

@dolaameng dolaameng merged commit e739f06 into main Jul 17, 2024
7 checks passed
@dolaameng dolaameng deleted the limagoog/fix/empty_upload branch July 17, 2024 23:31
@dolaameng dolaameng changed the title [RFC] Enable empty file uploading Enable empty file uploading Jul 17, 2024
@rosbo rosbo mentioned this pull request Jul 31, 2024
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.

2 participants