Skip to content

Wait for the Unsloth-managed folder label in the project folders browser smoke - #14542

Merged
danielhanchen merged 1 commit into
mainfrom
fix-project-folders-managed-label
Oct 21, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix-project-folders-managed-label

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

The "Browser smoke for project working folders" step in Frontend CI fails on every PR that runs it, e.g. #14515 (job 119337054207):

Expect "to_be_visible" get_by_role("dialog").get_by_text("Studio-managed folder", exact=True)

#14473 renamed the picker's empty-state label to "Unsloth-managed folder" (working-folder-picker.tsx), but tests/studio/playwright_project_folders.py kept waiting for the old text in four places. The product is right; the driver is stale.

Changes

  • playwright_project_folders.py: one MANAGED_FOLDER = "Unsloth-managed folder" constant used by all four waits.
  • tests/studio/test_playwright_brand_labels.py: a static guard over every tests/studio/playwright_*.py driver. Any locator text (get_by_text, get_by_label, get_by_placeholder, get_by_title, or a get_by_role(name=...)) that contains "Unsloth" or "Studio" must still appear in studio/frontend/src or studio/backend. Module-level string constants are resolved, so the new constant is checked too. A scan of all drivers on main found this file to be the only one with a stale branded label.

Testing

  • python3 tests/studio/playwright_project_folders.py --out ... locally: all 14 scenes pass.
  • pytest tests/studio/test_playwright_brand_labels.py: 53 passed in under a second.
  • Sabotage: putting the old "Studio-managed folder" text back makes the guard fail and name all four lines.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-21T17:12:00.341147Z 8cefe69 Manual request
🔒 Security Review ⚠️ Failed 2026-10-21T16:57:07.590361Z
We couldn’t complete this review. Comment @codex security review to try again.
8cefe69 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

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 8cefe692af

ℹ️ 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 ee98841 into main Oct 21, 2026
@danielhanchen
danielhanchen deleted the fix-project-folders-managed-label branch October 21, 2026 17:29
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