Merge pull request #7363 from GabyCT/topic/enabletensorflow

metrics: enable TensorFlow benchmark to be run on gha
This commit is contained in:
GabyCT 2023-07-20 13:36:55 -06:00 committed by GitHub
commit b629f6a822
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -46,6 +46,9 @@ jobs:
- name: run blogbench test
run: bash tests/metrics/gha-run.sh run-test-blogbench
- name: run tensorflow test
run: bash tests/metrics/gha-run.sh run-test-tensorflow
- name: make metrics tarball ${{ matrix.vmm }}
run: bash tests/metrics/gha-run.sh make-tarball-results

View File

@ -83,6 +83,15 @@ function run_test_blogbench() {
check_metrics
}
function run_test_tensorflow() {
info "Running TensorFlow test using ${KATA_HYPERVISOR} hypervisor"
# ToDo: remove the exit once the metrics workflow is stable
exit 0
create_symbolic_links ${KATA_HYPERVISOR}
bash tests/metrics/machine_learning/tensorflow.sh 1 20
}
function main() {
action="${1:-}"
case "${action}" in
@ -92,6 +101,7 @@ function main() {
run-test-memory-usage) run_test_memory_usage ;;
run-test-memory-usage-inside-container) run_test_memory_usage_inside_container ;;
run-test-blogbench) run_test_blogbench ;;
run-test-tensorflow) run_test_tensorflow ;;
*) >&2 die "Invalid argument" ;;
esac
}