Skip to content

Tests: bring three new tests in line with the port and encoding guards - #15745

Merged
danielhanchen merged 1 commit into
mainfrom
ci-new-tests-follow-guards
Oct 28, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-new-tests-follow-guards

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Repo tests (CPU, rest) fails on main with three guard failures. It shows on every staging CI run of recent PRs (#15613, #15615, #15673 and others), whatever the PR changes:

tests/test_rendezvous_port_everywhere.py::test_distributed_tests_take_their_port_from_the_shared_helper
    tests/test_gc_skip_auto_dist_cells.py: _free_port does not use tests._rendezvous_port
    tests/test_gc_skip_auto_dist_gloo.py: _free_port does not use tests._rendezvous_port
tests/test_source_read_encoding.py::test_checked_in_file_reads_name_an_encoding[5]
    tests/test_mamba_fused_lora_adapters.py:464: read_text()
tests/test_source_read_encoding.py::test_checked_in_file_reads_name_an_encoding[13]
    tests/test_refresh_moved_layer_devices.py:81: read_text()

These tests landed around the same time as the guards that now catch them:

The guards are right in all three cases, so the tests change, not the guards.

Change

  • tests/test_gc_skip_auto_dist_cells.py, tests/test_gc_skip_auto_dist_gloo.py: _free_port() delegates to tests._rendezvous_port.free_port(), the same three lines every other distributed test uses. The now-unused import socket is dropped.
  • tests/test_mamba_fused_lora_adapters.py:464, tests/test_refresh_moved_layer_devices.py:81: read_text(encoding = "utf-8").

Testing

  • tests/test_source_read_encoding.py + tests/test_rendezvous_port_everywhere.py: 3 failed on main, 22 passed with this change.
  • The four touched test files under -n 4: 43 passed, 4 skipped.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 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-28T11:11:17.259618Z 5c67cff 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. Delightful!

Reviewed commit: 5c67cff5b4

ℹ️ 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 ef726b9 into main Oct 28, 2026
0 of 15 checks passed
@danielhanchen
danielhanchen deleted the ci-new-tests-follow-guards branch October 28, 2026 11:14
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