simp-rake-helpers 5.19.0 → 5.20.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 712ebbbef14960ebc9864f75b77caf59b8729b7693a367e64ffe49275371cb28
4
- data.tar.gz: 711c3270485ce9ff0f3466ab8303b012d68b6f55474e7009d9895587fb81321c
3
+ metadata.gz: b7e5f9fd7413d64412d81d2db783696705e1848437d9cb071213959f4931cfc3
4
+ data.tar.gz: 0a4a3c448f46f813a3d85ea7845811ab5d34b6ac9905ecc5693aba9c90379106
5
5
  SHA512:
6
- metadata.gz: f79902f1dd6719f03790d72cea4e4439d672eb1406e2006fd30c4739823cb20dcaa203fe129d7e64eca582861128aecc0590c9db7db53b778b29e07a386742e7
7
- data.tar.gz: bdd2c8bb2c50f0a680ca2e9c41b9184f60525332ec83b2cf4516f67cea0e791ae7f9a36d980f499a1812142c1f6839a9d6285662f69269a48e00f739a8e3b989
6
+ metadata.gz: 96727f2454c5899693fc2461038d6447a8945e8e76a20e89d2377ef229e7edd63f2e3f35fa1cd93fb189bc7ca71e034de2c508aa328927f91ee5eeceb7099d01
7
+ data.tar.gz: 53a726a06449d1f09c820d6c0fe7c14e01c0df67103520a0c4261c17c1bbaaed4b9f4c1c8c86553280691a1f3ecc45e3c2929510326276713d1fdb7ca0776748
data/.gitignore CHANGED
@@ -8,3 +8,4 @@ Gemfile.lock
8
8
  *.swp
9
9
  *.sw[pnoqst]
10
10
  .vagrant
11
+ .vendor
data/CHANGELOG.md CHANGED
@@ -1,4 +1,32 @@
1
- ### 5.19.0 /2023-03-20
1
+ ### 5.20.0 /2023-07-03
2
+ - Added
3
+ - Support for `puppetlabs-spec-helper` 6.x and `puppet-lint`
4
+ - New gem dependencies:
5
+ - `metadata-json-lint`
6
+ - `puppet-lint-params_empty_string-check`
7
+ - Acceptance test/nodeset support for Puppet 8
8
+ - Modernized GHA PR test matrix
9
+ - Changed
10
+ - Default Puppet = 7.x
11
+ - Default Ruby = 2.7
12
+ - Fixed
13
+ - Don't fail when `metadata` task is not present
14
+ - Untangled non-standard GHA workflows
15
+ - Release workflow bug
16
+
17
+ ### 5.19.1 / 2023-05-15
18
+ - Fixed
19
+ - Bumped required puppet version to < 9.0
20
+ - The base repo for the el7 ISO was unusable because the repodata for it
21
+ was being excluded on the unpack of the distribution ISO; In the case
22
+ of building an el7 iso, we now ensure the repodata directory exists.
23
+
24
+ ### 5.19.1 / 2023-03-27
25
+ - Added
26
+ - Allow `SIMP_BUILD_PKG_require_rebuild` to be case-insensitive to
27
+ accommodate GHA
28
+
29
+ ### 5.19.0 / 2023-03-20
2
30
  - Added
3
31
  - `pkg:single` will skip the `require_rebuild?` logic
4
32
  when `SIMP_BUILD_PKG_require_rebuild=yes`
@@ -7,7 +35,7 @@
7
35
  now use `SIMP_BUILD_PKG_require_rebuild=yes`
8
36
 
9
37
 
10
- ### 5.18.0 /2023-02-27
38
+ ### 5.18.0 / 2023-02-27
11
39
  - Added
12
40
  - `SIMP_BUILD_reposync_only` now excludes RPMs and yum repos from the ISO
13
41
  `unpack` task
@@ -16,12 +44,12 @@
16
44
  - EL7 ISO unpack no longer interferes with reposync repos when
17
45
  `SIMP_BUILD_reposync_only=yes`
18
46
 
19
- ### 5.17.1 /2022-11-11
47
+ ### 5.17.1 / 2022-11-11
20
48
  - Fixed
21
49
  - Fixed an edge case where the `SIMP` directory YUM metadata was not
22
50
  present if you used `reposync` for everything but the `SIMP` directory
23
51
 
24
- ### 5.17.0 /2022-10-30
52
+ ### 5.17.0 / 2022-10-30
25
53
  - Added
26
54
  - The RPM dependency file can now use `ignores` to remove items instead of
27
55
  needing to redefine the entire dependency stack to remove deps
@@ -167,7 +195,7 @@
167
195
  pkg:check_published. Attempt as many checks as possible and then
168
196
  report all failures.
169
197
 
170
- ### 5.10.0 /2019-08-30
198
+ ### 5.10.0 / 2019-08-30
171
199
  * Add initial linting tasks for CI configuration (simp:ci_lint and
172
200
  simp:gitlab_ci_lint). The only checks currently being done are
173
201
  as follows:
@@ -177,7 +205,7 @@
177
205
  specifies the suite and nodeset to be used and that the specified
178
206
  suite and nodeset exist.
179
207
 
180
- ### 5.9.1 /2019-08-06
208
+ ### 5.9.1 / 2019-08-06
181
209
  Fixed 2 bugs in the SIMP Puppet module generated RPM spec files
182
210
  * When SIMP Puppet module RPMs were installed, they created the wrong
183
211
  state directory, '/%{_localstatedir}/lib/rpm-state/simp-adapter'.
@@ -183,12 +183,12 @@ module Simp::Rake::Build
183
183
  end
184
184
 
185
185
  rpm_build_keys.each do |gpgkey|
186
- cp(gpgkey, dvd_dir, :verbose => @verbose)
186
+ FileUtils.cp(gpgkey, dvd_dir, :verbose => @verbose)
187
187
  end
188
188
  # Otherwise, make sure it isn't present for the build
189
189
  else
190
190
  Dir[File.join(dvd_dir,'RPM-GPG-KEY-SIMP*')].each do |to_del|
191
- rm(to_del)
191
+ FileUtils.rm(to_del)
192
192
  end
193
193
  end
194
194
  end
@@ -754,7 +754,10 @@ module Simp::Rake::Build
754
754
  check_git: false,
755
755
  prefix: ''
756
756
  })
757
- return true if ENV['SIMP_BUILD_PKG_require_rebuild'] =~ /\A(yes|always)\Z/i
757
+ always_require_rebuild = ENV.select{|x| x =~ /SIMP_BUILD_PKG_require_rebuild/i }
758
+ unless always_require_rebuild.empty?
759
+ return true if always_require_rebuild =~ /\A(yes|always)\Z/i
760
+ end
758
761
  result = false
759
762
  rpm_metadata = File.exist?(@rpm_dependency_file) ? YAML.load(File.read(@rpm_dependency_file)) : {}
760
763
  dir_relpath = Pathname.new(dir).relative_path_from(Pathname.new(Dir.pwd)).to_path
@@ -118,6 +118,9 @@ module Simp::Rake::Build
118
118
  print "#"
119
119
  end
120
120
  end
121
+
122
+ # The repodata directory needs to exist (but not be copied) for el7 distros
123
+ FileUtils.mkdir("#{out_dir}/repodata") if version.start_with?('7')
121
124
  end
122
125
  end
123
126
  end
@@ -2,5 +2,5 @@ module Simp; end
2
2
  module Simp::Rake; end
3
3
 
4
4
  class Simp::Rake::Helpers
5
- VERSION = '5.19.0'
5
+ VERSION = '5.20.0'
6
6
  end
@@ -100,7 +100,7 @@ class Simp::Rake::Pupmod::Helpers < ::Rake::TaskLib
100
100
  end
101
101
 
102
102
  desc 'lint metadata.json'
103
- Rake::Task[:metadata].clear
103
+ Rake::Task[:metadata].clear if Rake::Task.tasks.any?{ |x| x.name == 'metadata' }
104
104
  task :metadata => :metadata_lint
105
105
 
106
106
  # Read the metadata.json as a data structure
@@ -0,0 +1,36 @@
1
+ HOSTS:
2
+ el7-build-server:
3
+ roles:
4
+ - default
5
+ - build_server
6
+ platform: el-7-x86_64
7
+ hypervisor: docker
8
+ image: simpproject/simp_build_centos7_ruby3_1
9
+ docker_cmd: '/usr/sbin/sshd -D -E /var/log/sshd.log'
10
+
11
+ el8-build-server:
12
+ roles:
13
+ - build_server
14
+ platform: el-8-x86_64
15
+ hypervisor: docker
16
+ image: simpproject/simp_build_centos8_ruby3_1
17
+ docker_cmd: '["/sbin/init"]'
18
+ docker_preserve_image: true
19
+
20
+ CONFIG:
21
+ log_level: verbose
22
+ type: aio
23
+ <% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
24
+ puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
25
+ <% else -%>
26
+ puppet_collection: puppet6
27
+ <% end -%>
28
+ ssh:
29
+ password: root
30
+ auth_methods:
31
+ - password
32
+ docker_preserve_image: true
33
+ mount_folders:
34
+ host_files:
35
+ host_path: ./
36
+ container_path: /host_files
@@ -135,8 +135,7 @@ describe 'rake pkg:signrpms and pkg:checksig' do
135
135
  it 'creates GPG dev signing key and signs packages' do
136
136
  hosts.each do |host|
137
137
  # NOTE: pkg:signrpms will not actually fail if it can't sign a RPM
138
- on(hosts, %(#{run_cmd} "cd '#{test_dir}'; #{signrpm_cmd}"), run_opts)
139
-
138
+ on(hosts, %(#{run_cmd} "cd '#{test_dir}'; SIMP_PKG_verbose=yes #{signrpm_cmd}"), run_opts)
140
139
  expect(file_exists_on(host,"#{dirs[host][:dvd_dir]}/RPM-GPG-KEY-SIMP-Dev")).to be true
141
140
 
142
141
  result = on(host, "rpm -qip '#{test_rpm}' | grep ^Signature", run_opts)
@@ -48,7 +48,7 @@ module Simp::BeakerHelpers::SimpRakeHelpers::BuildProjectHelpers
48
48
  maj_rel = facts['operatingsystemmajrelease'] ||
49
49
  facts.fetch('os', {}).fetch('release', {})['major'] ||
50
50
  facts['operatingsystemrelease'].split('.').first
51
- architecture = facts['architecture']
51
+ architecture = facts['architecture'] || facts.dig('os','architecture')
52
52
 
53
53
  dir = "#{proj_dir}/build/distributions/#{name}/#{maj_rel}/#{architecture}"
54
54
  @distribution_dirs[host.to_s] = dir
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simp-rake-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.19.0
4
+ version: 5.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Tessmer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-27 00:00:00.000000000 Z
12
+ date: 2023-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: simp-beaker-helpers
@@ -74,7 +74,7 @@ dependencies:
74
74
  version: '3.0'
75
75
  - - "<"
76
76
  - !ruby/object:Gem::Version
77
- version: '8.0'
77
+ version: '9.0'
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
@@ -84,7 +84,7 @@ dependencies:
84
84
  version: '3.0'
85
85
  - - "<"
86
86
  - !ruby/object:Gem::Version
87
- version: '8.0'
87
+ version: '9.0'
88
88
  - !ruby/object:Gem::Dependency
89
89
  name: puppet-lint
90
90
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +94,7 @@ dependencies:
94
94
  version: '1.0'
95
95
  - - "<"
96
96
  - !ruby/object:Gem::Version
97
- version: '3.0'
97
+ version: '5.0'
98
98
  type: :runtime
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
@@ -104,7 +104,7 @@ dependencies:
104
104
  version: '1.0'
105
105
  - - "<"
106
106
  - !ruby/object:Gem::Version
107
- version: '3.0'
107
+ version: '5.0'
108
108
  - !ruby/object:Gem::Dependency
109
109
  name: puppet-lint-optional_default-check
110
110
  requirement: !ruby/object:Gem::Requirement
@@ -125,18 +125,58 @@ dependencies:
125
125
  - - "<"
126
126
  - !ruby/object:Gem::Version
127
127
  version: '2.0'
128
+ - !ruby/object:Gem::Dependency
129
+ name: puppet-lint-params_empty_string-check
130
+ requirement: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '1.0'
135
+ - - "<"
136
+ - !ruby/object:Gem::Version
137
+ version: '3.0'
138
+ type: :runtime
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '1.0'
145
+ - - "<"
146
+ - !ruby/object:Gem::Version
147
+ version: '3.0'
128
148
  - !ruby/object:Gem::Dependency
129
149
  name: puppetlabs_spec_helper
130
150
  requirement: !ruby/object:Gem::Requirement
131
151
  requirements:
132
152
  - - "~>"
133
153
  - !ruby/object:Gem::Version
134
- version: '4.0'
154
+ version: '6.0'
135
155
  type: :runtime
136
156
  prerelease: false
137
157
  version_requirements: !ruby/object:Gem::Requirement
138
158
  requirements:
139
159
  - - "~>"
160
+ - !ruby/object:Gem::Version
161
+ version: '6.0'
162
+ - !ruby/object:Gem::Dependency
163
+ name: metadata-json-lint
164
+ requirement: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: '1.2'
169
+ - - "<"
170
+ - !ruby/object:Gem::Version
171
+ version: '4.0'
172
+ type: :runtime
173
+ prerelease: false
174
+ version_requirements: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: '1.2'
179
+ - - "<"
140
180
  - !ruby/object:Gem::Version
141
181
  version: '4.0'
142
182
  - !ruby/object:Gem::Dependency
@@ -177,16 +217,22 @@ dependencies:
177
217
  name: puppet-blacksmith
178
218
  requirement: !ruby/object:Gem::Requirement
179
219
  requirements:
180
- - - "~>"
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: 3.3.0
223
+ - - "<"
181
224
  - !ruby/object:Gem::Version
182
- version: '3.3'
225
+ version: '8.0'
183
226
  type: :runtime
184
227
  prerelease: false
185
228
  version_requirements: !ruby/object:Gem::Requirement
186
229
  requirements:
187
- - - "~>"
230
+ - - ">="
188
231
  - !ruby/object:Gem::Version
189
- version: '3.3'
232
+ version: 3.3.0
233
+ - - "<"
234
+ - !ruby/object:Gem::Version
235
+ version: '8.0'
190
236
  - !ruby/object:Gem::Dependency
191
237
  name: parallel_tests
192
238
  requirement: !ruby/object:Gem::Requirement
@@ -337,6 +383,7 @@ files:
337
383
  - lib/simp/rpm_signer.rb
338
384
  - lib/simp/yum.rb
339
385
  - spec/acceptance/nodesets/default.yml
386
+ - spec/acceptance/nodesets/default_ruby3_1.yml
340
387
  - spec/acceptance/suites/default/00_pkg_rpm_custom_scriptlets_spec.rb
341
388
  - spec/acceptance/suites/default/10_pkg_rpm_spec.rb
342
389
  - spec/acceptance/suites/default/30_pkg_misc_spec.rb
@@ -612,8 +659,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
612
659
  - !ruby/object:Gem::Version
613
660
  version: '0'
614
661
  requirements: []
615
- rubyforge_project:
616
- rubygems_version: 2.7.6.3
662
+ rubygems_version: 3.1.6
617
663
  signing_key:
618
664
  specification_version: 4
619
665
  summary: SIMP rake helpers