Skip to content

Remove the automation engine; it now ships with mlcflow - #1062

Merged
arjunsuresh merged 4 commits into
mainfrom
remove-automation-engine
Nov 6, 2026
Merged

arjunsuresh merged 4 commits into
mainfrom
remove-automation-engine

Conversation

@anandhu-eng

Copy link
Copy Markdown
Contributor

What this does

Moves the MLC script automation engine out of this repo. automation/utils.py and automation/script/* now live in mlcflow under automation/, bundled with every pip install mlcflow.

After this, mlperf-automations is content only: the 350+ script/<alias>/ directories with their meta.yaml, customize.py and run.sh.

Changes

  • Deleted automation/ (~13,800 lines), leaving automation/README.md as a signpost that maps each old path to its new home and explains where to send engine PRs.
  • Dropped 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 the process_mounts unit test inside test_docker. What remains exercises script content in this repo. Renamed to "MLC script content features test" to match. actions/setup-python bumped v3 → v5 on the surviving jobs.
  • The remaining nested-Docker test used sys.path.insert(0, 'automation'). It now asks mlcflow where its bundled engine is, via Action().bundled_automation_path('script'), rather than assuming a path.
  • AGENTS.md / .claude/skill.md: engine references repointed at mlcflow/automation/...; the component map redrawn; added the note that from utils import ... in a customize.py still works because mlcflow puts its bundled automation/ on sys.path before 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.

⚠️ Merge ordering

This PR needs an mlcflow release that bundles the engine, and should not merge before one exists. Two hard dependencies:

  1. Once automation/ is gone from here, an mlcflow that predates the bundling has no engine at all on either side and cannot run this repo.
  2. Action().bundled_automation_path('script'), used by the nested-Docker test, currently exists only on mlcflow's migrate-automation-engine-from-mlperf-automations branch (Bundle the ScriptAutomation engine (migrate automation/ from mlperf-automations) mlcflow#271) — not on mlcflow main and not on PyPI.

CI on this PR installs plain mlcflow from PyPI, so it is expected to fail until that release lands. (The MLCFLOW_PIP_SPEC repo-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

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>
@anandhu-eng
anandhu-eng requested a review from a team as a code owner August 3, 2026 06:20
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

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>
@arjunsuresh

Copy link
Copy Markdown
Collaborator

@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>

Copilot AI commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved the merge conflicts and merged main into the PR branch in commit fcbbaad.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

⚠️ This PR modifies automation/ — the frozen engine copy

The MLC script automation engine now lives in mlcflow and ships bundled with it. The copy in this repo is kept only as a fallback for mlcflow <= 1.2.9, and is ignored entirely by mlcflow >= 1.3.0.

A change here will not reach anyone running a current mlcflow. Engine changes belong in a PR against mlcflow — see automation/README.md.

This is a warning, not a block: fixes aimed at the fallback copy are still legitimate while it ships.

@arjunsuresh arjunsuresh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove the automation folder now

@arjunsuresh
arjunsuresh merged commit 2c28f2d into main Nov 6, 2026
142 of 146 checks passed
@arjunsuresh
arjunsuresh deleted the remove-automation-engine branch November 6, 2026 14:58
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.

4 participants