summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-06-25 09:53:55 -0700
committerJohn McCrae <john.mccrae@progress.com>2022-06-25 09:53:55 -0700
commitb84f4f454189a255a62900eab7db3d41cfaf951f (patch)
tree362e956c4bc33249c268a19ee4519cb64d74a69d
parentafb88e6f7852bb673b43f83e63d380d3e6e33a6e (diff)
downloadchef-b84f4f454189a255a62900eab7db3d41cfaf951f.tar.gz
Adding tracing to tease out more details on the failure
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--.expeditor/scripts/verify-plan.ps14
-rw-r--r--habitat/plan.ps112
2 files changed, 15 insertions, 1 deletions
diff --git a/.expeditor/scripts/verify-plan.ps1 b/.expeditor/scripts/verify-plan.ps1
index 614d472964..fbe32583aa 100644
--- a/.expeditor/scripts/verify-plan.ps1
+++ b/.expeditor/scripts/verify-plan.ps1
@@ -12,6 +12,10 @@ $Plan = 'chef-infra-client'
Write-Host "--- :8ball: :windows: Verifying $Plan"
+Write-Hist "--- Adding Debugging Support for Hab"
+[Environment]::SetEnvironmentVariable('RUST_LOG', debug, 'Machine')
+[Environment]::SetEnvironmentVariable('RUST_BACKTRACE', 1, 'Machine')
+
powershell -File "./.expeditor/scripts/ensure-minimum-viable-hab.ps1"
if (-not $?) { throw "Could not ensure the minimum hab version required is installed." }
diff --git a/habitat/plan.ps1 b/habitat/plan.ps1
index e5469d5dd5..55ebeb0be4 100644
--- a/habitat/plan.ps1
+++ b/habitat/plan.ps1
@@ -85,9 +85,13 @@ function Invoke-Build {
Write-BuildLine " ** 'rake install' any gem sourced as a git reference so they'll look like regular gems."
foreach($git_gem in (Get-ChildItem "$env:GEM_HOME/bundler/gems")) {
try {
+
Push-Location $git_gem
Write-BuildLine " -- installing $git_gem"
rake install # this needs to NOT be 'bundle exec'd else bundler complains about dev deps not being installed
+ # jfm line below added for debugging
+ gem install $git_gem
+ # jfm end
if (-not $?) { throw "unable to install $git_gem as a plain old gem" }
} finally {
Pop-Location
@@ -97,7 +101,13 @@ function Invoke-Build {
bundle exec rake install:local # 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:local --trace # this needs to be 'bundle exec'd because a Rakefile makes reference to Bundler
+ bundle exec rake install:local # this needs to be 'bundle exec'd because a Rakefile makes reference to Bundler
+ # jfm code below is for debugging
+ $debug_gems = Get-ChildItem -Path . -Include *.gem
+ foreach($debug_gem in $debug_gems){
+ gem install $debug_gem
+ }
+ # jfm end
if (-not $?) { throw "unable to install the gems that live in directories within this repo" }
}
} finally {