Skip to content

Tests: rewrite the remote_images import in the no-torch format_conversion harness - #14903

Merged
danielhanchen merged 1 commit into
mainfrom
tests-no-torch-remote-images
Oct 23, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
tests-no-torch-remote-images

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

TestFormatConversionNoTorchVenv (4 tests, Python 3.12 and 3.13) fails on main, so Backend CI is red on every PR:

File "<string>", line 10, in <module>
ImportError: attempted relative import with no known parent package

The harness execs format_conversion.py as a standalone script and rewrites its relative imports (.cells, .iterable, .format_detection) to top-level ones. #14701 added from .remote_images import fetch_untrusted_image_bytes, is_network_share on line 10, which the harness does not rewrite.

Change

Rewrite from .remote_images import the same way as .cells in the four exec snippets. remote_images.py imports only the standard library at module level, so it loads in the no-torch venv. Test-only change.

Testing

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T04:38:06.002698Z ef48482 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: ef484826b3

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 4188371 into main Oct 23, 2026
0 of 14 checks passed
@danielhanchen
danielhanchen deleted the tests-no-torch-remote-images branch October 23, 2026 04:43
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.

1 participant