Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .claude/skill.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ mlcflow CLI → finds script by tags → resolves variations & deps →
```

**Two repos, two roles:**
- `mlperf-automations` (this repo) = content: 377 script directories + `automation/` engine
- `mlcflow` = driver CLI: installs via pip, dynamically loads the engine above
- `mlperf-automations` (this repo) = content only: 350+ script directories
- `mlcflow` = driver CLI **and** the `automation/` engine, bundled together and
installed via pip

The engine used to live here in `automation/` and has moved to mlcflow (see
`automation/README.md`). Engine changes go in PRs against mlcflow, not here.
`from utils import …` in a `customize.py` still works — mlcflow puts its
bundled `automation/` on `sys.path` before loading any script.

**Three key files per script:**
- `meta.yaml` — identity, tags, deps, variations, env mapping (schema in `automation/script/meta_schema.py`)
- `meta.yaml` — identity, tags, deps, variations, env mapping (schema in `mlcflow/automation/script/meta_schema.py`)
- `customize.py` — Python hooks: `preprocess()` builds the shell command; `postprocess()` reads results
- `run.sh` — executes `eval "${MLC_MLPERF_ENDPOINT_CMD}"` and exits non-zero on failure

Expand Down Expand Up @@ -278,12 +284,12 @@ Everything else: name vars to reflect the script they come from and what they ho
|---|---|
| Understand the inference benchmark | `script/run-mlperf-inference-app/meta.yaml`, `customize.py` |
| Reference for a new MLPerf benchmark (dep chain, variations, dispatch pattern) | `script/app-mlperf-inference-mlcommons-python/meta.yaml`, `script/run-mlperf-inference-app/meta.yaml` |
| Debug env propagation | `automation/script/module.py` (search: `new_env_keys`, `clean_env_keys`) |
| Debug caching | `automation/script/cache_utils.py` |
| Add a script | Nearest similar script + `automation/script/meta_schema.py` |
| Fix meta.yaml format | `automation/script/lint.py` |
| Debug env propagation | `mlcflow/automation/script/module.py` (search: `new_env_keys`, `clean_env_keys`) |
| Debug caching | `mlcflow/automation/script/cache_utils.py` |
| Add a script | Nearest similar script + `mlcflow/automation/script/meta_schema.py` |
| Fix meta.yaml format | `mlcflow/automation/script/lint.py` |
| Run CI locally | `.github/workflows/test-mlc-script-features.yml` |
| Understand Docker path | `automation/script/docker.py` |
| Understand Docker path | `mlcflow/automation/script/docker.py` |

---

Expand Down
58 changes: 0 additions & 58 deletions .github/workflows/automation-frozen-notice.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
pull_request_target:
types: [opened]
paths:
- 'automation/**'
- 'script/**'
- '!**.md'

Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/document-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
pip install pyyaml


- name: Get changed files
id: modified-files
env:
Expand All @@ -56,7 +56,7 @@ jobs:
with:
fetch-depth: 0
path: automation-scripts

- name: Document meta.yaml file
run: |
echo "Documenting ${{ matrix.modified_metas.file }}"
Expand All @@ -72,6 +72,3 @@ jobs:
git config user.email "github-actions[bot]@users.noreply.github.com"
# Commit changes
git diff-index --quiet HEAD || (git commit -am "[Automated Commit] Document ${{ matrix.modified_metas.file}} [skip ci]" && git push)



2 changes: 1 addition & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ jobs:
git config --global user.email "${{ steps.bot.outputs.email }}"
# Commit changes
git commit -m '[Automated Commit] Format Codebase'
git push
git push
fi
4 changes: 2 additions & 2 deletions .github/workflows/run-tests-on-modified-meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
get_modified_files:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:

process_modified_files:
runs-on: ubuntu-latest
needs:
needs:
- get_modified_files
if: needs.get_modified_files.outputs.processed_files != '[]' && needs.get_modified_files.outputs.processed_files != ''
strategy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:

- name: Fetch PR head
run: |
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr-head
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr-head

- name: Get changed files
id: modified-files
run: |
Expand All @@ -39,7 +39,7 @@ jobs:
echo "$changed_files" | python3 .github/scripts/list_modified_scripts_with_secrets.py

process_modified_files:
needs:
needs:
- get_modified_files
runs-on: ubuntu-latest
if: needs.get_modified_files.outputs.processed_files != '[]' && needs.get_modified_files.outputs.processed_files != ''
Expand All @@ -56,7 +56,7 @@ jobs:
GDRIVE_SERVICE_ACCOUNT_KEY: op://7basd2jirojjckncf6qnq3azai/bzbaco3uxoqs2rcyu42rvuccga/credential
CF_ACCESS_CLIENT_ID: "op://7basd2jirojjckncf6qnq3azai/pnmuaflgk6knqycozwrxmixdcu/qcqdvhbacunfh6kczsj7ij7uy4"
CF_ACCESS_CLIENT_SECRET: "op://7basd2jirojjckncf6qnq3azai/pnmuaflgk6knqycozwrxmixdcu/5qk7gaxyr3tmwqktyp4yiyjyeu"

- name: Set RCLONE Service account env var from secret
shell: bash
env:
Expand All @@ -81,7 +81,6 @@ jobs:
run: |
echo "CF_ACCESS_CLIENT_ID=${{ steps.op-load-secrets.outputs.CF_ACCESS_CLIENT_ID }}" >> $GITHUB_ENV
echo "CF_ACCESS_CLIENT_SECRET=${{ steps.op-load-secrets.outputs.CF_ACCESS_CLIENT_SECRET }}" >> $GITHUB_ENV

- name: Process meta.yaml file
shell: bash
env:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
- 'script/build-dockerfile/**'
- 'script/detect-cpu/**'
- 'script/detect-os/**'
- 'automation/script/docker_utils.py'
- '.github/workflows/test-docker-images.yml'
workflow_dispatch:
inputs:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/test-mlc-based-submission-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches: [ "main", "dev" ]
paths:
- '.github/workflows/test-mlc-based-submission-generation.yml'
- 'automation/script/**'
- 'script/run-mlperf-inference-app/**'
- 'script/generate-mlperf-inference-submission/**'
- 'script/run-mlperf-inference-submission-checker/**'
Expand Down Expand Up @@ -45,7 +44,7 @@ jobs:
division: closed
- case: case-6
division: closed-open

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -64,8 +63,8 @@ jobs:
- name: Pull repo where test cases are uploaded
run: |
git clone -b submission-generation-tests https://github.com/mlcommons/inference.git submission_generation_tests
- name: Run Submission Generation - ${{ matrix.case }} ${{ matrix.action }} ${{ matrix.category }} ${{ matrix.division }}

- name: Run Submission Generation - ${{ matrix.case }} ${{ matrix.action }} ${{ matrix.category }} ${{ matrix.division }}
continue-on-error: true
run: |
if [ "${{ matrix.case }}" == "case-3" ]; then
Expand Down Expand Up @@ -115,4 +114,3 @@ jobs:
run: |
echo "Manually failing the workflow because the step failed."
exit 1

Loading
Loading