summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-03-06 20:58:12 -0800
committerTim Smith <tsmith84@gmail.com>2020-03-06 20:58:12 -0800
commiteb3ec23aef28924290d004b88dea5f4cc9864c19 (patch)
treebfcb6ad654c4f42185887eb3bf1d1a6681d43fec
parent7e6020c511fd92afef8f714426e52049db3fb133 (diff)
downloadchef-eb3ec23aef28924290d004b88dea5f4cc9864c19.tar.gz
Only run apt-get update when we need to
This shaves 5 seconds off the non-functional / berkshelf times Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--.expeditor/verify.pipeline.yml5
-rwxr-xr-xscripts/bk_tests/bk_container_prep.sh2
2 files changed, 4 insertions, 3 deletions
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml
index 9cd4837af6..9fe1f1898a 100644
--- a/.expeditor/verify.pipeline.yml
+++ b/.expeditor/verify.pipeline.yml
@@ -34,6 +34,7 @@ steps:
- label: "Functional Specs Ubuntu :ruby: 2.6"
commands:
- /workdir/scripts/bk_tests/bk_container_prep.sh
+ - apt-get update -y
- apt-get install -y cron locales # needed for functional tests to pass
- cd /workdir; bundle install --jobs=3 --retry=3 --without omnibus_package docgen ruby_prof
- bundle exec rake spec:functional
@@ -262,10 +263,11 @@ steps:
- FORCE_FFI_YAJL=ext
- CHEF_LICENSE=accept-no-persist
- INTEGRATION_SPECS_27=1
-#
+
- label: "Functional Specs :ruby: 2.7"
commands:
- /workdir/scripts/bk_tests/bk_container_prep.sh
+ - apt-get update -y
- apt-get install -y cron locales net-tools # needed for functional tests to pass
- bundle install --jobs=3 --retry=3 --without omnibus_package docgen
- bundle exec rake spec:functional
@@ -354,6 +356,7 @@ steps:
- label: "Test berkshelf gem :ruby: 2.6"
commands:
- /workdir/scripts/bk_tests/bk_container_prep.sh
+ - apt-get update -y
- apt-get install -y graphviz
- gem install bundler -v 1.17.3 # necessary for berks Gemfile.lock for now
- bundle install --jobs=3 --retry=3 --without omnibus_package docgen
diff --git a/scripts/bk_tests/bk_container_prep.sh b/scripts/bk_tests/bk_container_prep.sh
index 7950a2e098..bb82b6b140 100755
--- a/scripts/bk_tests/bk_container_prep.sh
+++ b/scripts/bk_tests/bk_container_prep.sh
@@ -2,8 +2,6 @@
# make sure we have the network tools in place for various network specs
if [ -f /etc/debian_version ]; then
- echo "--- Update package cache"
- apt-get update -y
touch /etc/network/interfaces
fi