Skip to content

Conversation

@mishushakov
Copy link
Member

@mishushakov mishushakov commented Nov 6, 2025

Note

Ensure file uploads honor ignore patterns (incl. .dockerignore), refactor file discovery/tar streaming in JS/Python SDKs, and add comprehensive tests.

  • File upload behavior:
    • JS/TS and Python uploads now pass ignorePatterns (merged from fileIgnorePatterns and .dockerignore) to tar creation, ensuring ignored files aren’t uploaded.
  • Refactor/Utilities:
    • Rename getAllFilesForFilesHash -> getAllFilesInPath with optional directory inclusion in both SDKs.
    • Implement tar_file_stream (JS and Python) to build archives from getAllFilesInPath, with noDirRecurse and symlink control.
    • Hashing functions updated to use getAllFilesInPath.
    • Type tweak: allow None in Python stack_traces during build wait.
  • Integration:
    • JS uploadFile and Python async/sync upload_file now use tar streaming with ignore patterns; JS Template wires ignore patterns into uploads.
  • Tests:
    • Add extensive tests for getAllFilesInPath and tar_file_stream in JS and Python, covering ignore patterns, directories, sorting, and symlinks.
    • Remove obsolete tests relying on old function names.
  • Meta:
    • Changeset entries for @e2b/python-sdk and e2b (patch).

Written by Cursor Bugbot for commit 2f83444. This will update automatically on new commits. Configure here.

@linear
Copy link

linear bot commented Nov 6, 2025

@changeset-bot
Copy link

changeset-bot bot commented Nov 6, 2025

🦋 Changeset detected

Latest commit: 2f83444

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@e2b/python-sdk Patch
e2b Patch

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

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a 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".

@mishushakov mishushakov enabled auto-merge (squash) November 7, 2025 11:12
@mishushakov mishushakov merged commit 56d16a8 into main Nov 10, 2025
8 of 9 checks passed
@mishushakov mishushakov deleted the fix-file-upload-targz-ignore-and-add-tests-eng-3281 branch November 10, 2025 10:59
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.

3 participants