From f21c5d0d780bd10ba9c4a92686e8eb8c43d7e395 Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Mon, 7 Aug 2023 14:53:26 -0700 Subject: [PATCH] tests: Disable PARSEC benchmark tests These tests are disabled due our GitHub Actions self-hosted Runners having a 60GB of disk space. The PARSEC Disk Image Resource (v1.0.0, http://resources.gem5.org/resources/x86-parsec?version=1.0.0) is 33GB and is simply too big to download and unzip for these tests. These tests can be reenabled when this issue is resolved. Change-Id: I9a63aa1903cea3ce7942bdc85bcd0b24761d2f29 --- .../test_gem5_library_examples.py | 9 ++++++++- tests/gem5/parsec_benchmarks/test_parsec.py | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py b/tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py index e43d461b35..b88862fc0d 100644 --- a/tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py +++ b/tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py @@ -171,7 +171,14 @@ gem5_verify_config( length=constants.long_tag, ) -if os.access("/dev/kvm", mode=os.R_OK | os.W_OK): +print( + "WARNING: PARSEC tests are disabled. This is due to our GitHub " + "Actions self-hosted runners only having 60GB of disk space. The " + "PARSEC Disk image is too big to use." +) +# 'False' is used to disable the tests. +if False: # os.access("/dev/kvm", mode=os.R_OK | os.W_OK): + # The x86-parsec-benchmarks uses KVM cores, this test will therefore only # be run on systems that support KVM. gem5_verify_config( diff --git a/tests/gem5/parsec_benchmarks/test_parsec.py b/tests/gem5/parsec_benchmarks/test_parsec.py index 1f239dae1f..fee8e7134a 100644 --- a/tests/gem5/parsec_benchmarks/test_parsec.py +++ b/tests/gem5/parsec_benchmarks/test_parsec.py @@ -50,6 +50,13 @@ def test_parsec( # Don't run the tests if KVM is unavailable. return + print( + "WARNING: PARSEC tests are disabled. This is due to our GitHub " + "Actions self-hosted runners only having 60GB of disk space. The " + "PARSEC Disk image is too big to use." + ) + return # Remove this line to re-enable PARSEC tests. + gem5_verify_config( name="{}-boot-cpu_{}-detailed-cpu_{}-cores_{}_{}_{}_parsec-test".format( boot_cpu, detailed_cpu, str(num_cpus), mem_system, benchmark, size