Repository navigation
Remove the automation engine; it now ships with mlcflow - #1062
Conversation
The MLC script automation engine (`automation/utils.py` and
`automation/script/*`) has moved to mlcflow, where it is bundled with
every install. This repo becomes content-only: the 350+ `script/<alias>/`
directories and their `meta.yaml` / `customize.py` / `run.sh`.
- Delete `automation/`, leaving a `README.md` signpost that maps each
old path to its new home in mlcflow.
- Drop `automation/**` path filters from the workflows that used them,
so those jobs no longer wait on a directory that cannot change.
- Move the engine-facing jobs in test-mlc-script-features.yml
(`test_experiment`, `test_error_handling`, and the `process_mounts`
unit test) to mlcflow, and rename the workflow accordingly. The
remaining nested-Docker test resolves the bundled engine through
`Action().bundled_automation_path('script')` instead of a repo path.
- Update AGENTS.md and .claude/skill.md to point engine references at
mlcflow and to record that `from utils import ...` in a customize.py
still resolves, via the bundled automation/ directory.
Requires an mlcflow release that bundles the engine; see mlcommons/mlcflow#271.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
Resolved four modify/delete conflicts in the engine files that main touched after this branch was cut (apptainer.py, experiment.py, module.py, remote_run.py) by keeping them deleted — the engine now lives in mlcflow. Verified each upstream change has an equivalent in mlcflow's migration branch, except one: the `remote_pull_mlc_repos` string falsiness guard in remote_run.py still needs porting to mlcommons/mlcflow#271. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…ntain permissions' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
|
@copilot resolve the merge conflicts in this pull request |
# Conflicts: # .github/workflows/run_tests_on_modified_meta_with_secrets.yml # .github/workflows/test-mlperf-automotive.yml # automation/README.md # automation/script/module.py Co-authored-by: arjunsuresh <4791823+arjunsuresh@users.noreply.github.com>
Resolved the merge conflicts and merged |
|
arjunsuresh
left a comment
There was a problem hiding this comment.
We can remove the automation folder now
What this does
Moves the MLC script automation engine out of this repo.
automation/utils.pyandautomation/script/*now live in mlcflow underautomation/, bundled with everypip install mlcflow.After this,
mlperf-automationsis content only: the 350+script/<alias>/directories with theirmeta.yaml,customize.pyandrun.sh.Changes
automation/(~13,800 lines), leavingautomation/README.mdas a signpost that maps each old path to its new home and explains where to send engine PRs.automation/**path filters from the 9 workflows that had them — those globs can no longer match anything, so leaving them in place is just misleading.test-mlc-script-features.yml: the engine-facing jobs move to mlcflow's copy of this workflow —test_experiment,test_error_handling, and theprocess_mountsunit test insidetest_docker. What remains exercises script content in this repo. Renamed to "MLC script content features test" to match.actions/setup-pythonbumpedv3→v5on the surviving jobs.sys.path.insert(0, 'automation'). It now asks mlcflow where its bundled engine is, viaAction().bundled_automation_path('script'), rather than assuming a path.AGENTS.md/.claude/skill.md: engine references repointed atmlcflow/automation/...; the component map redrawn; added the note thatfrom utils import ...in acustomize.pystill works because mlcflow puts its bundledautomation/onsys.pathbefore loading a script — so none of the ~188 scripts doing that need to change.Some workflow files also show trailing-whitespace-only cleanups from a formatter pass.
This PR needs an mlcflow release that bundles the engine, and should not merge before one exists. Two hard dependencies:
automation/is gone from here, an mlcflow that predates the bundling has no engine at all on either side and cannot run this repo.Action().bundled_automation_path('script'), used by the nested-Docker test, currently exists only on mlcflow'smigrate-automation-engine-from-mlperf-automationsbranch (Bundle the ScriptAutomation engine (migrate automation/ from mlperf-automations) mlcflow#271) — not on mlcflowmainand not on PyPI.CI on this PR installs plain
mlcflowfrom PyPI, so it is expected to fail until that release lands. (TheMLCFLOW_PIP_SPECrepo-variable indirection that would have let CI install mlcflow from the migration branch is deliberately not part of this PR.)Companion PR: mlcommons/mlcflow#271
🤖 Generated with Claude Code