-
Notifications
You must be signed in to change notification settings - Fork 733
Fix ignore files in file upload and added tests #1012
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
Fix ignore files in file upload and added tests #1012
Conversation
🦋 Changeset detectedLatest commit: 2f83444 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Note
Ensure file uploads honor ignore patterns (incl. .dockerignore), refactor file discovery/tar streaming in JS/Python SDKs, and add comprehensive tests.
ignorePatterns(merged fromfileIgnorePatternsand.dockerignore) to tar creation, ensuring ignored files aren’t uploaded.getAllFilesForFilesHash->getAllFilesInPathwith optional directory inclusion in both SDKs.tar_file_stream(JS and Python) to build archives fromgetAllFilesInPath, withnoDirRecurseand symlink control.getAllFilesInPath.Nonein Pythonstack_tracesduring build wait.uploadFileand Python async/syncupload_filenow use tar streaming with ignore patterns; JSTemplatewires ignore patterns into uploads.getAllFilesInPathandtar_file_streamin JS and Python, covering ignore patterns, directories, sorting, and symlinks.@e2b/python-sdkande2b(patch).Written by Cursor Bugbot for commit 2f83444. This will update automatically on new commits. Configure here.