packaging 0.121.0 → 0.122.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: b15971001c7e8e8fe27231f8535680c4d2829a87064c53bb101ceeec0fa445c3
4
- data.tar.gz: 44d4fa27eb2dce3f84e2d88248a0d16dd2842c26e55c6cc2a23dc25916e8c343
3
+ metadata.gz: a5560896502d75648fd074b547eff490dba3c818182bb0706fd7b655bdb5c41d
4
+ data.tar.gz: e5bda3251cbc2557d509e52b36a0a1ee5c60ef1b8c130034ce8b4e15d2f23fc2
5
5
  SHA512:
6
- metadata.gz: 6f27e6ea8afb8289ee13b59f29c4693f644b6a00552be9b6cf291a4ce975397fd3a2f5fa275503bfd8598beb2572b8f47a9321fb19d4b1e4715a4b7d5b965a59
7
- data.tar.gz: 1017d78d1cd65305b8619f748cdd76a6a05e776f042c5c5c62bd73c622689f0f7417c437d3460d968d0f7499509991f1e6bd64a7fb0b8bd187adaed63c2d1a61
6
+ metadata.gz: 8577e3d44d07aaf18e3524bb7df689ead02a05b367a0ddcfa7a776f10294bd4766ab3716d6b76c3de925b0b04561caccfa8d297476ce7cd4a8d8df85f158d9ab
7
+ data.tar.gz: adea75f16e3f172efab609ff830adbcd8aea67293b08804d28d5cc079dd2131c4f7507b3c777ab9f7742f35b834bfcb252fad924931811cd9a3123a7dd30df40
@@ -62,7 +62,7 @@ module Pkg
62
62
  when 'deb'
63
63
  toplevel_repo = 'debian__local'
64
64
  repo_subdirectories = File.join(repo_subdirectories, "#{platform}-#{version}")
65
- when 'swix', 'dmg', 'svr4', 'ips'
65
+ when 'dmg', 'svr4', 'ips'
66
66
  repo_subdirectories = File.join(repo_subdirectories, "#{platform}-#{version}-#{architecture}")
67
67
  when 'msi'
68
68
  repo_subdirectories = File.join(repo_subdirectories, "#{platform}-#{architecture}")
@@ -118,7 +118,6 @@ module Pkg::Params
118
118
  nonfinal_repo_name
119
119
  nonfinal_repo_link_target
120
120
  nonfinal_svr4_path
121
- nonfinal_swix_path
122
121
  nonfinal_yum_repo_path
123
122
  notify
124
123
  nuget_host
@@ -169,9 +168,6 @@ module Pkg::Params
169
168
  summary
170
169
  svr4_host
171
170
  svr4_path
172
- swix_host
173
- swix_path
174
- swix_staging_server
175
171
  tar_excludes
176
172
  tar_host
177
173
  tar_staging_server
@@ -260,7 +256,6 @@ module Pkg::Params
260
256
  { :var => :nonfinal_repo_link_target, :envvar => :NONFINAL_REPO_LINK_TARGET },
261
257
  { :var => :nonfinal_repo_name, :envvar => :NONFINAL_REPO_NAME },
262
258
  { :var => :nonfinal_svr4_path, :envvar => :NONFINAL_SVR4_PATH },
263
- { :var => :nonfinal_swix_path, :envvar => :NONFINAL_SWIX_PATH },
264
259
  { :var => :nonfinal_yum_repo_path, :envvar => :NONFINAL_YUM_REPO_PATH },
265
260
  { :var => :notify, :envvar => :NOTIFY },
266
261
  { :var => :nuget_host, :envvar => :NUGET_HOST },
@@ -288,11 +283,8 @@ module Pkg::Params
288
283
  { :var => :sign_tar, :envvar => :SIGN_TAR, :type => :bool },
289
284
  { :var => :signing_server, :envvar => :SIGNING_SERVER },
290
285
  { :var => :staging_server, :envvar => :STAGING_SERVER },
291
- { :var => :swix_host, :envvar => :SWIX_HOST },
292
- { :var => :swix_staging_server, :envvar => :SWIX_STAGING_SERVER },
293
286
  { :var => :svr4_host, :envvar => :SVR4_HOST },
294
287
  { :var => :svr4_path, :envvar => :SVR4_PATH },
295
- { :var => :swix_path, :envvar => :SWIX_PATH },
296
288
  { :var => :tar_host, :envvar => :TAR_HOST },
297
289
  { :var => :tar_staging_server, :envvar => :TAR_STAGING_SERVER },
298
290
  { :var => :team, :envvar => :TEAM },
@@ -343,7 +335,6 @@ module Pkg::Params
343
335
  # These are fall-through values for shipping endpoints
344
336
  { :oldvar => :staging_server, :newvar => :apt_staging_server },
345
337
  { :oldvar => :staging_server, :newvar => :dmg_staging_server },
346
- { :oldvar => :staging_server, :newvar => :swix_staging_server },
347
338
  { :oldvar => :staging_server, :newvar => :tar_staging_server },
348
339
  { :oldvar => :staging_server, :newvar => :yum_staging_server },
349
340
  # These are fall-through values for signing/repo endpoints
@@ -356,7 +347,6 @@ module Pkg::Params
356
347
  { :oldvar => :name, :newvar => :project },
357
348
  { :oldvar => :pe_name, :newvar => :project },
358
349
  { :oldvar => :project, :newvar => :gem_name },
359
- { :oldvar => :yum_host, :newvar => :swix_host },
360
350
  { :oldvar => :yum_host, :newvar => :dmg_host },
361
351
  { :oldvar => :yum_host, :newvar => :tar_host },
362
352
  ]
@@ -372,13 +362,4 @@ module Pkg::Params
372
362
  { :var => :gpg_name, :message => "
373
363
  DEPRECATED, 29-Jul-2014: 'gpg_name' has been replaced with 'gpg_key'.
374
364
  Please update this field in your build_defaults.yaml" }]
375
-
376
- # Provide an open-ended template for validating BUILD_PARAMS.
377
- #
378
- # Each validatation contains the variable name as ':var' and a list of validations it
379
- # must pass from the Pkg::Params::Validations class.
380
- #
381
- VALIDATIONS = [
382
- { :var => :project, :validations => [:not_empty?] }
383
- ]
384
365
  end
@@ -99,7 +99,7 @@ module Pkg
99
99
 
100
100
  # Remove the f-prefix from the fedora platform tag keys so that
101
101
  # beaker can rely on consistent keys once we rip out the f for good
102
- tag = original_tag.sub(/fedora-f/, 'fedora-')
102
+ tag = original_tag.sub('fedora-f', 'fedora-')
103
103
 
104
104
  data[tag] ||= {}
105
105
 
@@ -140,7 +140,7 @@ module Pkg
140
140
  repo_config = "../repo_configs/rpm/pl-#{self.project}-" \
141
141
  "#{self.ref}-#{original_tag}.repo"
142
142
  end
143
- when 'swix', 'svr4', 'ips', 'dmg', 'msi'
143
+ when 'svr4', 'ips', 'dmg', 'msi'
144
144
  # No repo_configs for these platforms, so do nothing.
145
145
  else
146
146
  fail "Error: Unknown package format: '#{package_format}'. Maybe update PLATFORM_INFO?"
@@ -398,31 +398,6 @@ module Pkg
398
398
  end
399
399
  end
400
400
 
401
- ##
402
- # Ask for validation of BUILD_PARAMS
403
- #
404
- # Issued as warnings initially but the intent is to turn this into
405
- # a failure.
406
- #
407
- def perform_validations
408
- error_count = 0
409
- Pkg::Params::VALIDATIONS.each do |v|
410
- variable_name = v[:var]
411
- variable_value = self.instance_variable_get("@#{v[:var]}")
412
- validations = v[:validations]
413
- validations.each do |validation|
414
- unless Pkg::ConfigValidations.send(validation, variable_value)
415
- warn "Warning: variable \"#{variable_name}\" failed validation \"#{validation}\""
416
- error_count += 1
417
- end
418
- end
419
- end
420
-
421
- if error_count != 0
422
- warn "Warning: #{error_count} validation failure(s)."
423
- end
424
- end
425
-
426
401
  def string_to_array(str)
427
402
  delimiters = /[,\s;]/
428
403
  return str if str.respond_to?('each')
data/lib/packaging/deb.rb CHANGED
@@ -15,7 +15,7 @@ module Pkg::Deb
15
15
  end
16
16
  if Pkg::Config.deb_build_mirrors
17
17
  ENV['BUILDMIRROR'] = Pkg::Config.deb_build_mirrors.map do |mirror|
18
- mirror.gsub(/__DIST__/, dist)
18
+ mirror.gsub('__DIST__', dist)
19
19
  end.join(' | ')
20
20
  end
21
21
  ENV['DIST'] = dist
@@ -128,8 +128,6 @@ module Pkg::Paths
128
128
  return File.join(prefix, platform_name, repo_name(is_nonfinal))
129
129
  when 'rpm'
130
130
  return File.join(prefix, yum_repo_name(is_nonfinal))
131
- when 'swix'
132
- return File.join(prefix, platform_name, repo_name(is_nonfinal))
133
131
  when 'svr4', 'ips'
134
132
  return File.join(prefix, 'solaris', repo_name(is_nonfinal))
135
133
  else
@@ -150,8 +148,6 @@ module Pkg::Paths
150
148
  case package_format
151
149
  when 'rpm'
152
150
  return File.join(prefix, link)
153
- when 'swix'
154
- return File.join(prefix, platform_name, link)
155
151
  when 'deb'
156
152
  debian_code_name = Pkg::Platforms.get_attribute(platform_tag, :codename)
157
153
  return File.join(prefix, debian_code_name, link)
@@ -195,8 +191,6 @@ module Pkg::Paths
195
191
  case package_format
196
192
  when 'rpm'
197
193
  File.join(base_path, platform, version, architecture)
198
- when 'swix'
199
- File.join(base_path, version, architecture)
200
194
  when 'deb'
201
195
  base_path
202
196
  when 'svr4', 'ips'
@@ -222,7 +216,7 @@ module Pkg::Paths
222
216
  package_format = Pkg::Platforms.package_format_for_tag(platform_tag)
223
217
 
224
218
  case package_format
225
- when 'rpm', 'swix'
219
+ when 'rpm'
226
220
  if options[:legacy]
227
221
  File.join('repos', platform, version, repo_target, arch)
228
222
  else
@@ -263,7 +257,7 @@ module Pkg::Paths
263
257
  when 'deb'
264
258
  # deb/pl-puppet-agent-1.2.5-jessie.list
265
259
  File.join('repo_configs', 'deb', "*#{Pkg::Platforms.get_attribute(platform_tag, :codename)}*.list")
266
- when 'msi', 'swix', 'dmg', 'svr4', 'ips'
260
+ when 'msi', 'dmg', 'svr4', 'ips'
267
261
  nil
268
262
  else
269
263
  raise "Not sure what to do with a package format of '#{package_format}'"
@@ -284,8 +278,6 @@ module Pkg::Paths
284
278
  nonfinal ? Pkg::Config.nonfinal_apt_repo_path : Pkg::Config.apt_repo_path
285
279
  when 'dmg'
286
280
  nonfinal ? Pkg::Config.nonfinal_dmg_path : Pkg::Config.dmg_path
287
- when 'swix'
288
- nonfinal ? Pkg::Config.nonfinal_swix_path : Pkg::Config.swix_path
289
281
  when 'msi'
290
282
  nonfinal ? Pkg::Config.nonfinal_msi_path : Pkg::Config.msi_path
291
283
  else
@@ -172,7 +172,7 @@ module Pkg
172
172
  source_architecture: 'SRPMS',
173
173
  package_format: 'rpm',
174
174
  source_package_formats: ['src.rpm'],
175
- signature_format: 'v3',
175
+ signature_format: 'v4',
176
176
  repo: true,
177
177
  },
178
178
  '8' => {
@@ -180,7 +180,7 @@ module Pkg
180
180
  source_architecture: 'SRPMS',
181
181
  package_format: 'rpm',
182
182
  source_package_formats: ['src.rpm'],
183
- signature_format: 'v3',
183
+ signature_format: 'v4',
184
184
  repo: true,
185
185
  },
186
186
  '9' => {
@@ -280,6 +280,11 @@ module Pkg
280
280
  architectures: ['x64'],
281
281
  package_format: 'msi',
282
282
  repo: false,
283
+ },
284
+ '2016' => {
285
+ architectures: ['x64'],
286
+ package_format: 'msi',
287
+ repo: false,
283
288
  }
284
289
  },
285
290
  }
@@ -65,7 +65,7 @@ module Pkg::Sign::Rpm
65
65
  %W[
66
66
  #{gpg_executable} --sign --detach-sign
67
67
  #{signing_version_flags(signing_version)}
68
- #{passphrase_fd_flag}
68
+ #{passphrase_fd_flag} --verbose
69
69
  --batch --no-armor --no-secmem-warning
70
70
  --local-user %{_gpg_name}
71
71
  --output %{__signature_filename}
@@ -79,7 +79,7 @@ module Pkg::Sign::Rpm
79
79
  when :v3
80
80
  '--force-v3-sigs --digest-algo=sha1'
81
81
  when :v4
82
- ''
82
+ '--digest-algo=sha512'
83
83
  else
84
84
  fail "Unrecognized signing_version: '#{signing_version}'"
85
85
  end
@@ -183,8 +183,6 @@ module Pkg::Util::File
183
183
  ensure
184
184
  FileUtils.rm_rf(build_data_directory)
185
185
  end
186
-
187
- Pkg::Config.perform_validations
188
186
  end
189
187
 
190
188
  # The load_extras method is intended to load variables
@@ -184,7 +184,7 @@ module Pkg::Util::Net
184
184
  target_host: nil,
185
185
  extra_flags: nil,
186
186
  dryrun: ENV['DRYRUN']
187
- }.merge(opts.compact)
187
+ }.merge(opts.merge(opts.delete_if { |_, value| value.nil? })) # rubocop:disable Style/CollectionCompact
188
188
 
189
189
  stdout, = Pkg::Util::Execution.capture3(rsync_cmd(source, options), true)
190
190
  stdout
@@ -161,15 +161,6 @@ module Pkg::Util::Ship
161
161
  end
162
162
  end
163
163
 
164
- def ship_swix(local_staging_directory, remote_path, opts = {})
165
- ship_pkgs(
166
- ["#{local_staging_directory}/**/*.swix"],
167
- Pkg::Config.swix_staging_server,
168
- remote_path,
169
- opts
170
- )
171
- end
172
-
173
164
  def ship_msi(local_staging_directory, remote_path, opts = {})
174
165
  packages_have_shipped = ship_pkgs(
175
166
  ["#{local_staging_directory}/**/*.msi"],
@@ -241,7 +232,6 @@ module Pkg::Util::Ship
241
232
  def create_rolling_repo_links(nonfinal = false)
242
233
  yum_path = Pkg::Paths.remote_repo_base(nonfinal: nonfinal, package_format: 'rpm')
243
234
  dmg_path = Pkg::Paths.remote_repo_base(nonfinal: nonfinal, package_format: 'dmg')
244
- swix_path = Pkg::Paths.remote_repo_base(nonfinal: nonfinal, package_format: 'swix')
245
235
  msi_path = Pkg::Paths.remote_repo_base(nonfinal: nonfinal, package_format: 'msi')
246
236
 
247
237
  create_rolling_repo_link(
@@ -258,13 +248,6 @@ module Pkg::Util::Ship
258
248
  nonfinal
259
249
  )
260
250
 
261
- create_rolling_repo_link(
262
- Pkg::Platforms.generic_platform_tag('eos'),
263
- Pkg::Config.swix_staging_server,
264
- swix_path,
265
- nonfinal
266
- )
267
-
268
251
  create_rolling_repo_link(
269
252
  Pkg::Platforms.generic_platform_tag('windows'),
270
253
  Pkg::Config.msi_staging_server,
@@ -338,14 +321,12 @@ module Pkg::Util::Ship
338
321
  MSI_HOST
339
322
  P5P_HOST
340
323
  SVR4_HOST
341
- SWIX_HOST
342
324
  TAR_HOST
343
325
  YUM_HOST
344
326
  APT_SIGNING_SERVER
345
327
  APT_STAGING_SERVER
346
328
  DMG_STAGING_SERVER
347
329
  MSI_STAGING_SERVER
348
- SWIX_STAGING_SERVER
349
330
  TAR_STAGING_SERVER
350
331
  YUM_STAGING_SERVER
351
332
  STAGING_SERVER
@@ -25,7 +25,6 @@ module Pkg::Util::Sign
25
25
  sign_tasks << "pl:sign_tar" if Pkg::Config.build_tar
26
26
  sign_tasks << "pl:sign_gem" if Pkg::Config.build_gem
27
27
  sign_tasks << "pl:sign_osx" if Pkg::Config.build_dmg || Pkg::Config.vanagon_project
28
- sign_tasks << "pl:sign_swix" if Pkg::Config.vanagon_project
29
28
  sign_tasks << "pl:sign_svr4" if Pkg::Config.vanagon_project
30
29
  sign_tasks << "pl:sign_ips" if Pkg::Config.vanagon_project
31
30
  sign_tasks << "pl:sign_msi" if Pkg::Config.build_msi || Pkg::Config.vanagon_project
@@ -84,7 +84,7 @@ module Pkg::Util::Version
84
84
  return "#{dot_version(version)}-#{Pkg::Config.release}".split('-') if final?(version) || Pkg::Config.vanagon_project
85
85
 
86
86
  if version.include?('SNAPSHOT')
87
- new_version = dot_version(version).sub(/\.SNAPSHOT/, "-0.#{Pkg::Config.release}SNAPSHOT")
87
+ new_version = dot_version(version).sub('.SNAPSHOT', "-0.#{Pkg::Config.release}SNAPSHOT")
88
88
  elsif version.include?('rc')
89
89
  rc_ver = dot_version(version).match(/\.?rc(\d+)/)[1]
90
90
  new_version = dot_version(version).sub(/\.?rc(\d+)/, '') + "-0.#{Pkg::Config.release}rc#{rc_ver}"
@@ -91,7 +91,6 @@ CONFIGURATION_KEYS = %i[
91
91
  nonfinal_repo_name
92
92
  nonfinal_repo_link_target
93
93
  nonfinal_svr4_path
94
- nonfinal_swix_path
95
94
  nonfinal_yum_repo_path
96
95
  notify
97
96
  project
@@ -122,7 +121,6 @@ CONFIGURATION_KEYS = %i[
122
121
  summary
123
122
  svr4_host
124
123
  svr4_path
125
- swix_path
126
124
  tar_excludes
127
125
  tar_host
128
126
  tarball_path
@@ -61,13 +61,10 @@ describe 'Pkg::Sign' do
61
61
  let(:rpms_not_to_sign) do
62
62
  %W[#{rpm_directory}/aix/7.1/PC1/ppc/puppet-agent-5.5.3-1.aix7.1.ppc.rpm]
63
63
  end
64
- let(:v3_rpms) do
65
- %W[#{rpm_directory}/redhatfips/7/PC1/x86_64/puppet-agent-5.5.3-1.redhatfips7.x86_64.rpm]
66
- end
67
64
  let(:v4_rpms) do
68
65
  %W[%#{rpm_directory}/el/7/PC1/aarch64/puppet-agent-5.5.3-1.el7.aarch64.rpm]
69
66
  end
70
- let(:rpms) { rpms_not_to_sign + v3_rpms + v4_rpms }
67
+ let(:rpms) { rpms_not_to_sign + v4_rpms }
71
68
  let(:already_signed_rpms) do
72
69
  %W[#{rpm_directory}/el/6/PC1/x86_64/puppet-agent-5.5.3-1.el6.x86_64.rpm]
73
70
  end
@@ -81,12 +78,11 @@ describe 'Pkg::Sign' do
81
78
  #{rpm_directory}/sles/12/puppet5/x86_64/puppetserver-5.3.3-1.sles12.noarch.rpm
82
79
  ]
83
80
  end
84
- it 'signs both v3 and v4 rpms' do
81
+ it 'signs v4 rpms' do
85
82
  allow(Dir).to receive(:[]).with("#{rpm_directory}/**/*.rpm").and_return(rpms)
86
83
  rpms.each do |rpm|
87
84
  allow(Pkg::Sign::Rpm).to receive(:signed?).and_return(false)
88
85
  end
89
- expect(Pkg::Sign::Rpm).to receive(:sign).with(v3_rpms.join(' '), :v3)
90
86
  expect(Pkg::Sign::Rpm).to receive(:sign).with(v4_rpms.join(' '), :v4)
91
87
  Pkg::Sign::Rpm.sign_all(rpm_directory)
92
88
  end
data/tasks/config.rake CHANGED
@@ -6,11 +6,6 @@ namespace :config do
6
6
  end
7
7
  end
8
8
 
9
- desc "validate Pkg::Config values for this repo"
10
- task :validate do
11
- Pkg::Config.perform_validations
12
- end
13
-
14
9
  task :print_hosts => 'pl:fetch' do
15
10
  Pkg::Util.filter_configs('host').each do |key, value|
16
11
  puts "#{key}: #{value}"
data/tasks/fetch.rake CHANGED
@@ -55,7 +55,5 @@ namespace :pl do
55
55
  ensure
56
56
  rm_rf build_data_directory
57
57
  end
58
-
59
- Pkg::Util::RakeUtils.invoke_task('config:validate')
60
58
  end
61
59
  end
data/tasks/jenkins.rake CHANGED
@@ -256,7 +256,6 @@ namespace :pl do
256
256
  ship_rpms
257
257
  ship_debs
258
258
  ship_dmg
259
- ship_swix
260
259
  ship_tar
261
260
  ship_msi
262
261
  ship_gem
@@ -285,7 +284,6 @@ namespace :pl do
285
284
  ship_nightly_rpms
286
285
  ship_nightly_debs
287
286
  ship_nightly_dmg
288
- ship_nightly_swix
289
287
  ship_nightly_msi
290
288
  ]
291
289
  tasks.map { |t| "pl:#{t}" }.each do |t|
@@ -339,7 +337,6 @@ namespace :pl do
339
337
  remote:deploy_apt_repo
340
338
  remote:deploy_yum_repo
341
339
  remote:deploy_dmg_repo
342
- remote:deploy_swix_repo
343
340
  remote:deploy_msi_repo
344
341
  remote:deploy_tar_repo
345
342
  remote:deploy_apt_repo_to_s3
@@ -356,14 +353,12 @@ namespace :pl do
356
353
  uber_tasks.delete("remote:deploy_apt_repo") if Pkg::Config.apt_host == Pkg::Config.apt_signing_server
357
354
  uber_tasks.delete("remote:deploy_yum_repo") if Pkg::Config.yum_host == Pkg::Config.yum_staging_server
358
355
  uber_tasks.delete("remote:deploy_dmg_repo") if Pkg::Config.dmg_host == Pkg::Config.dmg_staging_server
359
- uber_tasks.delete("remote:deploy_swix_repo") if Pkg::Config.swix_host == Pkg::Config.swix_staging_server
360
356
  uber_tasks.delete("remote:deploy_tar_repo") if Pkg::Config.tar_host == Pkg::Config.tar_staging_server
361
357
 
362
358
  if Pkg::Config.s3_ship
363
359
  uber_tasks.delete("remote:deploy_apt_repo")
364
360
  uber_tasks.delete("remote:deploy_yum_repo")
365
361
  uber_tasks.delete("remote:deploy_dmg_repo")
366
- uber_tasks.delete("remote:deploy_swix_repo")
367
362
  uber_tasks.delete("remote:deploy_msi_repo")
368
363
  uber_tasks.delete("remote:deploy_tar_repo")
369
364
  else
@@ -409,10 +404,6 @@ namespace :pl do
409
404
  uber_tasks.delete("remote:deploy_dmg_repo")
410
405
  end
411
406
 
412
- if Dir.glob("pkg/**/*.swix").empty?
413
- uber_tasks.delete("remote:deploy_swix_repo")
414
- end
415
-
416
407
  if Dir.glob("pkg/**/*.msi").empty?
417
408
  uber_tasks.delete("remote:deploy_msi_repo")
418
409
  end
data/tasks/ship.rake CHANGED
@@ -172,17 +172,6 @@ namespace :pl do
172
172
  end
173
173
  end
174
174
 
175
- desc "Move swix repos from #{Pkg::Config.swix_staging_server} to #{Pkg::Config.swix_host}"
176
- task deploy_swix_repo: 'pl:fetch' do
177
- puts "Really run remote rsync to deploy Arista repos from #{Pkg::Config.swix_staging_server} to #{Pkg::Config.swix_host}? [y,n]"
178
- if Pkg::Util.ask_yes_or_no
179
- Pkg::Util::Execution.retry_on_fail(times: 3) do
180
- cmd = Pkg::Util::Net.rsync_cmd(Pkg::Config.swix_path, target_host: Pkg::Config.swix_host, extra_flags: ['--update'])
181
- Pkg::Util::Net.remote_execute(Pkg::Config.swix_staging_server, cmd)
182
- end
183
- end
184
- end
185
-
186
175
  desc "Move tar repos from #{Pkg::Config.tar_staging_server} to #{Pkg::Config.tar_host}"
187
176
  task deploy_tar_repo: 'pl:fetch' do
188
177
  puts "Really run remote rsync to deploy source tarballs from #{Pkg::Config.tar_staging_server} to #{Pkg::Config.tar_host}? [y,n]"
@@ -249,7 +238,7 @@ namespace :pl do
249
238
 
250
239
  ##
251
240
  ## S3 syncing
252
- S3_REPO_SYNC = 'sudo /usr/local/bin/s3_repo_sync.sh'
241
+ S3_REPO_SYNC = 'sudo /usr/local/bin/s3_repo_sync'
253
242
 
254
243
  desc "Sync signed apt repos from #{Pkg::Config.apt_signing_server} to S3"
255
244
  task :deploy_apt_repo_to_s3 => 'pl:fetch' do
@@ -462,18 +451,6 @@ namespace :pl do
462
451
  Pkg::Util::Ship.ship_dmg('pkg', path, nonfinal: true)
463
452
  end
464
453
 
465
- desc "ship Arista EOS swix packages and signatures to #{Pkg::Config.swix_staging_server}"
466
- task ship_swix: 'pl:fetch' do
467
- path = Pkg::Paths.remote_repo_base(package_format: 'swix')
468
- Pkg::Util::Ship.ship_swix('pkg', path)
469
- end
470
-
471
- desc "ship nightly Arista EOS swix packages and signatures to #{Pkg::Config.swix_staging_server}"
472
- task ship_nightly_swix: 'pl:fetch' do
473
- path = Pkg::Paths.remote_repo_base(package_format: 'swix', nonfinal: true)
474
- Pkg::Util::Ship.ship_swix('pkg', path, nonfinal: true)
475
- end
476
-
477
454
  desc "ship tarball and signature to #{Pkg::Config.tar_staging_server}"
478
455
  task ship_tar: 'pl:fetch' do
479
456
  if Pkg::Config.build_tar
@@ -518,7 +495,6 @@ namespace :pl do
518
495
  Rake::Task['pl:ship_rpms'].invoke
519
496
  Rake::Task['pl:ship_debs'].invoke
520
497
  Rake::Task['pl:ship_dmg'].invoke
521
- Rake::Task['pl:ship_swix'].invoke
522
498
  Rake::Task['pl:ship_nuget'].invoke
523
499
  Rake::Task['pl:ship_tar'].invoke
524
500
  Rake::Task['pl:ship_svr4'].invoke
data/tasks/sign.rake CHANGED
@@ -13,18 +13,6 @@ namespace :pl do
13
13
  # If no directory to sign is specified assume "pkg"
14
14
  $DEFAULT_DIRECTORY = "pkg"
15
15
 
16
- desc "Sign the Arista EOS swix packages, defaults to PL key, pass GPG_KEY to override or edit build_defaults"
17
- task :sign_swix, :root_dir do |_t, args|
18
- swix_dir = args.root_dir || $DEFAULT_DIRECTORY
19
- packages = Dir["#{swix_dir}/**/*.swix"]
20
- next if packages.empty?
21
-
22
- Pkg::Util::Gpg.load_keychain if Pkg::Util::Tool.find_tool('keychain')
23
- packages.each do |swix_package|
24
- Pkg::Util::Gpg.sign_file swix_package
25
- end
26
- end
27
-
28
16
  desc "Detach sign any solaris svr4 packages"
29
17
  task :sign_svr4, :root_dir do |_t, args|
30
18
  svr4_dir = args.root_dir || $DEFAULT_DIRECTORY
@@ -137,7 +125,6 @@ namespace :pl do
137
125
  sign_tasks << "pl:sign_tar" if Pkg::Config.build_tar
138
126
  sign_tasks << "pl:sign_gem" if Pkg::Config.build_gem
139
127
  sign_tasks << "pl:sign_osx" if Pkg::Config.build_dmg || Pkg::Config.vanagon_project
140
- sign_tasks << "pl:sign_swix" if Pkg::Config.vanagon_project
141
128
  sign_tasks << "pl:sign_svr4" if Pkg::Config.vanagon_project
142
129
  sign_tasks << "pl:sign_ips" if Pkg::Config.vanagon_project
143
130
  sign_tasks << "pl:sign_msi" if Pkg::Config.build_msi || Pkg::Config.vanagon_project
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.121.0
4
+ version: 0.122.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet By Perforce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-31 00:00:00.000000000 Z
11
+ date: 2024-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debug
@@ -136,6 +136,26 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: retriable
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '3.1'
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: 3.1.2
149
+ type: :runtime
150
+ prerelease: false
151
+ version_requirements: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - "~>"
154
+ - !ruby/object:Gem::Version
155
+ version: '3.1'
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: 3.1.2
139
159
  - !ruby/object:Gem::Dependency
140
160
  name: rexml
141
161
  requirement: !ruby/object:Gem::Requirement
@@ -307,28 +327,28 @@ signing_key:
307
327
  specification_version: 4
308
328
  summary: Puppet by Perforce packaging automation
309
329
  test_files:
310
- - spec/lib/packaging/artifactory_spec.rb
330
+ - spec/lib/packaging/rpm/repo_spec.rb
311
331
  - spec/lib/packaging/repo_spec.rb
332
+ - spec/lib/packaging/config_spec.rb
333
+ - spec/lib/packaging/gem_spec.rb
334
+ - spec/lib/packaging/artifactory_spec.rb
335
+ - spec/lib/packaging/retrieve_spec.rb
336
+ - spec/lib/packaging/deb_spec.rb
312
337
  - spec/lib/packaging/platforms_spec.rb
313
- - spec/lib/packaging/paths_spec.rb
314
- - spec/lib/packaging/util/gpg_spec.rb
315
- - spec/lib/packaging/util/version_spec.rb
316
- - spec/lib/packaging/util/rake_utils_spec.rb
317
- - spec/lib/packaging/util/file_spec.rb
318
338
  - spec/lib/packaging/util/git_tag_spec.rb
319
339
  - spec/lib/packaging/util/os_spec.rb
320
- - spec/lib/packaging/util/net_spec.rb
321
- - spec/lib/packaging/util/execution_spec.rb
322
- - spec/lib/packaging/util/jenkins_spec.rb
323
- - spec/lib/packaging/util/misc_spec.rb
324
340
  - spec/lib/packaging/util/ship_spec.rb
325
341
  - spec/lib/packaging/util/git_spec.rb
342
+ - spec/lib/packaging/util/misc_spec.rb
343
+ - spec/lib/packaging/util/gpg_spec.rb
344
+ - spec/lib/packaging/util/net_spec.rb
345
+ - spec/lib/packaging/util/jenkins_spec.rb
346
+ - spec/lib/packaging/util/rake_utils_spec.rb
347
+ - spec/lib/packaging/util/execution_spec.rb
348
+ - spec/lib/packaging/util/file_spec.rb
349
+ - spec/lib/packaging/util/version_spec.rb
350
+ - spec/lib/packaging/deb/repo_spec.rb
326
351
  - spec/lib/packaging/sign_spec.rb
327
- - spec/lib/packaging/rpm/repo_spec.rb
328
- - spec/lib/packaging/retrieve_spec.rb
352
+ - spec/lib/packaging/paths_spec.rb
329
353
  - spec/lib/packaging/tar_spec.rb
330
- - spec/lib/packaging/gem_spec.rb
331
- - spec/lib/packaging/config_spec.rb
332
- - spec/lib/packaging/deb/repo_spec.rb
333
- - spec/lib/packaging/deb_spec.rb
334
354
  - spec/lib/packaging_spec.rb