summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneha-p6 <neha.pansare@progress.com>2022-12-20 20:09:19 +0530
committerGitHub <noreply@github.com>2022-12-20 20:09:19 +0530
commitb9a77383d659bfba014cfd920f515a4e6df02819 (patch)
tree7ef030c1be3013abc8ef00a656366aca2b653e42
parentb7845f0ca184c927d143d80f88efcdcadeadbd07 (diff)
parent62dc94fa98489adad135c0757feb570dc045f812 (diff)
downloadchef-b9a77383d659bfba014cfd920f515a4e6df02819.tar.gz
Merge pull request #13411 from chef/neha-p6/INFC-342-fix_windows_plan-gem-install
[Chef-16] Fix chef gem installation failures in windows plan under verify pipeline
-rw-r--r--.github/workflows/kitchen.yml4
-rw-r--r--habitat/plan.ps15
-rw-r--r--spec/functional/assets/yumrepo/repodata/4632d67cb92636e7575d911c24f0e04d3505a944e97c483abe0c3e73a7c62d33-filelists.sqlite.bz2bin1322 -> 0 bytes
-rw-r--r--spec/functional/assets/yumrepo/repodata/74599b793e54d877323837d2d81a1c3c594c44e4335f9528234bb490f7b9b439-other.xml.gzbin502 -> 0 bytes
-rw-r--r--spec/functional/assets/yumrepo/repodata/a845d418f919d2115ab95a56b2c76f6825ad0d0bede49181a55c04f58995d057-primary.sqlite.bz2bin2569 -> 0 bytes
-rw-r--r--spec/functional/assets/yumrepo/repodata/af9b7cf9ef23bd7b43068d74a460f3b5d06753d638e58e4a0c9edc35bfb9cdc4-other.sqlite.bz2bin1115 -> 0 bytes
-rw-r--r--spec/functional/assets/yumrepo/repodata/bdb4f5f1492a3b9532f22c43110a81500dd744f23da0aec5c33b2a41317c737d-filelists.xml.gzbin529 -> 0 bytes
-rw-r--r--spec/functional/assets/yumrepo/repodata/c10d1d34ce99e02f12ec96ef68360543ab1bb7c3cb81a4a2bf78df7d8597e9df-primary.xml.gzbin966 -> 0 bytes
8 files changed, 4 insertions, 5 deletions
diff --git a/.github/workflows/kitchen.yml b/.github/workflows/kitchen.yml
index 6a7d3f31a9..18de552990 100644
--- a/.github/workflows/kitchen.yml
+++ b/.github/workflows/kitchen.yml
@@ -19,7 +19,7 @@ jobs:
- name: 'Install Chef/Ohai from Omnitruck'
id: install_chef
run: |
- . { Invoke-WebRequest -useb https://omnitruck.chef.io/install.ps1 } | Invoke-Expression; Install-Project -project chef -channel current -v 16
+ . { Invoke-WebRequest -useb https://omnitruck.chef.io/install.ps1 } | Invoke-Expression; Install-Project -project chef -channel stable -v 16
$env:PATH = "C:\opscode\chef\bin;C:\opscode\chef\embedded\bin;" + $env:PATH
chef-client -v
ohai -v
@@ -64,7 +64,7 @@ jobs:
id: install_chef
run: |
brew install coreutils
- curl -L https://omnitruck.chef.io/install.sh | sudo bash -s -- -c current -v 16
+ curl -L https://omnitruck.chef.io/install.sh | sudo bash -s -- -c stable -v 16
/opt/chef/bin/chef-client -v
/opt/chef/bin/ohai -v
/opt/chef/embedded/bin/rake --version
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1
index 8269e436a5..88edb3ac72 100644
--- a/habitat/plan.ps1
+++ b/habitat/plan.ps1
@@ -61,7 +61,6 @@ function Invoke-Prepare {
try {
Push-Location "${HAB_CACHE_SRC_PATH}/${pkg_dirname}"
-
Write-BuildLine " ** Configuring bundler for this build environment"
bundle config --local without server docgen maintenance pry travis integration ci chefstyle
if (-not $?) { throw "unable to configure bundler to restrict gems to be installed" }
@@ -94,10 +93,10 @@ function Invoke-Build {
}
}
Write-BuildLine " ** Running the chef project's 'rake install' to install the path-based gems so they look like any other installed gem."
- bundle exec rake install # this needs to be 'bundle exec'd because a Rakefile makes reference to Bundler
+ bundle exec rake install --trace=stdout # this needs to be 'bundle exec'd because a Rakefile makes reference to Bundler
if (-not $?) {
Write-Warning " -- That didn't work. Let's try again."
- bundle exec rake install # this needs to be 'bundle exec'd because a Rakefile makes reference to Bundler
+ bundle exec rake install --trace=stdout # this needs to be 'bundle exec'd because a Rakefile makes reference to Bundler
if (-not $?) { throw "unable to install the gems that live in directories within this repo" }
}
} finally {
diff --git a/spec/functional/assets/yumrepo/repodata/4632d67cb92636e7575d911c24f0e04d3505a944e97c483abe0c3e73a7c62d33-filelists.sqlite.bz2 b/spec/functional/assets/yumrepo/repodata/4632d67cb92636e7575d911c24f0e04d3505a944e97c483abe0c3e73a7c62d33-filelists.sqlite.bz2
deleted file mode 100644
index 3c5e406935..0000000000
--- a/spec/functional/assets/yumrepo/repodata/4632d67cb92636e7575d911c24f0e04d3505a944e97c483abe0c3e73a7c62d33-filelists.sqlite.bz2
+++ /dev/null
Binary files differ
diff --git a/spec/functional/assets/yumrepo/repodata/74599b793e54d877323837d2d81a1c3c594c44e4335f9528234bb490f7b9b439-other.xml.gz b/spec/functional/assets/yumrepo/repodata/74599b793e54d877323837d2d81a1c3c594c44e4335f9528234bb490f7b9b439-other.xml.gz
deleted file mode 100644
index ddccd353ae..0000000000
--- a/spec/functional/assets/yumrepo/repodata/74599b793e54d877323837d2d81a1c3c594c44e4335f9528234bb490f7b9b439-other.xml.gz
+++ /dev/null
Binary files differ
diff --git a/spec/functional/assets/yumrepo/repodata/a845d418f919d2115ab95a56b2c76f6825ad0d0bede49181a55c04f58995d057-primary.sqlite.bz2 b/spec/functional/assets/yumrepo/repodata/a845d418f919d2115ab95a56b2c76f6825ad0d0bede49181a55c04f58995d057-primary.sqlite.bz2
deleted file mode 100644
index 50bbe1f37f..0000000000
--- a/spec/functional/assets/yumrepo/repodata/a845d418f919d2115ab95a56b2c76f6825ad0d0bede49181a55c04f58995d057-primary.sqlite.bz2
+++ /dev/null
Binary files differ
diff --git a/spec/functional/assets/yumrepo/repodata/af9b7cf9ef23bd7b43068d74a460f3b5d06753d638e58e4a0c9edc35bfb9cdc4-other.sqlite.bz2 b/spec/functional/assets/yumrepo/repodata/af9b7cf9ef23bd7b43068d74a460f3b5d06753d638e58e4a0c9edc35bfb9cdc4-other.sqlite.bz2
deleted file mode 100644
index e341e1df69..0000000000
--- a/spec/functional/assets/yumrepo/repodata/af9b7cf9ef23bd7b43068d74a460f3b5d06753d638e58e4a0c9edc35bfb9cdc4-other.sqlite.bz2
+++ /dev/null
Binary files differ
diff --git a/spec/functional/assets/yumrepo/repodata/bdb4f5f1492a3b9532f22c43110a81500dd744f23da0aec5c33b2a41317c737d-filelists.xml.gz b/spec/functional/assets/yumrepo/repodata/bdb4f5f1492a3b9532f22c43110a81500dd744f23da0aec5c33b2a41317c737d-filelists.xml.gz
deleted file mode 100644
index 9636d5b868..0000000000
--- a/spec/functional/assets/yumrepo/repodata/bdb4f5f1492a3b9532f22c43110a81500dd744f23da0aec5c33b2a41317c737d-filelists.xml.gz
+++ /dev/null
Binary files differ
diff --git a/spec/functional/assets/yumrepo/repodata/c10d1d34ce99e02f12ec96ef68360543ab1bb7c3cb81a4a2bf78df7d8597e9df-primary.xml.gz b/spec/functional/assets/yumrepo/repodata/c10d1d34ce99e02f12ec96ef68360543ab1bb7c3cb81a4a2bf78df7d8597e9df-primary.xml.gz
deleted file mode 100644
index afa4b4db9a..0000000000
--- a/spec/functional/assets/yumrepo/repodata/c10d1d34ce99e02f12ec96ef68360543ab1bb7c3cb81a4a2bf78df7d8597e9df-primary.xml.gz
+++ /dev/null
Binary files differ