Skip to content

Commit 917e95c

Browse files
committed
[Test] Fix Python version in kitchen tests related to AWS Batch and CFN Boostrap scripts. In particular, we expect all Oses to use Python 3.12.8, except for AL2 which uses 3.9.20
1 parent 31f0abb commit 917e95c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cookbooks/aws-parallelcluster-awsbatch/test/controls/awsbatch_virtualenv_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
1010
# See the License for the specific language governing permissions and limitations under the License.
1111

12-
python_version = '3.12.8'
1312
base_dir = "/opt/parallelcluster"
1413
pyenv_dir = "#{base_dir}/pyenv"
1514

1615
control 'tag:install_awsbatch_virtualenv_created' do
16+
python_version = os_properties.alinux2? ? '3.9.20' : '3.12.8'
1717
title "awsbatch virtualenv should be created on #{python_version}"
1818
only_if { !os_properties.redhat? }
1919

cookbooks/aws-parallelcluster-environment/spec/unit/recipes/cfn_bootstrap_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
describe 'aws-parallelcluster-environment::cfn_bootstrap' do
44
for_all_oses do |platform, version|
55
context "on #{platform}#{version}" do
6-
cached(:cfnbootstrap_version) { '2.0-32' }
6+
cached(:cfnbootstrap_version) { '2.0-33' }
77
cached(:cfnbootstrap_package) { "aws-cfn-bootstrap-py3-#{cfnbootstrap_version}.tar.gz" }
88
cached(:python_version) { "#{node['cluster']['python-version']}" }
99
cached(:system_pyenv_root) { 'system_pyenv_root' }

cookbooks/aws-parallelcluster-environment/test/controls/cfn_bootstrap_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
1010
# See the License for the specific language governing permissions and limitations under the License.
1111

12-
cfn_python_version = '3.12.8'
1312
base_dir = "/opt/parallelcluster"
1413
pyenv_dir = "#{base_dir}/pyenv"
1514

1615
control 'tag:install_cfnbootstrap_virtualenv_created' do
16+
cfn_python_version = os_properties.alinux2? ? '3.9.20' : '3.12.8'
1717
title "cfnbootstrap virtualenv should be created on #{cfn_python_version}"
1818
only_if { !os_properties.redhat_on_docker? }
1919

0 commit comments

Comments
 (0)