r10k 4.0.0 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3243dd00fc7260b6cbbb51f070418886dfd76ad16befc18d0511185d17d4fae
4
- data.tar.gz: dc8dcfe9644c9dabfd4532cc8b5a91064d57a5c8377fb38932aaf0aab1d0d6ef
3
+ metadata.gz: 92e0f24af6c95c877f99c222382ee64cebc7ef588e054e4f63104b5d7a13c7fa
4
+ data.tar.gz: f9798d8056373adcbd3810e1e1c147496b0cf651a61c8c1fdf0b6df5f429e63f
5
5
  SHA512:
6
- metadata.gz: 22a3158bc9c7c65caf1c437d9d855c4586c14ac836730121826d1eaaa326e4237e74675818fb6e71430523b416f318e9f757106fba9b8c3e83b6cfbe2a2144e3
7
- data.tar.gz: 3d51941a78ec8e651c4657222a5f7f27b169b5b3811d472948c55f5b00e47244b2807aa6037182241a5c9b14a8df43748102d787e0218a2d8bacf2d17ae32fd9
6
+ metadata.gz: 04c0b9f93fd3fa51f995148fc53d335889e564e52f1bfa8ab746f4fccd71f9165ab40cb62f402c437b11d956890457b3fd59fd05cb86eac3971e7e24c153bfd0
7
+ data.tar.gz: bc206f67eee547bf511737f90343cf6f684e5700a6f9326cc9a285fe356520c46922dbece4f7e90e5263d1f02c10bc55901381788def071b9260a20dad276d6f
@@ -29,7 +29,7 @@ jobs:
29
29
  - run: gem install bundler
30
30
  - uses: actions/checkout@v3
31
31
  - name: Set up QEMU
32
- uses: docker/setup-qemu-action@v2
32
+ uses: docker/setup-qemu-action@v3
33
33
  - name: Set up Docker Buildx
34
34
  uses: docker/setup-buildx-action@v2
35
35
  - name: Build container
data/CHANGELOG.mkd CHANGED
@@ -4,6 +4,18 @@ CHANGELOG
4
4
  Unreleased
5
5
  ----------
6
6
 
7
+ 4.0.2
8
+ -----
9
+
10
+ - Make metadata loading during incremental deploys more robust [PE-34917](https://perforce.atlassian.net/browse/PE-34917)
11
+ - Use the production forge for integration testing
12
+ - (maint) Update beaker-pe to 3 [#1376](https://github.com/puppetlabs/r10k/pull/1376)
13
+ - (maint) Stop puppet service during tests [#1377](https://github.com/puppetlabs/r10k/pull/1377)
14
+
15
+ 4.0.1
16
+ -----
17
+
18
+ - shellgit: Ensure the passed filepath to diff-index is interpreted as filepath [#1367](https://github.com/puppetlabs/r10k/pull/1367)
7
19
 
8
20
  4.0.0
9
21
  -----
@@ -16,8 +28,15 @@ Unreleased
16
28
  - (RK-386) Remove deprecated `bare` environment type. [#1235](https://github.com/puppetlabs/r10k/issues/1235)
17
29
 
18
30
 
31
+ 3.16.1
32
+ ------
33
+
34
+ - Make metadata loading during incremental deploys more robust [PE-34917](https://perforce.atlassian.net/browse/PE-34917)
35
+ - Use the production forge for integration testing
36
+
19
37
  3.16.0
20
38
  ------
39
+
21
40
  - Emit more debug output when modules fail to sync [#1347](https://github.com/puppetlabs/r10k/pull/1347)
22
41
  - Update GitHub Actions & introduce dependabot [#1337](https://github.com/puppetlabs/r10k/pull/1337)
23
42
  - Update R10K proxy usage to follow newer rugged best practices [PE-35980](https://tickets.puppet.com/browse/PE-35980)
@@ -25,19 +44,23 @@ Unreleased
25
44
 
26
45
  3.15.4
27
46
  ------
47
+
28
48
  - Pin dependencies to maintain support for old Ruby versions [#1329](https://github.com/puppetlabs/r10k/pull/1329)
29
49
 
30
50
  3.15.3
31
51
  ------
52
+
32
53
  - Fix dirty working copy debug logging [#1321](https://github.com/puppetlabs/r10k/pull/1321)
33
54
  - Allow gettext-setup < 2 for compatibility with Ruby 3.2 and Puppet 8 [#1325](https://github.com/puppetlabs/r10k/pull/1325)
34
55
 
35
56
  3.15.2
36
57
  ------
58
+
37
59
  - Implement exclude regex for puppetfile install [#1248](https://github.com/puppetlabs/r10k/issues/1248)
38
60
 
39
61
  3.15.1
40
62
  ------
63
+
41
64
  - Add TOC to configuration docs [#1298](https://github.com/puppetlabs/r10k/issues/1298)
42
65
  - Remove the spec folder from gemspec [#1316](https://github.com/puppetlabs/r10k/issues/1316)
43
66
 
data/CODEOWNERS CHANGED
@@ -1,2 +1 @@
1
- # This repo is owned by the dumpling team
2
- * @puppetlabs/dumpling
1
+ * @puppetlabs/dumpling @puppetlabs/skeletor
data/README.mkd CHANGED
@@ -78,7 +78,7 @@ a git repository using Bundler for dependencies:
78
78
 
79
79
  ### Arch Linux
80
80
 
81
- Arch Linux provides a [system package](https://archlinux.org/packages/community/any/r10k/) for r10k.
81
+ Arch Linux provides a [system package](https://archlinux.org/packages/extra/any/r10k/) for r10k.
82
82
  This is built against the [system Ruby](https://archlinux.org/packages/extra/x86_64/ruby/) (which is Ruby 3.0.2 as of 2021-08-03).
83
83
  This package is maintained by [Tim Meusel](https://github.com/bastelfreak).
84
84
 
data/integration/Gemfile CHANGED
@@ -11,7 +11,7 @@ def location_for(place, fake_version = nil)
11
11
  end
12
12
 
13
13
  gem 'beaker', *location_for(ENV['BEAKER_VERSION'] || '~> 4.5')
14
- gem 'beaker-pe', '~> 2.0'
14
+ gem 'beaker-pe', '~> 3.0'
15
15
  gem 'beaker-answers'
16
16
  gem 'beaker-hostgenerator', *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION'] || '~> 1.1')
17
17
  gem 'beaker-abs', *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.4')
data/integration/Rakefile CHANGED
@@ -69,7 +69,7 @@ rototiller_task :beaker_hostgenerator do |t|
69
69
  # This is a hack :(
70
70
  t.add_flag(:name => '', :default => 'centos7-64mdca-64.fa', :override_env => 'TEST_TARGET')
71
71
 
72
- t.add_flag(:name => '--global-config', :default => '{forge_host=forge-aio01-petest.puppetlabs.com}', :override_env => 'BHG_GLOBAL_CONFIG')
72
+ t.add_flag(:name => '--global-config', :default => '{forge_host=forgeapi.puppet.com}', :override_env => 'BHG_GLOBAL_CONFIG')
73
73
  end
74
74
  end
75
75
 
@@ -4,3 +4,6 @@ test_name 'CODEMGMT-20 - C48 - Install Puppet Enterprise'
4
4
 
5
5
  step 'Install PE'
6
6
  install_pe
7
+
8
+ step 'Stop puppet service to avoid running into existing agent runs'
9
+ on(hosts, puppet('resource service puppet ensure=stopped'))
@@ -6,7 +6,7 @@ test_name 'RK-110 - C88671 - Specify a bad proxy to r10k'
6
6
  confine(:to, :platform => ['el', 'sles'])
7
7
 
8
8
  #Init
9
- master_platform = fact_on(master, 'osfamily')
9
+ master_platform = fact_on(master, 'os.family')
10
10
  r10k_fqp = get_r10k_fqp(master)
11
11
 
12
12
  #Verification
@@ -6,7 +6,7 @@ test_name 'RK-110 - C87652 - Specify the proxy in the r10k.yaml'
6
6
  confine(:to, :platform => ['el', 'sles'])
7
7
 
8
8
  #Init
9
- master_platform = fact_on(master, 'osfamily')
9
+ master_platform = fact_on(master, 'os.family')
10
10
  env_path = on(master, puppet('config print environmentpath')).stdout.rstrip
11
11
  r10k_fqp = get_r10k_fqp(master)
12
12
 
@@ -6,7 +6,7 @@ test_name 'RK-110 - C87651 - Specify a proxy in an environment variable'
6
6
  confine(:to, :platform => ['el', 'sles'])
7
7
 
8
8
  #Init
9
- master_platform = fact_on(master, 'osfamily')
9
+ master_platform = fact_on(master, 'os.family')
10
10
  r10k_fqp = get_r10k_fqp(master)
11
11
 
12
12
  case master_platform
@@ -10,12 +10,12 @@ confine(:to, :platform => ['el', 'ubuntu', 'sles'])
10
10
 
11
11
  if ENV['GIT_PROVIDER'] == 'shellgit'
12
12
  skip_test('Skipping test because removing Git from the system affects other "shellgit" tests.')
13
- elsif fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
13
+ elsif fact_on(master, 'os.family') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
14
14
  skip_test('This version of EL is not supported by this test case!')
15
15
  end
16
16
 
17
17
  #Init
18
- master_platform = fact_on(master, 'osfamily')
18
+ master_platform = fact_on(master, 'os.family')
19
19
  master_certname = on(master, puppet('config', 'print', 'certname')).stdout.rstrip
20
20
  env_path = on(master, puppet('config print environmentpath')).stdout.rstrip
21
21
  r10k_fqp = get_r10k_fqp(master)
@@ -87,7 +87,7 @@ step 'Remove "git" Package from System'
87
87
  if master_platform == 'RedHat'
88
88
  on(master, 'yum remove -y git')
89
89
  elsif master_platform == 'Debian'
90
- if fact_on(master, "operatingsystemmajrelease") == '10.04'
90
+ if fact_on(master, "os.release.major") == '10.04'
91
91
  on(master, 'apt-get remove -y git-core')
92
92
  else
93
93
  on(master, 'apt-get remove -y git')
@@ -8,12 +8,12 @@ confine(:to, :platform => ['el', 'ubuntu', 'sles'])
8
8
 
9
9
  if ENV['GIT_PROVIDER'] == 'shellgit'
10
10
  skip_test('Skipping test because removing Git from the system affects other "shellgit" tests.')
11
- elsif fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
11
+ elsif fact_on(master, 'os.family') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
12
12
  skip_test('This version of EL is not supported by this test case!')
13
13
  end
14
14
 
15
15
  #Init
16
- master_platform = fact_on(master, 'osfamily')
16
+ master_platform = fact_on(master, 'os.family')
17
17
  master_certname = on(master, puppet('config', 'print', 'certname')).stdout.rstrip
18
18
  env_path = on(master, puppet('config print environmentpath')).stdout.rstrip
19
19
  r10k_fqp = get_r10k_fqp(master)
@@ -86,7 +86,7 @@ step 'Remove "git" Package from System'
86
86
  if master_platform == 'RedHat'
87
87
  on(master, 'yum remove -y git')
88
88
  elsif master_platform == 'Debian'
89
- if fact_on(master, "operatingsystemmajrelease") == '10.04'
89
+ if fact_on(master, "os.release.major") == '10.04'
90
90
  on(master, 'apt-get remove -y git-core')
91
91
  else
92
92
  on(master, 'apt-get remove -y git')
@@ -5,7 +5,7 @@ test_name 'CODEMGMT-92 - C59235 - Single Git Source Using "GIT" Transport Protoc
5
5
 
6
6
  confine(:to, :platform => 'el')
7
7
 
8
- if fact_on(master, "operatingsystemmajrelease").to_i < 6
8
+ if fact_on(master, "os.release.major").to_i < 6 || fact_on(master, "os.release.major").to_i > 8
9
9
  skip_test('This version of EL is not supported by this test case!')
10
10
  end
11
11
 
@@ -2,7 +2,7 @@ require 'git_utils'
2
2
  require 'r10k_utils'
3
3
  test_name 'CODEMGMT-86 - C59265 - Attempt to Deploy Environment to Disk with Insufficient Free Space'
4
4
 
5
- if fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
5
+ if fact_on(master, 'os.family') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
6
6
  skip_test('This version of EL is not supported by this test case!')
7
7
  end
8
8
 
@@ -3,7 +3,7 @@ require 'r10k_utils'
3
3
  require 'master_manipulator'
4
4
  test_name 'CODEMGMT-62 - C59239 - Single Environment with 10,000 Files'
5
5
 
6
- if fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
6
+ if fact_on(master, 'os.family') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
7
7
  skip_test('This version of EL is not supported by this test case!')
8
8
  end
9
9
 
@@ -3,7 +3,7 @@ require 'r10k_utils'
3
3
  require 'master_manipulator'
4
4
  test_name 'CODEMGMT-62 - C59242 - Single Environment with Large Binary Files'
5
5
 
6
- if fact_on(master, 'osfamily') == 'RedHat' and fact_on(master, "operatingsystemmajrelease").to_i < 6
6
+ if fact_on(master, 'os.family') == 'RedHat' and fact_on(master, "os.release.major").to_i < 6
7
7
  skip_test('This version of EL is not supported by this test case!')
8
8
  end
9
9
 
@@ -101,7 +101,7 @@ class R10K::Git::ShellGit::WorkingRepository < R10K::Git::ShellGit::BaseReposito
101
101
  logger.debug(_("Found local modifications in %{file_path}" % {file_path: File.join(@path, file)}))
102
102
 
103
103
  # Do this in a block so that the extra subprocess only gets invoked when needed.
104
- logger.debug1 { git(['diff-index', '-p', 'HEAD', file], :path => @path.to_s, :raise_on_fail => false).stdout }
104
+ logger.debug1 { git(['diff-index', '-p', 'HEAD', '--', file], :path => @path.to_s, :raise_on_fail => false).stdout }
105
105
  end
106
106
 
107
107
  return dirty_files.size > 0
@@ -104,8 +104,11 @@ module R10K
104
104
  @existing_module_versions_by_name = @existing_module_metadata.map {|mod| [ mod.name, mod.version ] }.to_h
105
105
  empty_load_output.merge(modules: @existing_module_metadata)
106
106
 
107
- rescue SyntaxError, LoadError, ArgumentError, NameError => e
107
+ rescue ScriptError, StandardError => e
108
108
  logger.warn _("Unable to preload Puppetfile because of %{msg}" % { msg: e.message })
109
+
110
+ @existing_module_metadata = []
111
+ @existing_module_versions_by_name = {}
109
112
  end
110
113
 
111
114
  def add_module_metadata(name, info)
data/lib/r10k/version.rb CHANGED
@@ -2,5 +2,5 @@ module R10K
2
2
  # When updating to a new major (X) or minor (Y) version, include `#major` or
3
3
  # `#minor` (respectively) in your commit message to trigger the appropriate
4
4
  # release. Otherwise, a new patch (Z) version will be released.
5
- VERSION = '4.0.0'
5
+ VERSION = '4.0.2'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r10k
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Thebo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-01 00:00:00.000000000 Z
11
+ date: 2024-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colored2