Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
282de38
Update meta.yaml
arjunsuresh Jul 14, 2025
893f855
Merge branch 'dev' into dev
arjunsuresh Jul 14, 2025
53ae36a
Merge pull request #507 from GATEOverflow/dev
anandhu-eng Jul 15, 2025
4ac3dd3
[Automated Commit] Document script/generate-mlperf-inference-submissi…
github-actions[bot] Jul 15, 2025
3446a22
Update pull_request_template.md
anandhu-eng Jul 15, 2025
a9b50c5
Changes for supporting lint action (#509)
anandhu-eng Jul 15, 2025
a147e8e
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Jul 15, 2025
b9dbbf3
Update mkdocs.yml
arjunsuresh Jul 15, 2025
9883958
Support simultaneous activation of multiple dynamic variations (#512)
arjunsuresh Jul 15, 2025
3f48d6b
Support base variations inside combination of variations, fixes #38, …
arjunsuresh Jul 16, 2025
8e393f8
[Automated Commit] Document script/get-git-repo/meta.yaml [skip ci]
github-actions[bot] Jul 16, 2025
d99ef6d
Fix gcc installed path (#518)
arjunsuresh Jul 17, 2025
7fa2e0b
Fix aocc version check regular expression
arjunsuresh Jul 18, 2025
7c9ff76
Fix aocc version check regular expression (#521)
arjunsuresh Jul 18, 2025
6438e1d
Return generated readme paths (#515)
anandhu-eng Jul 18, 2025
f8e55da
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Jul 18, 2025
4a1c06f
fix for issue 479 (#516)
anandhu-eng Jul 18, 2025
976285f
Update PR checklist (#514)
anandhu-eng Jul 18, 2025
0b20b8c
Handle int,float in update_tags_from_env
arjunsuresh Jul 19, 2025
174cd6f
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Jul 19, 2025
e7defdf
Merge branch 'dev' into dev
arjunsuresh Jul 19, 2025
7d776a7
Merge pull request #524 from GATEOverflow/dev
arjunsuresh Jul 19, 2025
4fc6e53
Update document-scripts.yml | Use venv for document script
arjunsuresh Jul 21, 2025
522ca99
Fix backup url env
anandhu-eng Jul 21, 2025
322526f
clean code
anandhu-eng Jul 21, 2025
74b320b
Merge pull request #526 from anandhu-eng/backup_urls
arjunsuresh Jul 21, 2025
28aa5af
[Automated Commit] Document script/get-ml-model-resnet50/meta.yaml […
github-actions[bot] Jul 21, 2025
cc1730b
Merge pull request #525 from mlcommons/arjunsuresh-patch-1
anandhu-eng Jul 22, 2025
6a523e3
Install ca-certificates on launching container with MLC
anandhu-eng Jul 22, 2025
ead17fa
Merge pull request #531 from mlcommons/527-mlcr-option-similar-to-doc…
arjunsuresh Jul 22, 2025
7847589
Migrate the dataset and model downloads to R2
anandhu-eng Jul 23, 2025
5a76d19
migrate dataset and model downloads to r2
anandhu-eng Jul 23, 2025
c708fd6
Merge pull request #532 from mlcommons/Anandhu-patch
arjunsuresh Jul 23, 2025
326f409
Fix docker root run, numactl detect (#534)
arjunsuresh Jul 23, 2025
30ab166
[Automated Commit] Document script/get-generic-sys-util/meta.yaml [s…
github-actions[bot] Jul 23, 2025
ed8a52b
Cleanup docs (#535)
arjunsuresh Jul 23, 2025
ec30158
[Automated Commit] Document script/get-cache-dir/meta.yaml [skip ci]
github-actions[bot] Jul 23, 2025
bf2f7f0
Update document-scripts.yml: don't commit unless there are changes to…
arjunsuresh Jul 24, 2025
aa3d831
Improve docs template (#538)
arjunsuresh Jul 24, 2025
6c4cff5
Fix for whisper reference benchmark (#540)
anandhu-eng Jul 25, 2025
b358974
Add script to detect/install apptainer (#536)
anandhu-eng Jul 25, 2025
9bd7ce4
Output the submission directory in push to GitHub (#533)
anandhu-eng Jul 25, 2025
443c7c1
Modifications for llama3.1-8b edge (#539)
anandhu-eng Jul 25, 2025
84de37a
Add initial draft of help.py (#542)
arjunsuresh Jul 26, 2025
6c60c1f
Improve script help (#543)
arjunsuresh Jul 26, 2025
77472bc
Add logging in push results to GitHub (#541)
anandhu-eng Jul 26, 2025
faca0c8
Fix for ignoring incorrect tmp cache entries
arjunsuresh Jul 27, 2025
304cc8b
Merge pull request #545 from GATEOverflow/dev
anandhu-eng Jul 28, 2025
e19692d
Added support for Whisper external model download
kamieyy Jul 28, 2025
f40ee04
Upgrade the docker image for mlperf inference reference implementation
arjunsuresh Jul 28, 2025
f9eca2f
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Jul 28, 2025
971d003
Merge branch 'dev' into dev
arjunsuresh Jul 28, 2025
cfc9201
Merge pull request #547 from GATEOverflow/dev
anandhu-eng Jul 28, 2025
9fe9888
Remove version fix for pycuda, support cuda 12.8, 12.9
arjunsuresh Jul 28, 2025
2407295
Merge pull request #549 from GATEOverflow/dev
anandhu-eng Jul 28, 2025
3a17bb9
Fixes for whisper, dont print python env at end
arjunsuresh Jul 28, 2025
fbd86f0
adr -> ad in get-ml-model-whisper
arjunsuresh Jul 28, 2025
b840cf2
r2_downloader -> r2-downloader
arjunsuresh Jul 28, 2025
39fa33d
adr fix in get-ml-model-whisper
arjunsuresh Jul 28, 2025
0da0c0c
Merge branch 'dev' into dev
arjunsuresh Jul 28, 2025
e8c7103
Fixes for whisper, dont print python env at end (#551)
arjunsuresh Jul 28, 2025
d7119a2
Updated meta.yaml to align with repo structure and automation
kamieyy Jul 29, 2025
81b301b
Merge branch 'dev' into add-whisper-support
kamieyy Jul 29, 2025
8d79c4b
Changes to support R2 Downloader (#548)
anandhu-eng Jul 29, 2025
11cf15d
Update customize.py
anandhu-eng Jul 29, 2025
ebfac75
Merge pull request #552 from mlcommons/anandhu-eng-patch-1
anandhu-eng Jul 29, 2025
3d79cb8
Updated meta.yaml with requested changes
kamieyy Jul 29, 2025
179aaa0
removed run.sh script
kamieyy Jul 29, 2025
8b01f4c
added validation for MLC_ML_MODEL_WHISPER_PATH in customize.py
kamieyy Jul 29, 2025
4934283
fixed indentation issues
kamieyy Jul 29, 2025
e985c6b
Update customize.py | Fix typo
arjunsuresh Jul 29, 2025
48b0df3
llama3.1 -> llama3_1 (#554)
anandhu-eng Jul 30, 2025
943f23a
added missing tags field to prehook_deps entry
kamieyy Jul 30, 2025
947fb59
Fix Waymo dataset extraction (#555)
anandhu-eng Jul 30, 2025
903bf71
Fixes for mlperf inference power
arjunsuresh Jul 30, 2025
e7dbf00
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Jul 30, 2025
ffcf5ae
Fixes the CLI upload of mlperf inference results
arjunsuresh Jul 30, 2025
86c3637
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Jul 30, 2025
c2d420b
Merge branch 'dev' into dev
arjunsuresh Jul 30, 2025
95e1740
Update build_wheels.yml
arjunsuresh Jul 30, 2025
9122d59
Merge pull request #556 from GATEOverflow/dev
arjunsuresh Jul 30, 2025
82cd4d7
fixes for llama3.1 mlperf inference run
arjunsuresh Jul 30, 2025
ba3f0c4
Fix typo
anandhu-eng Jul 31, 2025
1dbfa8f
Fix typo
anandhu-eng Jul 31, 2025
b04f0a8
Merge pull request #557 from mlcommons/anandhu-eng-patch-1
arjunsuresh Jul 31, 2025
0e88740
precheck required files before generating submission
anandhu-eng Jul 31, 2025
b7da7fa
fix f-string error
anandhu-eng Jul 31, 2025
231baa6
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Jul 31, 2025
869c065
Update build_wheel_off.yml
anandhu-eng Jul 31, 2025
93eda22
update llama3.1 8b edge dataset link - rclone
anandhu-eng Aug 1, 2025
83defee
Merge pull request #559 from anandhu-eng/issue558
arjunsuresh Aug 1, 2025
9bf1f0f
Update meta.yaml
anandhu-eng Aug 1, 2025
59bdea3
Merge branch 'dev' into anandhu-eng-patch-1
anandhu-eng Aug 1, 2025
c372385
Fixes cnndm dataset download
arjunsuresh Aug 2, 2025
4eb9d40
Fix defaults in preprocess-mlperf-inference-submission
arjunsuresh Aug 2, 2025
3042f8c
Automatically mount --outdirname for docker run
arjunsuresh Aug 3, 2025
a52682a
Support docker run for install-gcc
arjunsuresh Aug 3, 2025
036b781
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Aug 3, 2025
5f17640
Merge branch 'dev' into dev
arjunsuresh Aug 3, 2025
6b00ce0
Merge branch 'dev' into anandhu-eng-patch-1
arjunsuresh Aug 3, 2025
3ceb2ef
Merge branch 'dev' into add-whisper-support
arjunsuresh Aug 3, 2025
88d77cb
Merge pull request #562 from GATEOverflow/dev
arjunsuresh Aug 3, 2025
c499523
update llama3.1 8b edge dataset link - rclone
arjunsuresh Aug 3, 2025
3142abd
Update customize.py | Fix docker error on gh actions
arjunsuresh Aug 3, 2025
1be63e7
Merge pull request #563 from mlcommons/arjunsuresh-patch-2
arjunsuresh Aug 3, 2025
67e3a5d
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Aug 3, 2025
a477aac
Update customize.py | Fix docker error on gh actions
arjunsuresh Aug 3, 2025
876c159
Fix permission error for fake runs
arjunsuresh Aug 3, 2025
e1a3225
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Aug 3, 2025
28d24b8
Merge branch 'dev' into dev
arjunsuresh Aug 3, 2025
9c3711a
Merge pull request #564 from GATEOverflow/dev
arjunsuresh Aug 3, 2025
2e93356
Fix default input keys in docker run command
arjunsuresh Aug 3, 2025
89df712
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Aug 3, 2025
22db961
Merge pull request #565 from GATEOverflow/dev
arjunsuresh Aug 3, 2025
310f617
Merge branch 'dev' into add-whisper-support
kamieyy Aug 4, 2025
9c15ba7
Update meta.yaml
kamieyy Aug 5, 2025
417c23d
download models changed back to 'dae', cleaned prehook_deps and multi…
kamieyy Aug 5, 2025
53a5b04
changed dependency name 'dae' to 'whisper-model-dae' for rclone and r…
kamieyy Aug 5, 2025
4b0e85b
Fix nvidia-mlperf-inference-v5.0-dev
arjunsuresh Aug 5, 2025
225298f
Merge branch 'dev' into dev
arjunsuresh Aug 5, 2025
e6d500f
Merge pull request #567 from GATEOverflow/dev
arjunsuresh Aug 5, 2025
27e693e
Merge branch 'dev' into add-whisper-support
kamieyy Aug 6, 2025
0de447d
set mlc as default download-src
kamieyy Aug 6, 2025
5647b64
changed mlc dependency name to 'whisper-model-dae'
kamieyy Aug 6, 2025
2f6e9d9
comment out - huggingface
kamieyy Aug 6, 2025
30ada65
Merge pull request #546 from kamieyy/add-whisper-support
anandhu-eng Aug 6, 2025
3389752
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Aug 6, 2025
8e988ed
Added validate_cache option to handle softlinks for get-gcc
arjunsuresh Aug 6, 2025
a94a1ca
Merge branch 'mlcommons:dev' into dev
arjunsuresh Aug 6, 2025
3e58652
Added validate_cache option to handle softlinks for get-gcc
arjunsuresh Aug 6, 2025
a2183df
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Aug 6, 2025
4a50fad
Update build_wheels.yml
arjunsuresh Aug 6, 2025
387d280
For now continue keeping gcc cache path as softlink
arjunsuresh Aug 6, 2025
f48ea99
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Aug 6, 2025
9d9c06f
Update build_wheels.yml
arjunsuresh Aug 6, 2025
4dc414b
Merge pull request #568 from GATEOverflow/dev
arjunsuresh Aug 6, 2025
2c3b0d3
Adding support to latest intel oneapi compiler
hemanthtanguturi1 Aug 7, 2025
13ad1cc
Update meta.yaml
hemanthtanguturi1 Aug 7, 2025
c6db3b7
Merge pull request #569 from hemanthtanguturi1/patch-1
arjunsuresh Aug 7, 2025
f01a9d7
export src repo hash for install llvm and gcc
arjunsuresh Aug 7, 2025
e037d81
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Aug 7, 2025
9966c1a
Support repo_url in doc script
arjunsuresh Aug 7, 2025
44884b1
Merge branch 'mlcommons:dev' into dev
arjunsuresh Aug 7, 2025
d4a26ae
Merge pull request #570 from GATEOverflow/dev
arjunsuresh Aug 7, 2025
5bb944f
Support target for gcc,llvm build from src (#573)
amd-arsuresh Aug 14, 2025
858a209
Added --host option for install-gcc-src
github-actions[bot] Aug 14, 2025
eb48f94
Added --host option for install-gcc-src (#574)
arjunsuresh Aug 14, 2025
556d602
Fix cross compilation of llvm
github-actions[bot] Aug 14, 2025
059270c
Support env in os_info
github-actions[bot] Aug 14, 2025
8c0b579
Support env in os_info
github-actions[bot] Aug 14, 2025
4fed6ae
Merge pull request #575 from GATEOverflow/dev
arjunsuresh Aug 14, 2025
92fc89f
Update load-secrets-action to v3 with Windows runner compatability
nathanwasson Aug 15, 2025
3067c10
Merge branch 'dev' into 1password-update
nathanwasson Aug 15, 2025
e5a84c7
Merge pull request #576 from mlcommons/1password-update
arjunsuresh Aug 15, 2025
a015e7d
Support more configs for jemalloc
arjunsuresh Aug 16, 2025
0eb254e
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Aug 16, 2025
d03e129
Fixes for help, support --all in search, update some outdated READMEs
arjunsuresh Aug 17, 2025
812f211
[Automated Commit] Format Codebase [skip ci]
github-actions[bot] Aug 17, 2025
6052530
Merge branch 'dev' into dev
arjunsuresh Aug 17, 2025
66799ab
Merge pull request #577 from GATEOverflow/dev
arjunsuresh Aug 17, 2025
d945cbe
Removed protobuf version requirement for mlperf-inference resnet50
arjunsuresh Aug 20, 2025
e3b542e
Merge branch 'dev' into dev
arjunsuresh Aug 20, 2025
e7bc31f
Removed protobuf version requirement for mlperf-inference resnet50
arjunsuresh Aug 20, 2025
8a5ac93
Support oneapi 2025.2.1
arjunsuresh Aug 24, 2025
2d16dce
Support oneapi 2025.2.1
arjunsuresh Aug 24, 2025
b4301c0
Support install-gcc-src on macos
arjunsuresh Sep 3, 2025
37f8f35
Add --with-sysroot by default for gcc install on macos
github-actions[bot] Sep 3, 2025
2ebd193
--target not allowed as script input
github-actions[bot] Sep 3, 2025
5459573
Merge pull request #580 from GATEOverflow/dev
arjunsuresh Sep 3, 2025
effada3
Create codeql.yml
arjunsuresh Sep 3, 2025
6d4757d
Create codeql.yml
arjunsuresh Sep 3, 2025
1bacc43
Update codeql.yml
arjunsuresh Sep 3, 2025
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
18 changes: 18 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,21 @@
- [ ] Target branch is `dev`

📌 Note: PRs must be raised against `dev`. Do not commit directly to `main`.

### ✅ Testing & CI
- [ ] No existing GitHub Actions are failing because of this change

### 📁 File Hygiene & Output Handling
- [ ] No unintended files (e.g., logs, cache, temp files, __pycache__, output folders) are committed

### 📝 Comments & Communication
- [ ] Proper inline comments are added to explain important or non-obvious changes
- [ ] PR title and description clearly state what the PR does and why
- [ ] Related issues (if any) are properly referenced (`Fixes #`, `Related to #`, etc.)
- [ ] All reviewer feedback has been addressed

### 🛡️ Safety & Security
- [ ] No secrets or credentials are committed
- [ ] Paths, shell commands, and environment handling are safe and portable


2 changes: 1 addition & 1 deletion .github/workflows/build_wheel_off.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Build wheel and release into PYPI (off now)


on:
push:
branches:
- dev_off
paths:
- VERSION


jobs:
build_wheels:
if: github.repository_owner == 'mlcommons'
Expand Down
89 changes: 89 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: "CodeQL Advanced"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '39 13 * * 1'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: python
build-mode: none
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
# or others). This is typically only required for manual builds.
# - name: Setup runtime (example)
# uses: actions/setup-example@v1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
6 changes: 3 additions & 3 deletions .github/workflows/document-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ jobs:
- name: Document meta.yaml file
run: |
echo "Documenting ${{ matrix.modified_metas.file }}"

python3 -m venv mlcflow
. mlcflow/bin/activate
pip install mlcflow
mlc add repo automation-scripts
mlc doc script ${{ matrix.modified_metas.uid}} --quiet
Expand All @@ -75,8 +76,7 @@ jobs:
git config --global user.name github-actions[bot]
git config --global user.email "github-actions[bot]@users.noreply.github.com"
# Commit changes
git commit -m '[Automated Commit] Document ${{ matrix.modified_metas.file}} [skip ci]'
git push
git diff-index --quiet HEAD || (git commit -am "[Automated Commit] Document ${{ matrix.modified_metas.file}} [skip ci]" ) && git push)



27 changes: 9 additions & 18 deletions .github/workflows/run_tests_on_modified_meta_with_secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,6 @@ on:
- 'script/**meta.yaml'

jobs:
fetch-secret:
runs-on: ubuntu-latest
outputs:
gdrive_secret: ${{ steps.op-load-secret.outputs.GDRIVE_SERVICE_ACCOUNT_KEY }}
steps:
- name: Load secret from 1Password
id: op-load-secret
uses: 1password/load-secrets-action@v2
with:
export-env: false
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
GDRIVE_SERVICE_ACCOUNT_KEY: op://7basd2jirojjckncf6qnq3azai/bzbaco3uxoqs2rcyu42rvuccga/credential

get_modified_files:
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -52,20 +38,25 @@ jobs:
process_modified_files:
needs:
- get_modified_files
- fetch-secret
runs-on: ubuntu-latest
if: needs.get_modified_files.outputs.processed_files != '[]' && needs.get_modified_files.outputs.processed_files != ''
strategy:
fail-fast: false
matrix:
file_info: ${{ fromJSON(needs.get_modified_files.outputs.processed_files).file_info }}
steps:
- name: Load secrets
id: op-load-secrets
uses: 1password/load-secrets-action@v3
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
GDRIVE_SERVICE_ACCOUNT_KEY: op://7basd2jirojjckncf6qnq3azai/bzbaco3uxoqs2rcyu42rvuccga/credential

- name: Set RCLONE Service account env var from secret
shell: bash
run: |
echo "::add-mask::${{ needs.fetch-secret.outputs.gdrive_secret }}"
echo "RCLONE_CONFIG_MLC_COGNATA_SERVICE_ACCOUNT_CREDENTIALS=${{ needs.fetch-secret.outputs.gdrive_secret }}" >> $GITHUB_ENV
echo "RCLONE_CONFIG_MLC_NUSCENES_SERVICE_ACCOUNT_CREDENTIALS=${{ needs.fetch-secret.outputs.gdrive_secret }}" >> $GITHUB_ENV
echo "RCLONE_CONFIG_MLC_COGNATA_SERVICE_ACCOUNT_CREDENTIALS=${{ steps.op-load-secrets.outputs.GDRIVE_SERVICE_ACCOUNT_KEY }}" >> $GITHUB_ENV
echo "RCLONE_CONFIG_MLC_NUSCENES_SERVICE_ACCOUNT_CREDENTIALS=${{ steps.op-load-secrets.outputs.GDRIVE_SERVICE_ACCOUNT_KEY }}" >> $GITHUB_ENV

- name: Process meta.yaml file
run: |
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/test-mlc-script-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,16 @@ jobs:
Write-Host "run_step=false" | Out-File -FilePath $Env:GITHUB_ENV -Append
}

- name: Load secret
- name: Load secrets
if: github.repository_owner == 'mlcommons' && env.run_step == 'true'
id: op-load-secret
uses: 1password/load-secrets-action@v2
with:
export-env: false
id: op-load-secrets
uses: 1password/load-secrets-action@v3
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
PAT: op://7basd2jirojjckncf6qnq3azai/bzbaco3uxoqs2rcyu42rvuccga/credential
- name: Push Results
env:
GITHUB_TOKEN: ${{ steps.op-load-secret.outputs.PAT }}
GITHUB_TOKEN: ${{ steps.op-load-secrets.outputs.PAT }}
if: github.repository_owner == 'mlcommons' && env.run_step == 'true'
run: |
git config --global user.name "mlcommons-bot"
Expand Down
27 changes: 8 additions & 19 deletions .github/workflows/test-mlperf-automotive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,24 @@ on:
- 'script/**meta.yaml'

jobs:
fetch-secret:
runs-on: ubuntu-latest
outputs:
gdrive_secret: ${{ steps.op-load-secret.outputs.GDRIVE_SERVICE_ACCOUNT_KEY }}
steps:
- name: Load secret from 1Password
id: op-load-secret
uses: 1password/load-secrets-action@v2
with:
export-env: false
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
GDRIVE_SERVICE_ACCOUNT_KEY: op://7basd2jirojjckncf6qnq3azai/bzbaco3uxoqs2rcyu42rvuccga/credential

run-mlperf:
runs-on: ubuntu-latest
needs:
- fetch-secret
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Load secrets
id: op-load-secrets
uses: 1password/load-secrets-action@v3
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
GDRIVE_SERVICE_ACCOUNT_KEY: op://7basd2jirojjckncf6qnq3azai/bzbaco3uxoqs2rcyu42rvuccga/credential
- name: Set RCLONE Service account env var from secret
shell: bash
run: |
echo "::add-mask::${{ needs.fetch-secret.outputs.gdrive_secret }}"
echo "RCLONE_CONFIG_MLC_COGNATA_SERVICE_ACCOUNT_CREDENTIALS=${{ needs.fetch-secret.outputs.gdrive_secret }}" >> $GITHUB_ENV
echo "RCLONE_CONFIG_MLC_NUSCENES_SERVICE_ACCOUNT_CREDENTIALS=${{ needs.fetch-secret.outputs.gdrive_secret }}" >> $GITHUB_ENV
echo "RCLONE_CONFIG_MLC_COGNATA_SERVICE_ACCOUNT_CREDENTIALS=${{ steps.op-load-secrets.outputs.GDRIVE_SERVICE_ACCOUNT_KEY }}" >> $GITHUB_ENV
echo "RCLONE_CONFIG_MLC_NUSCENES_SERVICE_ACCOUNT_CREDENTIALS=${{ steps.op-load-secrets.outputs.GDRIVE_SERVICE_ACCOUNT_KEY }}" >> $GITHUB_ENV
- name: Run MLPerf
run: |
pip install mlcflow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,8 @@ on:
- '!**.md'

jobs:
fetch-secret:
runs-on: ubuntu-latest
outputs:
encrypted_secret: ${{ steps.encrypt-secret.outputs.encrypted_secret }}
steps:
- name: Load secret
id: op-load-secret
uses: 1password/load-secrets-action@v2
with:
export-env: false
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
PAT: op://7basd2jirojjckncf6qnq3azai/bzbaco3uxoqs2rcyu42rvuccga/credential

- name: Encrypt secret
id: encrypt-secret
env:
ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }}
run: |
# AES-256 encrypt
encrypted=$(echo "${{ steps.op-load-secret.outputs.pat }}" | \
openssl enc -e -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 \
-pass pass:"$ENCRYPTION_KEY" -base64 -A)

echo "encrypted_secret=$encrypted" >> $GITHUB_OUTPUT

build:
name: MLPerf Inference Bert ${{ matrix.backend }} on ${{ matrix.os }}
needs: [fetch-secret]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -85,25 +58,15 @@ jobs:
else
echo "run_step=false" >> $GITHUB_ENV
fi
- name: Decrypt secret
id: decrypt-secret
shell: bash
- name: Load secrets
id: op-load-secrets
uses: 1password/load-secrets-action@v3
env:
ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }}
encrypted_secret: ${{ needs.fetch-secret.outputs.encrypted_secret }}
run: |
echo "Running on OS: ${{ matrix.os }}"

# Decrypt
decrypted=$(echo "$encrypted_secret" | \
openssl enc -d -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 \
-pass pass:"$ENCRYPTION_KEY" -base64 -A)

echo "::add-mask::$decrypted"
echo "DECRYPTED_SECRET=$decrypted" >> $GITHUB_OUTPUT
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
PAT: op://7basd2jirojjckncf6qnq3azai/bzbaco3uxoqs2rcyu42rvuccga/credential
- name: Push Results
env:
GITHUB_TOKEN: ${{ steps.decrypt-secret.outputs.decrypted_secret }}
GITHUB_TOKEN: ${{ steps.op-load-secrets.outputs.PAT }}
if: github.repository_owner == 'mlcommons' && env.run_step == 'true'
run: |
git config --global user.name "mlcommons-bot"
Expand Down
Loading
Loading