Skip to content

Tests: skip the installer's transient filtered copies in the sentence-transformers pin scan - #17547

Merged
danielhanchen merged 1 commit into
mainfrom
tests-st-pin-skip-filtered-copies
Nov 11, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
tests-st-pin-skip-filtered-copies

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Repo tests (CPU, studio-install) can fail on any PR, depending on what runs at the same time on the other xdist workers (seen on #17533):

tests/studio/install/test_sentence_transformers_pin.py:47: in test_pinned_sentence_transformers_can_log_with_the_pinned_transformers
E   FileNotFoundError: [Errno 2] No such file or directory: '.../studio/backend/requirements/single-env/.data-designer-deps-filtered-bpfrp0a_.txt'

install_python_stack._filter_requirements writes a hidden .<stem>-filtered-*.txt copy beside its source file, so relative -r/-c lines still resolve, and the installer deletes it again afterwards. Tests that drive the installer do this inside the repo's own studio/backend/requirements tree. The pin test added in #17311 walks that tree with rglob("*.txt") and reads every match, so when another worker's copy disappears between the walk and the read, it fails.

The installer is right to put the copy there, and the pin check itself is right. The scan just has to ignore those copies, the same way its sibling scans already do (test_transformers_tokenizers_pair.py skips dot-named files, and test_diffusers_pin.py skips the -filtered- pattern).

Change

  • tests/studio/install/test_sentence_transformers_pin.py: the scan now goes through a _requirement_files() helper that skips dot-named files.
  • New test_a_filtered_copy_vanishing_mid_scan_is_not_read: it plants a dangling .data-designer-deps-filtered-*.txt link (a copy deleted mid-scan) next to a real file and checks that the scan skips it. Without the skip, that test fails with the CI error.

No library code changes.

Testing

  • test_sentence_transformers_pin.py, test_transformers_tokenizers_pair.py, test_diffusers_pin.py: 76 passed.
  • With the skip removed, test_a_filtered_copy_vanishing_mid_scan_is_not_read fails.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-11T19:52:02.770325Z
We couldn’t complete this review. Comment @codex review to try again.
4f5a91a PR opened
ℹ️ 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. Keep them coming!

Reviewed commit: 4f5a91ac38

ℹ️ 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 2d3deb5 into main Nov 11, 2026
@danielhanchen
danielhanchen deleted the tests-st-pin-skip-filtered-copies branch November 11, 2026 21:54
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