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.
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
test_model_upload/test_model_upload_empty_files
. It fails with existing code.