Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to initiate tests #13

Merged
merged 4 commits into from
Apr 18, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/check-all-broken-links.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Check .md README files for broken links

on:
push: [master]
push: [main]

jobs:
markdown-link-check:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-cm-script-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: CM script automation features test

on:
pull_request:
branches: [ "master", "dev" ]
branches: [ "main", "dev" ]
paths:
- '.github/workflows/test-cm-script-features.yml'
- '**'
Expand Down Expand Up @@ -33,6 +33,6 @@ jobs:
cm run script --quiet --tags=get,sys-utils-cm
- name: Test CM Script Features
run: |
python tests/script/test_install.py
python tests/script/test_docker.py
python tests/script/test_features.py
python script/test-cm-core/src/script/test_install.py
python script/test-cm-core/src/script/test_docker.py
python script/test-cm-core/src/script/test_features.py
4 changes: 2 additions & 2 deletions .github/workflows/test-cm-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: CM script automation test

on:
pull_request:
branches: [ "master", "dev" ]
branches: [ "main", "dev" ]
paths:
- '.github/workflows/test-cm-scripts.yml'
- '**'
Expand Down Expand Up @@ -33,4 +33,4 @@ jobs:
cm run script --quiet --tags=get,sys-utils-cm
- name: Test CM Script Automation
run: |
python tests/script/test_deps.py
python script/test-cm-core/src/script/test_deps.py
4 changes: 2 additions & 2 deletions .github/workflows/test-cm-tutorial-retinanet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: CM tutorial retinanet

on:
pull_request:
branches: [ "master", "dev" ]
branches: [ "main", "dev" ]
paths:
- '.github/workflows/test-cm-tutorial-retinanet.yml'
- '**'
Expand All @@ -32,4 +32,4 @@ jobs:
cm run script --quiet --tags=get,sys-utils-cm
- name: Test CM Tutorial Retinanet
run: |
python tests/tutorials/test_tutorial_retinanet.py
python script/test-cm-core/src/tutorials/test_tutorial_retinanet.py
6 changes: 3 additions & 3 deletions .github/workflows/test-cm-tutorial-tvm-pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: CM tutorial tvm pip install

on:
pull_request:
branches: [ "master", "test" ]
branches: [ "main", "test" ]
paths:
- '.github/workflows/test-cm-tutorial-tvm-pip.yml'
- '**'
Expand All @@ -32,7 +32,7 @@ jobs:
cm run script --quiet --tags=get,sys-utils-cm
- name: Test CM Tutorial TVM pip install with VirtualMachine Runtime
run: |
python tests/tutorials/test_tutorial_tvm_pip_vm.py
python script/test-cm-core/src/tutorials/test_tutorial_tvm_pip_vm.py

test_ge_runtime:
runs-on: ubuntu-latest
Expand All @@ -54,4 +54,4 @@ jobs:
cm run script --quiet --tags=get,sys-utils-cm
- name: Test CM Tutorial TVM pip install with GraphExecutor Runtime
run: |
python tests/tutorials/test_tutorial_tvm_pip_ge.py
python script/test-cm-core/src/tutorials/test_tutorial_tvm_pip_ge.py
2 changes: 1 addition & 1 deletion .github/workflows/test-cm-tutorial-tvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
cm run script --quiet --tags=get,sys-utils-cm
- name: Test CM Tutorial TVM
run: |
python tests/tutorials/test_tutorial_tvm.py
python script/test-cm-core/src/tutorials/test_tutorial_tvm.py
69 changes: 0 additions & 69 deletions .github/workflows/test-cm.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test-image-classification-onnx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: image classification with ONNX

on:
pull_request:
branches: [ "master", "dev" ]
branches: [ "main", "dev" ]
paths:
- '.github/workflows/test-image-classification-onnx.yml'
- '**'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: MLPerf inference bert (deepsparse, tf, onnxruntime, pytorch)

on:
pull_request:
branches: [ "master", "dev" ]
branches: [ "main", "dev" ]
paths:
- '.github/workflows/test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml'
- '**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-mlperf-inference-gptj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: MLPerf inference GPT-J

on:
pull_request:
branches: [ "master1", "dev1" ]
branches: [ "main1", "dev1" ]
paths:
- '.github/workflows/test-mlperf-inference-gptj.yml'
- '**'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: MLPerf inference MLCommons C++ ResNet50

on:
pull_request:
branches: [ "master", "dev" ]
branches: [ "main", "dev" ]
paths:
- '.github/workflows/test-mlperf-inference-mlcommons-cpp-resnet50.yml'
- '**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-mlperf-inference-resnet50.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: MLPerf inference resnet50

on:
pull_request:
branches: [ "master", "dev" ]
branches: [ "main", "dev" ]
paths:
- '.github/workflows/test-mlperf-inference-resnet50.yml'
- '**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-mlperf-inference-retinanet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: MLPerf inference retinanet

on:
pull_request:
branches: [ "master", "dev" ]
branches: [ "main", "dev" ]
paths:
- '.github/workflows/test-mlperf-inference-retinanet.yml'
- '**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-mlperf-inference-rnnt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: MLPerf inference rnnt

on:
pull_request:
branches: [ "master", "dev" ]
branches: [ "main", "dev" ]
paths:
- '.github/workflows/test-mlperf-inference-rnnt.yml'
- '**'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: MLPerf loadgen with HuggingFace bert onnx fp32 squad model

on:
pull_request:
branches: [ "master", "dev" ]
branches: [ "main", "dev" ]
paths:
- '.github/workflows/test-mlperf-loadgen-onnx-huggingface-bert-fp32-squad.yml'
- '**'
Expand Down
41 changes: 0 additions & 41 deletions .github/workflows/update-script-dockerfiles.yml

This file was deleted.

46 changes: 0 additions & 46 deletions .github/workflows/update-script-readme.yml

This file was deleted.

2 changes: 1 addition & 1 deletion automation/script/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -4387,7 +4387,7 @@ def prepare_and_run_script_with_postprocessing(i, postprocess="postprocess"):
utils.merge_dicts({'dict1':env, 'dict2':updated_env, 'append_lists':True, 'append_unique':True})


if postprocess != '' and customize_code is not None:
if postprocess != '' and customize_code is not None and postprocess in dir(customize_code):
print (recursion_spaces+' ! call "{}" from {}'.format(postprocess, customize_code.__file__))

if len(posthook_deps)>0 and (postprocess == "postprocess"):
Expand Down
2 changes: 2 additions & 0 deletions script/print-hello-world/run.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ if not "%CM_PRINT_HELLO_WORLD_SKIP_PRINT_ENV%" == "yes" (
echo.
echo HELLO WORLD!
if not "%CM_PRINT_HELLO_WORLD_TEXT%" == "" (

echo.
echo %CM_PRINT_HELLO_WORLD_TEXT%

)
echo.
2 changes: 2 additions & 0 deletions script/print-hello-world/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ fi
echo ""
echo "HELLO WORLD!"
if [[ ${CM_PRINT_HELLO_WORLD_TEXT} != "" ]]; then

echo ""
echo "${CM_PRINT_HELLO_WORLD_TEXT}"

fi
echo ""
1 change: 1 addition & 0 deletions script/test-cm-core/README-extra.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# CM script
12 changes: 12 additions & 0 deletions script/test-cm-core/_cm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
alias: test-cm-core
uid: 2c2fb9d20dc64cf3

automation_alias: script
automation_uid: 5b4e0237da074764

tags:
- test
- cm
- core

cache: false
16 changes: 16 additions & 0 deletions script/test-cm-core/customize.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from cmind import utils
import os

def preprocess(i):

os_info = i['os_info']

env = i['env']

meta = i['meta']

automation = i['automation']

quiet = (env.get('CM_QUIET', False) == 'yes')

return {'return':0}
3 changes: 3 additions & 0 deletions script/test-cm-core/run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rem native script

echo "TBD"
13 changes: 13 additions & 0 deletions script/test-cm-core/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

#CM Script location: ${CM_TMP_CURRENT_SCRIPT_PATH}

#To export any variable
#echo "VARIABLE_NAME=VARIABLE_VALUE" >>tmp-run-env.out

#${CM_PYTHON_BIN_WITH_PATH} contains the path to python binary if "get,python" is added as a dependency

echo "TBD"

#Add your run commands here...
# run "$CM_RUN_CMD"
Loading
Loading