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

Testing CM Test automation #442

Merged
merged 3 commits into from
Oct 30, 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/test-nvidia-mlperf-implementation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: MLPerf Inference Nvidia implementations

on:
schedule:
- cron: "25 21 * * *" #to be adjusted
- cron: "19 11 * * *" #to be adjusted

jobs:
build_nvidia:
Expand Down
19 changes: 18 additions & 1 deletion automation/script/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2428,7 +2428,24 @@ def test(self, i):

if console:
logging.info(path)
logging.info(' Test: TBD')
test_config = meta.get('tests', '')
if test_config:
log.info(test_config)
test_all_variations = test_config.get('test-all-variations', False)
if test_all_variations:
variations = meta.get("variations")
individual_variations = [ v for v in variations if variations[v].get('group', '') == '' and str(variations[v].get('exclude-in-test', '')).lower() not in [ "1", "true", "yes" ] ]
tags_string = ",".join(meta.get("tags"))
for variation in individual_variations:
run_tags = f"{tags_string},_{variation}"
r = self.cmind.access({'action':'run',
'automation':'script',
'tags': run_tags,
'quiet': i.get('quiet') })
if r['return'] > 0:
return r

logging.info(' Test: WIP')


return {'return':0, 'list': lst}
Expand Down
3 changes: 3 additions & 0 deletions script/get-generic-sys-util/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -721,5 +721,8 @@
}
}
}
},
"tests": {
"test-all-variations": "yes"
}
}
Loading