fix(closes OPEN-12012): upload batch inferences presigned URL bug - #663
Merged
gustavocidornelas merged 1 commit intoAug 4, 2026
Conversation
whoseoyster
approved these changes
Aug 3, 2026
gustavocidornelas
deleted the
gustavo/open-12012-upload-batch-inferences-presigned-url-bug
branch
August 4, 2026 14:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Summary
Fixes
upload_batch_inferences(dataset_path=...)uploading CSV bytes to an object key ending in.arrow, which made every batch fail asynchronously on the backend while the client reported success.The presigned URL was minted before the input type was known, hardcoding a
.arrowobject key. Thedataset_pathbranch then reassignedobject_nameto.csv— too late, and dead code besides, since the storage destination comes from the already-signed URL (for FS storage, the signed token payload), not from the multipart filename field. The backend dispatches on that.arrowextension and read the CSV throughread_arrow_ipc, raisingArrowInvalidinside the RQ worker.POST /inference-pipelines/{id}/dataonly validates that the blob exists, so it returned200and the SDK loggedSuccess! Uploaded batch inferences.Both inputs now converge on the Arrow IPC path, so the uploaded bytes always match the key the URL was signed for.
Changes
batch_inferences.py: convert adataset_pathCSV viapd.read_csvand write it as an Arrow IPC stream, sodataset_dfanddataset_pathshare one upload pathbatch_inferences.py: remove the deadobject_namereassignment to.csvthat could never affect the upload destinationContext
OPEN-12012: Upload batch inferences presigned URL bug
Testing
Monitoring