summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn <john.mccrae@progress.com>2022-12-13 15:10:21 -0800
committerJohn <john.mccrae@progress.com>2022-12-14 18:42:06 +0000
commit6e0f84d075fd3c3aa9f47a756c00cb72ae636bc3 (patch)
tree6c5d965a9808126c7a83d5f52eff9a0f72942387
parent2c70e9a924efe1e165061f4b8791bb1cc48e8006 (diff)
downloadchef-6e0f84d075fd3c3aa9f47a756c00cb72ae636bc3.tar.gz
Added a hard link to the correct version of the rest-client to use to get past the OpenSSL error.
Signed-off-by: John <john.mccrae@progress.com>
-rw-r--r--.expeditor/config.yml3
-rw-r--r--.github/workflows/kitchen.yml4
-rw-r--r--Gemfile3
-rw-r--r--Gemfile.lock76
-rw-r--r--omnibus/omnibus-test.ps135
5 files changed, 90 insertions, 31 deletions
diff --git a/.expeditor/config.yml b/.expeditor/config.yml
index 64df31b590..246ed5cb2b 100644
--- a/.expeditor/config.yml
+++ b/.expeditor/config.yml
@@ -39,6 +39,7 @@ pipelines:
definition: .expeditor/release.omnibus.yml
env:
- ADHOC: true
+ - IGNORE_CACHE: true
github:
# This deletes the GitHub PR branch after successfully merged into the release branch
@@ -237,6 +238,6 @@ subscriptions:
- workload: ruby_gem_published:fauxhai-ng-*
actions:
- bash:.expeditor/update_dep.sh
- - workload: schedule_triggered:chef/chef:chef-16:nightly_build_chef_16:*
+ - workload: schedule_triggered:chef/chef:chef-16:nightly_build_chef_16:*
actions:
- trigger_pipeline:omnibus/adhoc \ No newline at end of file
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/Gemfile b/Gemfile
index 3248348965..187a2e54de 100644
--- a/Gemfile
+++ b/Gemfile
@@ -3,6 +3,9 @@ source "https://rubygems.org"
# 1.15+ is required for M1 mac builds
gem "ffi", ">=1.15"
+# Nwed to file a bug with rest-client. In the meantime, we can use this until they accept the update.
+gem "rest-client", git: "https://github.com/chef/rest-client", branch: "jfm/ucrt_update1"
+
# Note we do not use the gemspec DSL which restricts to the
# gemspec for the current platform and filters out other platforms
# during a bundle lock operation. We actually want dependencies from
diff --git a/Gemfile.lock b/Gemfile.lock
index 6fc8939001..025b8037d4 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -17,6 +17,23 @@ GIT
train-core
wmi-lite (~> 1.0)
+GIT
+ remote: https://github.com/chef/rest-client
+ revision: badd0bea3c31a2ed1f49590760d2e4b665ecbce3
+ branch: jfm/ucrt_update1
+ specs:
+ rest-client (2.1.0)
+ http-accept (>= 1.7.0, < 2.0)
+ http-cookie (>= 1.0.2, < 2.0)
+ mime-types (>= 1.16, < 4.0)
+ netrc (~> 0.8)
+ rest-client (2.1.0-x64-mingw32)
+ ffi (~> 1.15)
+ http-accept (>= 1.7.0, < 2.0)
+ http-cookie (>= 1.0.2, < 2.0)
+ mime-types (>= 1.16, < 4.0)
+ netrc (~> 0.8)
+
PATH
remote: .
specs:
@@ -132,8 +149,8 @@ PATH
GEM
remote: https://rubygems.org/
specs:
- addressable (2.8.0)
- public_suffix (>= 2.0.2, < 5.0)
+ addressable (2.8.1)
+ public_suffix (>= 2.0.2, < 6.0)
appbundler (0.13.4)
mixlib-cli (>= 1.4, < 3.0)
mixlib-shellout (>= 2.0, < 4.0)
@@ -170,6 +187,8 @@ GEM
rexml
debug_inspector (1.1.0)
diff-lcs (1.3)
+ domain_name (0.5.20190701)
+ unf (>= 0.0.5, < 1.0.0)
ed25519 (1.3.0)
erubi (1.11.0)
erubis (2.7.0)
@@ -208,6 +227,9 @@ GEM
hashdiff (1.0.1)
hashie (4.1.0)
highline (2.0.3)
+ http-accept (1.7.0)
+ http-cookie (1.0.5)
+ domain_name (~> 0.5)
httpclient (2.8.3)
iniparse (1.5.0)
inspec-core (4.56.20)
@@ -237,7 +259,7 @@ GEM
inspec-core (= 4.56.20)
ipaddress (0.8.3)
iso8601 (0.13.0)
- json (2.6.1)
+ json (2.6.3)
libyajl2 (2.1.0)
license-acceptance (2.1.13)
pastel (~> 0.7)
@@ -249,13 +271,16 @@ GEM
little-plugger (~> 1.1)
multi_json (~> 1.14)
method_source (1.0.0)
+ mime-types (3.4.1)
+ mime-types-data (~> 3.2015)
+ mime-types-data (3.2022.0105)
mixlib-archive (1.1.7)
mixlib-log
mixlib-archive (1.1.7-universal-mingw32)
mixlib-log
mixlib-authentication (3.0.10)
mixlib-cli (2.1.8)
- mixlib-config (3.0.9)
+ mixlib-config (3.0.27)
tomlrb
mixlib-log (3.0.9)
mixlib-shellout (3.2.7)
@@ -266,9 +291,9 @@ GEM
win32-process (~> 0.9)
wmi-lite (~> 1.0)
multi_json (1.15.0)
- multipart-post (2.1.1)
- net-scp (3.0.0)
- net-ssh (>= 2.6.5, < 7.0.0)
+ multipart-post (2.2.3)
+ net-scp (4.0.0)
+ net-ssh (>= 2.6.5, < 8.0.0)
net-sftp (3.0.0)
net-ssh (>= 5.0.0, < 7.0.0)
net-ssh (6.1.0)
@@ -277,9 +302,10 @@ GEM
net-ssh-multi (1.2.1)
net-ssh (>= 2.6.5)
net-ssh-gateway (>= 1.2.0)
+ netrc (0.11.0)
nori (2.6.0)
parallel (1.22.1)
- parser (3.1.2.0)
+ parser (3.1.3.0)
ast (~> 2.4.1)
parslet (1.8.2)
pastel (0.8.0)
@@ -289,18 +315,18 @@ GEM
pry (0.13.0)
coderay (~> 1.1)
method_source (~> 1.0)
- pry-byebug (3.9.0)
+ pry-byebug (3.10.1)
byebug (~> 11.0)
- pry (~> 0.13.0)
+ pry (>= 0.13, < 0.15)
pry-stack_explorer (0.6.1)
binding_of_caller (~> 1.0)
pry (~> 0.13)
- public_suffix (4.0.7)
- rack (2.2.3)
+ public_suffix (5.0.1)
+ rack (2.2.4)
rainbow (3.1.1)
rake (13.0.6)
rb-readline (0.5.5)
- regexp_parser (2.3.1)
+ regexp_parser (2.6.1)
rexml (3.2.5)
rspec (3.11.0)
rspec-core (~> 3.11.0)
@@ -308,16 +334,16 @@ GEM
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
- rspec-expectations (3.11.0)
+ rspec-expectations (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-its (1.3.0)
rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0)
- rspec-mocks (3.11.1)
+ rspec-mocks (3.11.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
- rspec-support (3.11.0)
+ rspec-support (3.11.1)
rubocop (1.7.0)
parallel (~> 1.10)
parser (>= 2.7.1.5)
@@ -327,7 +353,7 @@ GEM
rubocop-ast (>= 1.2.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
- rubocop-ast (1.17.0)
+ rubocop-ast (1.24.0)
parser (>= 3.1.1.0)
ruby-prof (1.2.0)
ruby-progressbar (1.11.0)
@@ -335,7 +361,7 @@ GEM
ruby2_keywords (0.0.5)
rubyntlm (0.6.3)
rubyzip (2.3.2)
- semverse (3.0.0)
+ semverse (3.0.2)
sslshake (1.3.1)
strings (0.2.1)
strings-ansi (~> 0.2)
@@ -346,13 +372,13 @@ GEM
syslog-logger (1.6.8)
thor (1.2.1)
tomlrb (1.3.0)
- train-core (3.9.2)
+ train-core (3.10.7)
addressable (~> 2.5)
ffi (!= 1.13.0)
json (>= 1.8, < 3.0)
mixlib-shellout (>= 2.0, < 4.0)
- net-scp (>= 1.2, < 4.0)
- net-ssh (>= 2.9, < 7.0)
+ net-scp (>= 1.2, < 5.0)
+ net-ssh (>= 2.9, < 8.0)
train-winrm (0.2.13)
winrm (>= 2.3.6, < 3.0)
winrm-elevated (~> 1.2.2)
@@ -375,10 +401,15 @@ GEM
pastel (~> 0.8)
strings (~> 0.2.0)
tty-screen (~> 0.8)
+ unf (0.1.4)
+ unf_ext
+ unf_ext (0.0.8.2)
+ unf_ext (0.0.8.2-x64-mingw32)
+ unf_ext (0.0.8.2-x86-mingw32)
unicode-display_width (1.8.0)
unicode_utils (1.4.0)
uuidtools (2.2.0)
- webmock (3.14.0)
+ webmock (3.18.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
@@ -451,6 +482,7 @@ DEPENDENCIES
pry-stack_explorer
rake
rb-readline
+ rest-client!
rspec
ruby-prof (< 1.3.0)
ruby-shadow
diff --git a/omnibus/omnibus-test.ps1 b/omnibus/omnibus-test.ps1
index 9cb2314876..e7c35cf8f9 100644
--- a/omnibus/omnibus-test.ps1
+++ b/omnibus/omnibus-test.ps1
@@ -1,14 +1,37 @@
# Stop script execution when a non-terminating error occurs
$ErrorActionPreference = "Stop"
-# install chocolatey
-Set-ExecutionPolicy Bypass -Scope Process -Force
-[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
-iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
+# install choco as necessary
+function installChoco {
+
+ if (!(Test-Path "$($env:ProgramData)\chocolatey\choco.exe")) {
+ Write-Output "Chocolatey is not installed, proceeding to install"
+ try {
+ write-output "installing in 3..2..1.."
+ Set-ExecutionPolicy Bypass -Scope Process -Force
+ [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
+ iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
+ }
+
+ catch {
+ Write-Error $_.Exception.Message
+ }
+ }
+ else {
+ Write-Output "Chocolatey is already installed"
+ }
+}
+
+installChoco
# install powershell core
-Invoke-WebRequest "https://github.com/PowerShell/PowerShell/releases/download/v7.0.3/PowerShell-7.0.3-win-x64.msi" -UseBasicParsing -OutFile powershell.msi
-Start-Process msiexec.exe -Wait -ArgumentList "/package PowerShell.msi /quiet"
+if ($PSVersionTable.PSVersion.Major -lt 7) {
+ $TLS12Protocol = [System.Net.SecurityProtocolType] 'Ssl3 , Tls12'
+ [System.Net.ServicePointManager]::SecurityProtocol = $TLS12Protocol
+ Invoke-WebRequest "https://github.com/PowerShell/PowerShell/releases/download/v7.3.0/PowerShell-7.3.0-win-x64.msi" -UseBasicParsing -OutFile powershell.msi
+ Start-Process msiexec.exe -Wait -ArgumentList "/package PowerShell.msi /quiet"
+}
+
$env:path += ";C:\Program Files\PowerShell\7"
# We don't want to add the embedded bin dir to the main PATH as this