summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormwrock <matt@mattwrock.com>2020-08-21 11:29:32 -0700
committermwrock <matt@mattwrock.com>2020-08-21 11:29:32 -0700
commitb2b071c13b3fcdd02a77ca60cfeaf8bc56f86b69 (patch)
treebd8b8147e3a40ade743f0b420add98721e4e9b97
parent529a36c63ca8fdc1d58b02b4faa86a4e89e5b738 (diff)
downloadchef-b2b071c13b3fcdd02a77ca60cfeaf8bc56f86b69.tar.gz
final check unifying tests
Signed-off-by: mwrock <matt@mattwrock.com>
-rw-r--r--.expeditor/release.omnibus.yml98
-rw-r--r--omnibus/omnibus-test.ps125
2 files changed, 72 insertions, 51 deletions
diff --git a/.expeditor/release.omnibus.yml b/.expeditor/release.omnibus.yml
index e261b0c48a..6c08253b49 100644
--- a/.expeditor/release.omnibus.yml
+++ b/.expeditor/release.omnibus.yml
@@ -7,55 +7,55 @@ fips-platforms:
- el-*-x86_64
- windows-*
builder-to-testers-map:
- aix-7.1-powerpc:
- - aix-7.1-powerpc
- - aix-7.2-powerpc
- debian-9-x86_64:
- - debian-9-x86_64
- - debian-10-x86_64
- debian-10-aarch64:
- - debian-10-aarch64
- el-6-i686:
- - el-6-i686
- el-6-x86_64:
- - el-6-x86_64
- el-7-aarch64:
- - el-7-aarch64
- - el-8-aarch64
- - amazon-2-aarch64
- el-7-ppc64:
- - el-7-ppc64
- el-7-ppc64le:
- - el-7-ppc64le
- el-7-x86_64:
- - el-7-x86_64
- - el-8-x86_64
- - amazon-2-x86_64
- freebsd-11-amd64:
- - freebsd-11-amd64
- - freebsd-12-amd64
- mac_os_x-10.13-x86_64:
- - mac_os_x-10.13-x86_64
- - mac_os_x-10.14-x86_64
- - mac_os_x-10.15-x86_64
- sles-12-x86_64:
- - sles-12-x86_64
- - sles-15-x86_64
- sles-15-aarch64:
- - sles-15-aarch64
-# solaris2-5.11-i386:
-# - solaris2-5.11-i386
-# solaris2-5.11-sparc:
-# - solaris2-5.11-sparc
- ubuntu-18.04-aarch64:
- - ubuntu-18.04-aarch64
- - ubuntu-20.04-aarch64
- ubuntu-16.04-x86_64:
- - ubuntu-16.04-x86_64
- - ubuntu-18.04-x86_64
- - ubuntu-20.04-x86_64
-# windows-2012r2-i386:
-# - windows-2012r2-i386
+# aix-7.1-powerpc:
+# - aix-7.1-powerpc
+# - aix-7.2-powerpc
+# debian-9-x86_64:
+# - debian-9-x86_64
+# - debian-10-x86_64
+# debian-10-aarch64:
+# - debian-10-aarch64
+# el-6-i686:
+# - el-6-i686
+# el-6-x86_64:
+# - el-6-x86_64
+# el-7-aarch64:
+# - el-7-aarch64
+# - el-8-aarch64
+# - amazon-2-aarch64
+# el-7-ppc64:
+# - el-7-ppc64
+# el-7-ppc64le:
+# - el-7-ppc64le
+# el-7-x86_64:
+# - el-7-x86_64
+# - el-8-x86_64
+# - amazon-2-x86_64
+# freebsd-11-amd64:
+# - freebsd-11-amd64
+# - freebsd-12-amd64
+# mac_os_x-10.13-x86_64:
+# - mac_os_x-10.13-x86_64
+# - mac_os_x-10.14-x86_64
+# - mac_os_x-10.15-x86_64
+# sles-12-x86_64:
+# - sles-12-x86_64
+# - sles-15-x86_64
+# sles-15-aarch64:
+# - sles-15-aarch64
+# # solaris2-5.11-i386:
+# # - solaris2-5.11-i386
+# # solaris2-5.11-sparc:
+# # - solaris2-5.11-sparc
+# ubuntu-18.04-aarch64:
+# - ubuntu-18.04-aarch64
+# - ubuntu-20.04-aarch64
+# ubuntu-16.04-x86_64:
+# - ubuntu-16.04-x86_64
+# - ubuntu-18.04-x86_64
+# - ubuntu-20.04-x86_64
+ windows-2012r2-i386:
+ - windows-2012r2-i386
windows-2012r2-x86_64:
- windows-2012-x86_64
- windows-2012r2-x86_64
diff --git a/omnibus/omnibus-test.ps1 b/omnibus/omnibus-test.ps1
index 5240d8e6e3..6cbe4664a5 100644
--- a/omnibus/omnibus-test.ps1
+++ b/omnibus/omnibus-test.ps1
@@ -94,5 +94,26 @@ winrm quickconfig -quiet
bundle
If ($lastexitcode -ne 0) { Exit $lastexitcode }
-bundle exec rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f progress --profile --tag ~choco_installed
-If ($lastexitcode -ne 0) { Exit $lastexitcode }
+# buildkite changes the casing of the Path variable to PATH
+# It is not clear how or where that happens, but it breaks the choco
+# tests. Removing the PATH and resetting it with the expected casing
+$p = $env:PATH
+$env:PATH = $null
+$env:Path = $p
+
+# Running the specs separately fixes an edgecase on 2012R2-i386 where the desktop heap's
+# allocated limit is hit and any test's attempt to create a new process is met with
+# exit code -1073741502 (STATUS_DLL_INIT_FAILED). after much research and troubleshooting,
+# desktop heap exhaustion seems likely (https://docs.microsoft.com/en-us/archive/blogs/ntdebugging/desktop-heap-overview)
+$exit = 0
+
+# bundle exec rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f progress --profile ./spec/unit
+# If ($lastexitcode -ne 0) { $exit = 1 }
+
+# bundle exec rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f progress --profile ./spec/functional
+# If ($lastexitcode -ne 0) { $exit = 1 }
+
+bundle exec rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f progress --profile
+If ($lastexitcode -ne 0) { $exit = 1 }
+
+Exit $exit