Repository navigation
fix(studio): use writable recipe artifact path - #7044
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a default fallback for artifact_path in create_data_designer using recipe_datasets_root(). The review feedback suggests using a dedicated temporary directory under tmp_root() instead of the persistent user-facing recipe_datasets_root() to avoid cluttering user datasets with temporary validation and preview artifacts.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
Pull request overview
Note
Copilot couldn't run its full agentic review because no GitHub Actions runner was available. Make sure your repository has a runner available to run Copilot's review, or add a copilot-setup-steps.yml file specifying one with the runs-on attribute. See the docs for more details.
Adjusts Studio’s Data Designer initialization so that when artifact_path is omitted, artifacts are written to a known-writable recipe datasets root instead of cwd/artifacts (which can become /artifacts in packaged Studio).
Changes:
- Default
artifact_pathtorecipe_datasets_root()when callers passNone. - Add import for
recipe_datasets_rootin the data recipe service.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Reproduced #7038 before applying your change: on a real macOS box with cwd set to On gemini's clutter concern: both dataset scanners only list Your three cited suites pass locally (20 tests), and a mirror CI run is green: oobabooga#50 Thanks @Lyxot. Merging. |
Summary
artifact_path.artifact_pathcallers, including the background recipe worker, unchanged.Root Cause
Validation paths constructed
DataDesignerwithoutartifact_path. Data Designer then fell back toPath.cwd() / "artifacts", which can become/artifactsin packaged Studio when cwd is/.Fixes #7038
Validation