From e9d820c14f0f26749705ab9b0ca2afa2dad3ece8 Mon Sep 17 00:00:00 2001 From: hanwenli Date: Thu, 8 May 2025 11:24:37 -0700 Subject: [PATCH] Relax inspec test for cstate to accept "no idle states" The recent update of AL2023 totally disabled idle states, which could give even better performance. ParallelCluster has been restricting idle state to maximum level 1 for performance reason. ToDo: ParallelCluster should improve the configuration to totally disable idle state for all OS. Signed-off-by: Hanwen --- .../test/controls/c_states_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/aws-parallelcluster-platform/test/controls/c_states_spec.rb b/cookbooks/aws-parallelcluster-platform/test/controls/c_states_spec.rb index 02888d7aa0..8d3707bc5b 100644 --- a/cookbooks/aws-parallelcluster-platform/test/controls/c_states_spec.rb +++ b/cookbooks/aws-parallelcluster-platform/test/controls/c_states_spec.rb @@ -4,8 +4,8 @@ only_if { !os_properties.on_docker? && os_properties.x86? } ## cpupower is installed for Ubuntu >=22 describe bash('cpupower idle-info') do - its('stdout') { should match(/Number of idle states: 2/) } - its('stdout') { should match(/Available idle states: POLL C1/) } + its('stdout') { should match(/Number of idle states: 2|No idle states/) } + its('stdout') { should match(/Available idle states: POLL C1|No idle states/) } end end