MCPcopy Create free account
hub / github.com/dbt-labs/ade-bench / copy_task_files

Function copy_task_files

scripts_python/create_sandbox.py:163–183  ·  view source on GitHub ↗

Copy various task files to sandbox.

(task_name)

Source from the content-addressed store, hash-verified

161
162
163def copy_task_files(task_name):
164 """Copy various task files to sandbox."""
165 task_dir = Path("tasks") / task_name
166 sandbox_dir = Path("dev/sandbox")
167
168 # Define what to copy
169 items_to_copy = [
170 (task_dir / "setup.sh", sandbox_dir, "setup.sh"),
171 (task_dir / "solution.sh", sandbox_dir, "solution.sh"),
172 (task_dir / "setup", sandbox_dir / "setup", "setup directory"),
173 (task_dir / "seeds", sandbox_dir / "seeds", "seeds directory"),
174 (task_dir / "tests", sandbox_dir / "tests", "tests directory"),
175 (task_dir / "solutions", sandbox_dir / "solutions", "solutions directory"),
176 ]
177
178 success = True
179 for source, dest, name in items_to_copy:
180 if not copy_item(source, dest, name, create_dest_dir=(name.endswith("directory"))):
181 success = False
182
183 return success
184
185
186def copy_migration_files(variant):

Callers 1

mainFunction · 0.85

Calls 1

copy_itemFunction · 0.85

Tested by

no test coverage detected