From 1b4cfdf9c213f5568795a34dbd77acfceb3ebe30 Mon Sep 17 00:00:00 2001 From: mwrock Date: Fri, 4 Sep 2020 19:02:00 -0700 Subject: add a comment about the ruby warning level suppression Signed-off-by: mwrock --- azure-pipelines.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 78cfdef9f0..d5e77904f7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -82,8 +82,12 @@ jobs: bundle config set without 'omnibus_package docgen ruby_prof' bundle install --jobs=3 --retry=3 --path=vendor/bundle gem install berkshelf --no-doc + # berks emits a ruby warning when it loads net/http due to a previously + # defined constant. Even though it is just a warning, powershell immediately + # exits 1. I'm not sure why but this just suppresses the warnings. $env:RUBYOPT="-W0" berks vendor cookbooks + # restore the default warning level $env:RUBYOPT="-W1" chef-client -z -o end_to_end --chef-license accept-no-persist displayName: 'Run end_to_end::default recipe' -- cgit v1.2.1