Skip to content

Commit 465e853

Browse files
Merge pull request #394 from puppetlabs/CAT-2281-Remove_puppet_7_test_infrastructure
(CAT-2281) Remove puppet 7 infrastructure
2 parents e7ddfa2 + 3b4524d commit 465e853

File tree

21 files changed

+43
-38
lines changed

21 files changed

+43
-38
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
ruby_version:
22-
- '2.7'
2322
- '3.2'
2423
runs_on:
2524
- 'ubuntu-latest'
@@ -38,11 +37,8 @@ jobs:
3837
fail-fast: false
3938
matrix:
4039
ruby_version:
41-
- '2.7'
4240
- '3.2'
4341
include:
44-
- ruby_version: '2.7'
45-
puppet_version: '~> 7.0'
4642
- ruby_version: '3.2'
4743
puppet_version: '~> 8.0'
4844
runs_on:
@@ -63,7 +59,6 @@ jobs:
6359
fail-fast: false
6460
matrix:
6561
ruby_version:
66-
- '2.7'
6762
- '3.2'
6863
name: "Build Editor Service (Ruby ${{ matrix.ruby_version }})"
6964
runs-on: ubuntu-latest

.github/workflows/create-test-matrix.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $OSList =@('ubuntu-20.04', 'windows-2019')
1010
# - https://github.com/puppetlabs/puppet/pull/8577#issuecomment-823820255
1111
# - https://www.msys2.org/news/#2021-01-31-aslr-enabled-by-default
1212
$RubyPuppet = @(
13-
@{ ruby = '2.7'; puppet_gem_version = '~> 7.0' }
13+
@{ ruby = '3.1'; puppet_gem_version = '~> 8.0' }
1414
)
1515

1616
$OSList | ForEach-Object {

.github/workflows/nightly.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
ruby_version:
15-
- '2.7'
1615
- '3.2'
1716
runs_on:
1817
- 'ubuntu-latest'
@@ -31,11 +30,8 @@ jobs:
3130
fail-fast: false
3231
matrix:
3332
ruby_version:
34-
- '2.7'
3533
- '3.2'
3634
include:
37-
- ruby_version: '2.7'
38-
puppet_version: '~> 7.0'
3935
- ruby_version: '3.2'
4036
puppet_version: '~> 8.0'
4137
runs_on:
@@ -56,7 +52,6 @@ jobs:
5652
fail-fast: false
5753
matrix:
5854
ruby_version:
59-
- '2.7'
6055
- '3.2'
6156
name: "Build Editor Service (Ruby ${{ matrix.ruby_version }})"
6257
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: "Setup ruby"
2828
uses: "ruby/setup-ruby@v1"
2929
with:
30-
ruby-version: "2.7"
30+
ruby-version: "3.1"
3131
bundler-cache: "true"
3232

3333
- name: "Bundle environment"

.github/workflows/release_prep.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: "setup ruby"
3131
uses: "ruby/setup-ruby@v1"
3232
with:
33-
ruby-version: "2.7"
33+
ruby-version: "3.1"
3434
bundler-cache: "true"
3535

3636
- name: "bundle environment"

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ AllCops:
1616
- Rakefile
1717
NewCops: enable
1818
SuggestExtensions: false
19-
TargetRubyVersion: '2.7'
19+
TargetRubyVersion: '3.1'
2020
# Disabled
2121
Style/ClassAndModuleChildren:
2222
Enabled: false

.rubocop_todo.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2024-04-24 11:01:50 UTC using RuboCop version 1.50.2.
3+
# on 2025-04-09 15:40:01 UTC using RuboCop version 1.64.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -78,6 +78,7 @@ Metrics/PerceivedComplexity:
7878
Max: 32
7979

8080
# Offense count: 2
81+
# This cop supports unsafe autocorrection (--autocorrect-all).
8182
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
8283
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
8384
Naming/MemoizedInstanceVariableName:
@@ -119,6 +120,20 @@ Style/HashEachMethods:
119120
- 'lib/puppet-languageserver-sidecar/puppet_strings_helper.rb'
120121
- 'lib/puppet-languageserver/manifest/folding_provider.rb'
121122

123+
# Offense count: 1
124+
# This cop supports unsafe autocorrection (--autocorrect-all).
125+
Style/HashExcept:
126+
Exclude:
127+
- 'lib/puppet-languageserver/puppet_lexer_helper.rb'
128+
129+
# Offense count: 1
130+
# This cop supports unsafe autocorrection (--autocorrect-all).
131+
# Configuration parameters: EnforcedStyle.
132+
# SupportedStyles: literals, strict
133+
Style/MutableConstant:
134+
Exclude:
135+
- 'lib/puppet_editor_services/protocol/json_rpc.rb'
136+
122137
# Offense count: 7
123138
# This cop supports unsafe autocorrection (--autocorrect-all).
124139
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ A ruby based implementation of a [Language Server](https://github.com/Microsoft/
88

99
## Requirements
1010

11-
* Puppet 7 or above
11+
* Puppet 8 or above
1212

13-
* Ruby 2.7 or above
13+
* Ruby 3.1 or above
1414

1515
## Setting up editor services for development
1616

17-
* Ensure a modern ruby is installed (2.7+)
17+
* Ensure a modern ruby is installed (3.1+)
1818

19-
The editor services support Puppet 7.0.0 and above
19+
The editor services support Puppet 8.0.0 and above
2020

2121
* Clone this repository
2222

lib/puppet-debugserver/debug_session/hook_handlers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def process_breakpoint_hook(reason, args)
273273
break_description,
274274
pops_target: pops_target_object,
275275
scope: scope_object,
276-
pops_depth_level: pops_depth_level,
276+
pops_depth_level:,
277277
puppet_stacktrace: stack_trace
278278
)
279279
end

lib/puppet-debugserver/debug_session/puppet_session_run_mode.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def next!(pops_depth_level)
3838
@run_mode_mutex.synchronize do
3939
@mode = :next
4040
@options = {
41-
pops_depth_level: pops_depth_level
41+
pops_depth_level:
4242
}
4343
end
4444
end
@@ -57,7 +57,7 @@ def step_out!(pops_depth_level)
5757
@run_mode_mutex.synchronize do
5858
@mode = :stepout
5959
@options = {
60-
pops_depth_level: pops_depth_level
60+
pops_depth_level:
6161
}
6262
end
6363
end

0 commit comments

Comments
 (0)