Skip to content

Commit 0ae6e25

Browse files
Revert "Add kitchen tests to check Neuron driver and repository"
This reverts commit 4a4c233.
1 parent 532c645 commit 0ae6e25

File tree

3 files changed

+0
-63
lines changed

3 files changed

+0
-63
lines changed

cookbooks/aws-parallelcluster-test/recipes/test_neuron.rb

Lines changed: 0 additions & 42 deletions
This file was deleted.

cookbooks/aws-parallelcluster-test/recipes/tests.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
include_recipe 'aws-parallelcluster-test::test_sudoers'
2323
include_recipe 'aws-parallelcluster-test::test_openssh'
2424
include_recipe 'aws-parallelcluster-test::test_nvidia'
25-
include_recipe 'aws-parallelcluster-test::test_neuron'
2625
include_recipe 'aws-parallelcluster-test::test_dcv'
2726

2827
###################

libraries/helpers.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -399,21 +399,6 @@ def remove_package_repository(repo_name)
399399
end
400400
end
401401

402-
# Check if package repository is enabled
403-
# NOTE: This helper function defines a Chef resource function to be executed at Converge time
404-
def is_repository_enabled?(repo_name, base_url)
405-
command = value_for_platform(
406-
%w(ubuntu debian) => {
407-
'default' => "grep -r -E '^deb +#{base_url}' /etc/apt/sources.list*",
408-
},
409-
'default' => "yum -v repolist #{repo_name} | grep 'Repo-status : enabled' || exit 1 && yum -v repolist #{repo_name} | grep 'Repo-baseurl : #{base_url}'")
410-
411-
cmd = Mixlib::ShellOut.new(command, timeout: 60)
412-
cmd.run_command
413-
# Return false if the repository is not installed
414-
cmd.exitstatus.to_i.zero?
415-
end
416-
417402
# Get number of nv switches
418403
def get_nvswitches
419404
# NVSwitch device id is 10de:1af1
@@ -555,11 +540,6 @@ def neuron_installed?
555540
!(cmd.exitstatus != 0)
556541
end
557542

558-
def is_neuron_instance?
559-
neuron_filter = ["trn1."]
560-
node['ec2']['instance_type'].start_with?(*neuron_filter)
561-
end
562-
563543
# load cluster configuration file into node object
564544
def load_cluster_config
565545
ruby_block "load cluster configuration" do

0 commit comments

Comments
 (0)