diff options
author | Lamont Granquist <454857+lamont-granquist@users.noreply.github.com> | 2021-12-09 17:52:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 17:52:50 -0800 |
commit | d9030eadad7802c42acf4483653b1297b0f1e026 (patch) | |
tree | f5b7d1676bfde3c3a1e68a9fc6585cbe3038ea76 | |
parent | 3317694c36b489e4ce4a47be26bd84f19358a6c1 (diff) | |
parent | 6af557f3de72e9568642a754983fa9b5c8a4f5da (diff) | |
download | chef-d9030eadad7802c42acf4483653b1297b0f1e026.tar.gz |
Merge pull request #12352 from chef/lcg/testing5
-rw-r--r-- | .github/workflows/kitchen.yml | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/.github/workflows/kitchen.yml b/.github/workflows/kitchen.yml index d32762a1d7..705b6ac1dc 100644 --- a/.github/workflows/kitchen.yml +++ b/.github/workflows/kitchen.yml @@ -31,26 +31,29 @@ jobs: $env:PATH = "C:\opscode\chef\bin;C:\opscode\chef\embedded\bin;" + $env:PATH $env:OHAI_VERSION = ( Select-String -Path .\Gemfile.lock -Pattern '(?<=ohai \()\d.*(?=\))' | ForEach-Object { $_.Matches[0].Value } ) gem install appbundler appbundle-updater --no-doc + If ($lastexitcode -ne 0) { Exit $lastexitcode } appbundle-updater chef chef $env:GITHUB_SHA --tarball --github $env:GITHUB_REPOSITORY + If ($lastexitcode -ne 0) { Exit $lastexitcode } Write-Output "Installed Chef / Ohai release:" chef-client -v + If ($lastexitcode -ne 0) { Exit $lastexitcode } ohai -v + If ($lastexitcode -ne 0) { Exit $lastexitcode } - name: 'Run end_to_end::default recipe' id: run run: | cd kitchen-tests $env:PATH = "C:\opscode\chef\bin;C:\opscode\chef\embedded\bin;" + $env:PATH - bundle config set --local without 'omnibus_package' - bundle config set --local path 'vendor/bundle' bundle install --jobs=3 --retry=3 + # If ($lastexitcode -ne 0) { Exit $lastexitcode } + # The bundle install command above fails because our build on windows on ruby-3.0 is + # completely broken when it comes to installing native gems. Until that is fixed we + # need to ignore that error code and to manually install berkshelf below. This is a + # very bad hack. 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" + If ($lastexitcode -ne 0) { Exit $lastexitcode } berks vendor cookbooks - # restore the default warning level - $env:RUBYOPT="-W1" + If ($lastexitcode -ne 0) { Exit $lastexitcode } chef-client -z -o end_to_end --chef-license accept-no-persist macos: |