From 544d9e6c34b76575662d8ab5eec5d5e4247e93f2 Mon Sep 17 00:00:00 2001 From: Ryan Egesdahl Date: Fri, 3 Feb 2023 20:38:22 +0000 Subject: SERVER-70427 Remove Chef+Kitchen package test infrastructure (cherry picked from commit 09ca39216efd0c28c71144d25f55b72a9bba24a4) --- .../package_test/files/sources.list.debian8 | 4 - buildscripts/package_test/kitchen.legacy.yml | 122 ------------ buildscripts/package_test/kitchen.yml | 165 ---------------- buildscripts/package_test/metadata.rb | 2 - .../package_test/recipes/install_mongodb.rb | 154 --------------- buildscripts/package_test/rhel-user-data.sh | 6 - .../test/recipes/service/install_mongodb_spec.rb | 218 --------------------- buildscripts/package_test/ubuntu-user-data.sh | 7 - etc/evergreen.yml | 6 - etc/evergreen_yml_components/definitions.yml | 20 -- etc/evergreen_yml_components/variants/atlas.yml | 3 - .../variants/misc_release.yml | 96 --------- evergreen/kitchen_run.sh | 40 ---- 13 files changed, 843 deletions(-) delete mode 100644 buildscripts/package_test/files/sources.list.debian8 delete mode 100644 buildscripts/package_test/kitchen.legacy.yml delete mode 100644 buildscripts/package_test/kitchen.yml delete mode 100644 buildscripts/package_test/metadata.rb delete mode 100644 buildscripts/package_test/recipes/install_mongodb.rb delete mode 100644 buildscripts/package_test/rhel-user-data.sh delete mode 100644 buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb delete mode 100644 buildscripts/package_test/ubuntu-user-data.sh delete mode 100644 evergreen/kitchen_run.sh diff --git a/buildscripts/package_test/files/sources.list.debian8 b/buildscripts/package_test/files/sources.list.debian8 deleted file mode 100644 index 0ad1174270a..00000000000 --- a/buildscripts/package_test/files/sources.list.debian8 +++ /dev/null @@ -1,4 +0,0 @@ -deb http://archive.debian.org/debian jessie main -deb-src http://archive.debian.org/debian jessie main -deb http://security.debian.org/ jessie/updates main -deb-src http://security.debian.org/ jessie/updates main diff --git a/buildscripts/package_test/kitchen.legacy.yml b/buildscripts/package_test/kitchen.legacy.yml deleted file mode 100644 index c44c9a92d5e..00000000000 --- a/buildscripts/package_test/kitchen.legacy.yml +++ /dev/null @@ -1,122 +0,0 @@ ---- -driver: - name: ec2 - region: us-east-1 - vpc_mode: true - vpc_id: <%= ENV['KITCHEN_VPC'] %> - subnet_id: <%= ENV['KITCHEN_SUBNET'] %> - security_group_ids: - - <%= ENV['KITCHEN_SECURITY_GROUP'] %> - aws_ssh_key_id: <%= ENV['KITCHEN_SSH_KEY_ID'] %> - interface: private - associate_public_ip: true - tags: - name: "server package test" - owner: "build" - expire-on: "<%= ENV['KITCHEN_EXPIRE'] %>" - -verifier: - name: inspec - sudo: true - -provisioner: - name: chef_zero - log_level: info - require_chef_omnibus: 12 - -platforms: - - name: amazon-x86-64 - driver: - image_id: ami-0080e4c5bc078760e - transport: - username: ec2-user - - name: amazon2-x86-64 - driver: - image_id: ami-428aa838 - transport: - username: ec2-user - - name: amazon2-arm64 - driver: - image_id: ami-0c582118883b46f4f - instance_type: c6g.medium - transport: - username: ec2-user - - name: debian10-x86-64 - driver: - image_id: ami-0dedf6a6502877301 - transport: - username: admin - - name: rhel70-x86-64 - driver: - image_id: ami-2051294a - transport: - username: root - - name: rhel80-x86-64 - driver: - image_id: ami-0c322300a1dd5dc79 - transport: - username: ec2-user - - name: rhel82-arm64 - driver: - image_id: ami-029ba835ddd43c34f - instance_type: m6g.medium - transport: - username: ec2-user - - name: suse11-x86-64 - driver: - image_id: ami-7f2e6015 - transport: - username: ec2-user - - name: suse12-x86-64 - driver: - image_id: ami-043eebeabcc4e3d35 - transport: - username: ec2-user - - name: suse15-x86-64 - driver: - image_id: ami-06ea7729e394412c8 - transport: - username: ec2-user - - name: ubuntu1204-x86-64 - driver: - image_id: ami-3fec7956 - transport: - username: ubuntu - - name: ubuntu1404-x86-64 - driver: - image_id: ami-1d8c9574 - transport: - username: ubuntu - - name: ubuntu1604-x86-64 - driver: - image_id: ami-64140d0e - transport: - username: ubuntu - - name: ubuntu1804-x86-64 - driver: - image_id: ami-7ad76705 - transport: - username: ubuntu - - name: ubuntu1804-arm64 - driver: - image_id: ami-01ac7d9c1179d7b74 - instance_type: m6g.medium - - name: ubuntu2004-x86-64 - driver: - image_id: ami-068663a3c619dd892 - transport: - username: ubuntu - - name: ubuntu2004-arm64 - driver: - image_id: ami-00579fbb15b954340 - instance_type: m6g.medium - -transport: - ssh_key: ~/.ssh/kitchen.pem - -suites: - - name: service - run_list: - - recipe[package_test::install_mongodb] - attributes: - artifacts_url: <%= ENV['KITCHEN_ARTIFACTS_URL'] %> diff --git a/buildscripts/package_test/kitchen.yml b/buildscripts/package_test/kitchen.yml deleted file mode 100644 index d0169af308f..00000000000 --- a/buildscripts/package_test/kitchen.yml +++ /dev/null @@ -1,165 +0,0 @@ ---- -driver: - name: ec2 - region: us-east-1 - vpc_mode: true - vpc_id: <%= ENV['KITCHEN_VPC'] %> - subnet_id: <%= ENV['KITCHEN_SUBNET'] %> - security_group_ids: - - <%= ENV['KITCHEN_SECURITY_GROUP'] %> - aws_ssh_key_id: <%= ENV['KITCHEN_SSH_KEY_ID'] %> - interface: private - associate_public_ip: true - tags: - name: "server package test" - owner: "build" - expire-on: "<%= ENV['KITCHEN_EXPIRE'] %>" - -verifier: - name: inspec - sudo: true - -provisioner: - name: chef_zero - log_level: info - product_name: cinc - product_version: 17.9.52 - download_url: https://omnitruck.cinc.sh/install.sh - -platforms: - - name: amazon-x86-64 - driver: - image_id: ami-0080e4c5bc078760e - transport: - username: ec2-user - - name: amazon2-x86-64 - driver: - image_id: ami-02013ed1a71752ea7 - transport: - username: ec2-user - - name: amazon2-arm64 - driver: - image_id: ami-0c582118883b46f4f - instance_type: c6g.medium - transport: - username: ec2-user - - name: debian71-x86-64 - driver: - image_id: ami-4b124a22 - transport: - username: admin - - name: debian81-x86-64 - driver: - image_id: ami-896d85e2 - transport: - username: admin - - name: debian10-x86-64 - driver: - image_id: ami-0dedf6a6502877301 - transport: - username: admin - - name: debian11-x86-64 - driver: - image_id: ami-06a80441f25333895 - transport: - username: admin - - name: rhel70-x86-64 - driver: - image_id: ami-0051b1b2c5a166c8c - transport: - username: root - - name: rhel80-x86-64 - driver: - image_id: ami-0c322300a1dd5dc79 - transport: - username: ec2-user - - name: rhel82-arm64 - driver: - image_id: ami-029ba835ddd43c34f - instance_type: m6g.medium - transport: - username: ec2-user - - name: rhel90-x86-64 - driver: - image_id: ami-0c41531b8d18cc72b - user_data: rhel-user-data.sh - transport: - username: ec2-user - - name: rhel90-arm64 - driver: - image_id: ami-08ddbe20d7e0d2f8f - instance_type: m6g.medium - user_data: rhel-user-data.sh - transport: - username: ec2-user - - name: suse11-x86-64 - driver: - image_id: ami-7f2e6015 - transport: - username: ec2-user - - name: suse12-x86-64 - driver: - image_id: ami-043eebeabcc4e3d35 - transport: - username: ec2-user - - name: suse15-x86-64 - driver: - image_id: ami-06ea7729e394412c8 - transport: - username: ec2-user - - name: ubuntu1204-x86-64 - driver: - image_id: ami-3fec7956 - transport: - username: ubuntu - - name: ubuntu1404-x86-64 - driver: - image_id: ami-1d8c9574 - transport: - username: ubuntu - - name: ubuntu1604-x86-64 - driver: - image_id: ami-64140d0e - transport: - username: ubuntu - - name: ubuntu1804-x86-64 - driver: - image_id: ami-7ad76705 - transport: - username: ubuntu - - name: ubuntu1804-arm64 - driver: - image_id: ami-01ac7d9c1179d7b74 - instance_type: m6g.medium - - name: ubuntu2004-x86-64 - driver: - image_id: ami-068663a3c619dd892 - transport: - username: ubuntu - - name: ubuntu2004-arm64 - driver: - image_id: ami-00579fbb15b954340 - instance_type: m6g.medium - - name: ubuntu2204-x86-64 - driver: - image_id: ami-051dcca84f1edfff1 - user_data: ubuntu-user-data.sh - transport: - username: ubuntu - - name: ubuntu2204-arm64 - driver: - image_id: ami-070650c005cce4203 - instance_type: m6g.medium - user_data: ubuntu-user-data.sh - transport: - username: ubuntu - -transport: - ssh_key: ~/.ssh/kitchen.pem - -suites: - - name: service - run_list: - - recipe[package_test::install_mongodb] - attributes: - artifacts_url: <%= ENV['KITCHEN_ARTIFACTS_URL'] %> diff --git a/buildscripts/package_test/metadata.rb b/buildscripts/package_test/metadata.rb deleted file mode 100644 index 3bbfb147acc..00000000000 --- a/buildscripts/package_test/metadata.rb +++ /dev/null @@ -1,2 +0,0 @@ -name 'package_test' -version '0.1.0' diff --git a/buildscripts/package_test/recipes/install_mongodb.rb b/buildscripts/package_test/recipes/install_mongodb.rb deleted file mode 100644 index e7ec6a7067f..00000000000 --- a/buildscripts/package_test/recipes/install_mongodb.rb +++ /dev/null @@ -1,154 +0,0 @@ -# This Chef task installs MongoDB in a new EC2 instance spun up by Kitchen in -# preparation for running some basic server functionality tests. - -artifacts_tarball = 'artifacts.tgz' -homedir = "/tmp" - -ruby_block 'allow sudo over tty' do - block do - file = Chef::Util::FileEdit.new('/etc/sudoers') - file.search_file_replace_line(/Defaults\s+requiretty/, '#Defaults requiretty') - file.search_file_replace_line(/Defaults\s+requiretty/, '#Defaults !visiblepw') - file.write_file - end -end - -# This file limits processes to 1024. It therefore interfereres with `ulimit -u` when present. -if platform_family? 'rhel' or platform_family? 'amazon' - file '/etc/security/limits.d/90-nproc.conf' do - action :delete - end -end - -remote_file "#{homedir}/#{artifacts_tarball}" do - source node['artifacts_url'] -end - -execute 'extract artifacts' do - command "tar xzvf #{artifacts_tarball}" - live_stream true - cwd homedir -end - -if platform_family? 'debian' - - # SERVER-40491 Debian 8 sources.list need to point to archive url - if node['platform'] == 'debian' and node['platform_version'] == '8.1' - cookbook_file '/etc/apt/sources.list' do - source 'sources.list.debian8' - owner 'root' - group 'root' - mode '0644' - action :create - end - end - - execute 'apt update' do - command 'apt update' - live_stream true - end - - ENV['DEBIAN_FRONTEND'] = 'noninteractive' - package 'openssl' - - # the ubuntu image does not have some dependencies installed by default - # and it is required for the install_compass script - if node['platform'] == 'ubuntu' and node['platform_version'] >= '20.04' - execute 'install dependencies ubuntu 20.04' do - command 'apt-get install -y python3 libsasl2-modules-gssapi-mit' - live_stream true - end - link '/usr/bin/python' do - to '/usr/bin/python3' - end - else - execute 'install dependencies' do - command 'apt-get install -y python libsasl2-modules-gssapi-mit' - live_stream true - end - end - - # dpkg returns 1 if dependencies are not satisfied, which they will not be - # for enterprise builds. We install dependencies in the next block. - execute 'install mongod' do - command 'dpkg -i `find . -name "*server*.deb"`' - live_stream true - cwd homedir - returns [0, 1] - end - - # install the tools so we can test install_compass - execute 'install mongo tools' do - command 'dpkg -i `find . -name "*tools-extra*.deb"`' - live_stream true - cwd homedir - returns [0, 1] - end - - # yum and zypper fetch dependencies automatically, but dpkg does not. - # Installing the dependencies explicitly is fragile, so we reply on apt-get - # to install dependencies after the fact. - execute 'update and fix broken dependencies' do - command 'apt update && apt -y -f install' - live_stream true - end -end - -if platform_family? 'rhel' or platform_family? 'amazon' - bash 'wait for yum updates if they are running' do - code <<-EOH - sleep 120 - EOH - end - #rhel9 doesn't have Gconf2 without epel - if node['platform'] == 'redhat' and node['platform_version'] == '9.0' - execute 'install epel' do - command 'dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y' - live_stream true - cwd homedir - end - end - execute 'install mongod' do - command 'yum install -y `find . -name "*server*.rpm"`' - live_stream true - cwd homedir - end - - # install the tools so we can test install_compass - execute 'install mongo tools' do - command 'yum install -y `find . -name "*tools-extra*.rpm"`' - live_stream true - cwd homedir - end -end - -if platform_family? 'suse' - bash 'wait for zypper lock to be released' do - code <<-EOD - retry_counter=0 - # We also need to make sure another instance of zypper isn't running while - # we do our install, so just run zypper refresh until it doesn't fail. - # Waiting for 2 minutes is copied from an internal project where we do this. - until [ "$retry_counter" -ge "12" ]; do - zypper refresh && exit 0 - retry_counter=$(($retry_counter + 1)) - [ "$retry_counter" = "12" ] && break - sleep 10 - done - exit 1 - EOD - flags "-x" - end - - execute 'install mongod' do - command 'zypper --no-gpg-checks -n install `find . -name "*server*.rpm"`' - live_stream true - cwd homedir - end - - execute 'install mongo tools' do - command 'zypper --no-gpg-checks -n install `find . -name "*tools-extra*.rpm"`' - live_stream true - cwd homedir - end -end diff --git a/buildscripts/package_test/rhel-user-data.sh b/buildscripts/package_test/rhel-user-data.sh deleted file mode 100644 index fe927b9b272..00000000000 --- a/buildscripts/package_test/rhel-user-data.sh +++ /dev/null @@ -1,6 +0,0 @@ -#! /bin/bash -sed -i '/^PubkeyAcceptedAlgorithms/s/$/,ssh-rsa/' /etc/crypto-policies/back-ends/opensshserver.config -sed -i '/^HostKeyAlgorithms/s/$/,ssh-rsa/' /etc/crypto-policies/back-ends/opensshserver.config -update-crypto-policies --set LEGACY -systemctl restart sshd - diff --git a/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb b/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb deleted file mode 100644 index 886f4809d79..00000000000 --- a/buildscripts/package_test/test/recipes/service/install_mongodb_spec.rb +++ /dev/null @@ -1,218 +0,0 @@ -############################################################ -# This section verifies start, stop, and restart after -# installation within a new EC2 instance spun up by Kitchen. -# -# - stop mongod so that we begin testing from a stopped state -# - verify start, stop, and restart -############################################################ - -# service is not in path for commands with sudo on suse -service = os[:name] == 'suse' ? '/sbin/service' : 'service' - -describe command("#{service} mongod stop") do - its('exit_status') { should eq 0 } -end - -describe command("#{service} mongod start") do - its('exit_status') { should eq 0 } -end - -# Inspec treats all amazon linux as upstart, we explicitly make it use -# systemd_service https://github.com/chef/inspec/issues/2639 -if (os[:name] == 'amazon' and os[:release] == '2.0') - describe systemd_service('mongod') do - it { should be_running } - end -else - describe service('mongod') do - it { should be_running } - end -end - -describe command("#{service} mongod stop") do - its('exit_status') { should eq 0 } -end - -describe command("#{service} mongod restart") do - its('exit_status') { should eq 0 } -end - -if (os[:name] == 'amazon' and os[:release] == '2.0') - describe systemd_service('mongod') do - it { should be_running } - end -else - describe service('mongod') do - it { should be_running } - end -end - -if os[:arch] == 'x86_64' - # install_compass does not run Amazon Linux but *does* run on Amazon Linux 2, - # but the 'redhat' family includes both, apparently. We need to specifically - # exclude Amazon Linux from the set of allowed distributions here because the - # version strings would otherwise pass it. - if ((os[:family] == 'redhat' and os[:name] != "amazon" and os[:release].split('.')[0].to_i >= 7) or - (os[:name] == 'ubuntu' and os[:release].split('.')[0].to_i >= 16) or - (os[:name] == 'debian' and os[:release].split('.')[0].to_i >= 9) or - (os[:name] == 'amazon' and os[:release].split('.')[0].to_i == 2)) - describe command("install_compass") do - its('exit_status') { should eq 0 } - its('stderr') { should eq '' } - end - elsif os[:name] == 'suse' - describe command("install_compass") do - its('exit_status') { should eq 1 } - its('stderr') { should match /You are using an unsupported platform/ } - end - else - describe command("install_compass") do - its('exit_status') { should eq 1 } - its('stderr') { should match /You are using an unsupported Linux distribution/ } - end - end -else - describe command("install_compass") do - its('exit_status') { should eq 1 } - its('stderr') { should match /Sorry, MongoDB Compass is only supported on 64-bit Intel platforms/ } - end -end - -############################################################ -# This section verifies files, directories, and users -# - files and directories exist and have correct attributes -# - mongod user exists and has correct attributes -############################################################ - -# convenience variables for init system and package type -upstart = (os[:name] == 'ubuntu' && os[:release][0..1] == '14') || - (os[:name] == 'amazon') -sysvinit = if (os[:name] == 'debian' && os[:release][0] == '7') || - (os[:name] == 'redhat' && os[:release][0] == '6') || - (os[:name] == 'suse' && os[:release][0..1] == '11') || - (os[:name] == 'ubuntu' && os[:release][0..1] == '12') - true - else - false - end -systemd = !(upstart || sysvinit) -rpm = if os[:name] == 'amazon' || os[:name] == 'redhat' || os[:name] == 'suse' - true - else - false - end -deb = !rpm - -# these files should exist on all systems -%w( - /etc/mongod.conf - /usr/bin/mongod - /var/log/mongodb/mongod.log -).each do |filename| - describe file(filename) do - it { should be_file } - end -end - -if sysvinit - describe file('/etc/init.d/mongod') do - it { should be_file } - it { should be_executable } - end -end - -if systemd - unit_file_prefix = '' - if os[:name] == 'suse' - # Putting systemd unit files in /usr, which may be a separate partition - # and therefore not available during isolated startups, is bad practice. - # But it's what SUSE has chosen to do, so we have to deal with it. - unit_file_prefix = '/usr' - end - describe file("#{unit_file_prefix}/lib/systemd/system/mongod.service") do - it { should be_file } - end -end - -if rpm - %w( - /var/lib/mongo - /var/run/mongodb - ).each do |filename| - describe file(filename) do - it { should be_directory } - end - end - - describe user('mongod') do - it { should exist } - its('groups') { should include 'mongod' } - its('home') { should eq '/var/lib/mongo' } - its('shell') { should eq '/bin/false' } - end -end - -if deb - describe file('/var/lib/mongodb') do - it { should be_directory } - end - - describe user('mongodb') do - it { should exist } - its('groups') { should include 'mongodb' } - # All versions of Debian 10 will use /usr/sbin/nologin for service - # account shells - its('shell') { - if ((os[:name] == 'debian' and os[:release].split('.')[0] >= '10') or - (os[:name] == 'ubuntu' and os[:release] >= '18.04')) - should eq '/usr/sbin/nologin' - else - should eq '/bin/false' - end - } - end -end - -############################################################ -# This section verifies ulimits. -############################################################ - -ulimits = { - 'Max file size' => 'unlimited', - 'Max cpu time' => 'unlimited', - 'Max address space' => 'unlimited', - 'Max open files' => '64000', - 'Max resident set' => 'unlimited', - 'Max processes' => '64000' -} -ulimits_cmd = 'cat /proc/$(pgrep mongod)/limits' - -ulimits.each do |limit, value| - describe command("#{ulimits_cmd} | grep \"#{limit}\"") do - its('stdout') { should match(/#{limit}\s+#{value}/) } - end -end - -############################################################ -# This section verifies uninstall. -############################################################ - -if rpm - describe command('rpm -e $(rpm -qa | grep "mongodb.*server" | awk \'{print $1}\')') do - its('exit_status') { should eq 0 } - end -elsif deb - describe command('dpkg -r $(dpkg -l | grep "mongodb.*server" | awk \'{print $2}\')') do - its('exit_status') { should eq 0 } - end -end - -# make sure we cleaned up -%w( - /lib/systemd/system/mongod.service - /usr/bin/mongod -).each do |filename| - describe file(filename) do - it { should_not exist } - end -end diff --git a/buildscripts/package_test/ubuntu-user-data.sh b/buildscripts/package_test/ubuntu-user-data.sh deleted file mode 100644 index 0475f8391a1..00000000000 --- a/buildscripts/package_test/ubuntu-user-data.sh +++ /dev/null @@ -1,7 +0,0 @@ -#! /bin/bash -echo "HostkeyAlgorithms +ssh-rsa" >> /etc/ssh/sshd_config -echo "PubkeyAcceptedAlgorithms +ssh-rsa" >> /etc/ssh/sshd_config - -systemctl restart sshd - -touch /root/userdata_ran diff --git a/etc/evergreen.yml b/etc/evergreen.yml index ec8835979cc..bb2ebeaa3ff 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -188,9 +188,6 @@ variables: - name: .crypt - name: .publish_crypt - name: unittest_shell_hang_analyzer_gen - - name: test_packages - distros: - - ubuntu2004-package - name: selinux_rhel7_enterprise - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1943,9 +1940,6 @@ buildvariants: - name: sharding_auth_gen - name: snmp - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: selinux_rhel8_enterprise - name: generate_buildid_to_debug_symbols_mapping diff --git a/etc/evergreen_yml_components/definitions.yml b/etc/evergreen_yml_components/definitions.yml index 1675ea1ebc3..9f18d13b03a 100644 --- a/etc/evergreen_yml_components/definitions.yml +++ b/etc/evergreen_yml_components/definitions.yml @@ -6564,26 +6564,6 @@ tasks: - func: "do setup" - func: "run tests" -- name: test_packages - tags: [] - depends_on: - - name: package - commands: - - command: manifest.load - - func: "git get project and add git tag" - - *f_expansions_write - - *kill_processes - - *cleanup_environment - - *set_up_venv - - func: "fetch packages" - - func: "set up remote credentials" - vars: - private_key_file: ~/.ssh/kitchen.pem - private_key_remote: ${kitchen_private_key} - aws_key_remote: ${kitchen_aws_key} - aws_secret_remote: ${kitchen_aws_secret} - - func: "run kitchen" - - name: package tags: [] depends_on: diff --git a/etc/evergreen_yml_components/variants/atlas.yml b/etc/evergreen_yml_components/variants/atlas.yml index 7ab2ee903bd..4d88672b6d1 100644 --- a/etc/evergreen_yml_components/variants/atlas.yml +++ b/etc/evergreen_yml_components/variants/atlas.yml @@ -70,9 +70,6 @@ buildvariants: - name: .crypt - name: .publish_crypt - name: unittest_shell_hang_analyzer_gen - - name: test_packages - distros: - - ubuntu2004-package - name: selinux_rhel7_enterprise - name: .publish - name: generate_buildid_to_debug_symbols_mapping diff --git a/etc/evergreen_yml_components/variants/misc_release.yml b/etc/evergreen_yml_components/variants/misc_release.yml index 213d2987bf5..f47db3ca410 100644 --- a/etc/evergreen_yml_components/variants/misc_release.yml +++ b/etc/evergreen_yml_components/variants/misc_release.yml @@ -48,9 +48,6 @@ buildvariants: - name: .sharding .txns - name: .ssl - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: generate_buildid_to_debug_symbols_mapping - name: enterprise-linux-64-amazon-ami @@ -104,9 +101,6 @@ buildvariants: - name: snmp - name: .stitch - name: .crypt - - name: test_packages - distros: - - ubuntu2004-package - name: generate_buildid_to_debug_symbols_mapping - name: amazon2 @@ -156,9 +150,6 @@ buildvariants: - name: .sharding .txns - name: .ssl - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -214,9 +205,6 @@ buildvariants: - name: .stitch - name: .crypt - name: .publish_crypt - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -262,9 +250,6 @@ buildvariants: - name: .sharding .common !.csrs !.multiversion - name: .ssl - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -382,9 +367,6 @@ buildvariants: - name: server_selection_json_test_TG distros: - amazon2-arm64-large - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -434,9 +416,6 @@ buildvariants: - name: .sharding .common !.csrs - name: .ssl - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -488,9 +467,6 @@ buildvariants: - name: .stitch - name: .crypt - name: .publish_crypt - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -540,9 +516,6 @@ buildvariants: - name: .sharding .common !.csrs - name: .ssl - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -594,9 +567,6 @@ buildvariants: - name: .stitch - name: .crypt - name: .publish_crypt - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -644,9 +614,6 @@ buildvariants: - name: .sharding .common !.csrs - name: .ssl - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: selinux_rhel7_org - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -732,9 +699,6 @@ buildvariants: - name: .sharding .common !.csrs - name: .ssl - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -847,9 +811,6 @@ buildvariants: - name: server_selection_json_test_TG distros: - rhel80-large - - name: test_packages - distros: - - ubuntu2004-package - name: selinux_rhel8_enterprise - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -895,9 +856,6 @@ buildvariants: - name: .sharding .common !.csrs !.multiversion - name: .ssl - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -953,9 +911,6 @@ buildvariants: distros: - rhel82-arm64-large - name: .publish_crypt - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1002,9 +957,6 @@ buildvariants: - name: .sharding .common !.csrs !.multiversion - name: .ssl - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: selinux_rhel9_org - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1079,9 +1031,6 @@ buildvariants: - name: .crypt - name: .publish_crypt - name: unittest_shell_hang_analyzer_gen - - name: test_packages - distros: - - ubuntu2004-package - name: selinux_rhel9_enterprise - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1127,9 +1076,6 @@ buildvariants: - name: .sharding .common !.csrs !.multiversion - name: .ssl - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1185,9 +1131,6 @@ buildvariants: distros: - rhel90-arm64-large - name: .publish_crypt - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1284,9 +1227,6 @@ buildvariants: distros: - suse12-sp5-large - name: .publish_crypt - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1432,9 +1372,6 @@ buildvariants: - name: watchdog_wiredtiger - name: .ssl - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1500,9 +1437,6 @@ buildvariants: - name: sharding_auth_gen - name: snmp - name: .watchdog - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1555,9 +1489,6 @@ buildvariants: - name: .stitch - name: .crypt - name: .publish_crypt - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1589,9 +1520,6 @@ buildvariants: - name: free_monitoring - name: jsCore - name: replica_sets_jscore_passthrough - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1640,9 +1568,6 @@ buildvariants: - name: sharding_jscore_passthrough - name: .ssl - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1691,9 +1616,6 @@ buildvariants: - name: sharding_jscore_passthrough - name: .ssl - name: .stitch - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1745,9 +1667,6 @@ buildvariants: - name: sasl - name: sharding_auth_gen - name: snmp - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1799,9 +1718,6 @@ buildvariants: - name: sasl - name: sharding_auth_gen - name: snmp - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1853,9 +1769,6 @@ buildvariants: - name: .stitch - name: .crypt - name: .publish_crypt - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1886,9 +1799,6 @@ buildvariants: - name: free_monitoring - name: jsCore - name: replica_sets_jscore_passthrough - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1941,9 +1851,6 @@ buildvariants: - name: .stitch - name: .crypt - name: .publish_crypt - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping @@ -1974,9 +1881,6 @@ buildvariants: - name: free_monitoring - name: jsCore - name: replica_sets_jscore_passthrough - - name: test_packages - distros: - - ubuntu2004-package - name: .publish - name: generate_buildid_to_debug_symbols_mapping diff --git a/evergreen/kitchen_run.sh b/evergreen/kitchen_run.sh deleted file mode 100644 index 321e8196e7e..00000000000 --- a/evergreen/kitchen_run.sh +++ /dev/null @@ -1,40 +0,0 @@ -DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" -. "$DIR/prelude.sh" - -cd src/buildscripts/package_test - -set -o errexit - -export KITCHEN_ARTIFACTS_URL="https://s3.amazonaws.com/mciuploads/${project}/${build_variant}/${revision}/artifacts/${build_id}-packages.tgz" -export KITCHEN_SECURITY_GROUP="${kitchen_security_group}" -export KITCHEN_SSH_KEY_ID="${kitchen_ssh_key_id}" -export KITCHEN_SUBNET="${kitchen_subnet}" -export KITCHEN_VPC="${kitchen_vpc}" - -if [ ${packager_distro} == "suse12" ]; then - export KITCHEN_YAML="kitchen.legacy.yml" -fi - -if [[ "${packager_arch}" == "aarch64" || "${packager_arch}" == "arm64" ]]; then - kitchen_packager_distro="${packager_distro}-arm64" -else - kitchen_packager_distro="${packager_distro}-x86-64" -fi - -activate_venv -# set expiration tag 2 hours in the future, since no test should take this long -export KITCHEN_EXPIRE="$($python -c 'import datetime; print((datetime.datetime.utcnow() + datetime.timedelta(hours=2)).strftime("%Y-%m-%d %H:%M:%S"))')" - -for i in {1..3}; do - if ! kitchen verify $kitchen_packager_distro; then - verified="false" - kitchen destroy $kitchen_packager_distro || true - sleep 30 - else - verified="true" - break - fi -done - -kitchen destroy $kitchen_packager_distro || true -test "$verified" = "true" -- cgit v1.2.1