Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(maint) Test bolt against ruby 3.2 #3191

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bolt_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bolt_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_transport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/local_transport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/modules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -39,7 +39,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
env:
BOLT_WINDOWS: true
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/orch_transport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ssh_transport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
env:
WINDOWS_AGENTS: true
steps:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
env:
BOLT_WINDOWS: true
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/winrm_transport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
ruby: [2.7, 3.1]
ruby: [2.7, 3.2]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ end
# Optional paint gem for rainbow outputter
gem "paint", "~> 2.2"

gem "orchestrator_client", git: "https://github.com/donoghuc/orchestrator_client-ruby.git", branch: "ruby-3.2"
gem "rubyntlm", git: "https://github.com/larskanis/rubyntlm.git", branch: "openssl-3-legacy"
gem "puppet", git: "https://github.com/puppetlabs/puppet.git", branch: 'main'

group(:test) do
gem "beaker-hostgenerator"
gem "mocha", '~> 1.4.0'
Expand Down
2 changes: 1 addition & 1 deletion bolt.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "jwt", "~> 2.2"
spec.add_dependency "logging", "~> 2.2"
spec.add_dependency "minitar", "~> 0.6"
spec.add_dependency "net-scp", "~> 1.2"
spec.add_dependency "net-scp", "~> 4.0"
spec.add_dependency "net-ssh", ">= 4.0", "< 8.0"
spec.add_dependency "net-ssh-krb", "~> 0.5"
spec.add_dependency "orchestrator_client", "~> 0.5"
Expand Down
2 changes: 1 addition & 1 deletion lib/bolt/transport/winrm/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def connect
)
rescue StandardError => e
raise Bolt::Node::ConnectError.new(
"Failed to connect to #{endpoint}: #{e.message}",
"Failed to connect to #{endpoint}: #{e.message} #{e.backtrace}",
'CONNECT_ERROR'
)
end
Expand Down