Skip to content

Commit

Permalink
Merge pull request #1354 from justinstoller/merge-3x-into-4x
Browse files Browse the repository at this point in the history
Merge 3x into 4x
  • Loading branch information
jonathannewman authored Jul 26, 2023
2 parents bbd359d + e44a07b commit e1f5ffa
Show file tree
Hide file tree
Showing 44 changed files with 60 additions and 498 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
- run: gem install bundler
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Build container
working-directory: docker
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
fetch-depth: '0'
- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.35.0
uses: anothrNick/github-tag-action@1.67.0
env:
GITHUB_TOKEN: ${{ secrets.PUPPET_RELEASE_GH_TOKEN }}
DEFAULT_BUMP: patch
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v3
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 60
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ Unreleased

- Drop Ruby 2.3/2.4/2.5 support; puppet_forge: Use 4.1 and newer [#1336](https://github.com/puppetlabs/r10k/pull/1336)


3.16.0
------
- Emit more debug output when modules fail to sync [#1347](https://github.com/puppetlabs/r10k/pull/1347)
- Update GitHub Actions & introduce dependabot [#1337](https://github.com/puppetlabs/r10k/pull/1337)
- Update R10K proxy usage to follow newer rugged best practices [PE-35980](https://tickets.puppet.com/browse/PE-35980)
- Update Acceptance tests to be compatible with Puppet 8 [#1349](https://github.com/puppetlabs/r10k/pull/1349)

3.15.4
------
- Pin dependencies to maintain support for old Ruby versions [#1329](https://github.com/puppetlabs/r10k/pull/1329)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ group :extra do
end

group :development do
gem 'simplecov', '~> 0.9.1'
gem 'simplecov', '~> 0.17.1'
gem 'ruby-prof', :platforms => :ruby
end

Expand Down
2 changes: 1 addition & 1 deletion integration/files/pre-suite/git_config.pp.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$git_package = $osfamily ? {
$git_package = $facts['os']['family'] ? {
'Debian' => 'git-core',
default => 'git'
}
Expand Down
3 changes: 0 additions & 3 deletions integration/pre-suite/10_git_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
fail_test('This pre-suite requires PE 3.7 or above!') if pe_version < 3.7

#Setup
step 'Stub Forge on Master'
stub_forge_on(master)

step 'Read module path'
on(master, puppet('config print basemodulepath')) do |result|
(result.stdout.include? ':') ? separator = ':' : separator = ';'
Expand Down
9 changes: 5 additions & 4 deletions integration/tests/Puppetfile/HTTP_PROXY_affects_git_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

puppetfile =<<-EOS
mod 'motd',
:git => 'https://github.com/puppetlabs/puppetlabs-motd'
:git => 'https://github.com/puppetlabs/puppetlabs-motd', :branch => 'main'
EOS

proxy_env_value = 'http://ferritsarebest.net:3219'
Expand All @@ -36,7 +36,7 @@
CONF

teardown do
master.clear_env_var('HTTP_PROXY')
master.clear_env_var('HTTPS_PROXY')

step 'Restore Original "r10k" Config'
on(master, "mv #{r10k_config_bak_path} #{r10k_config_path}")
Expand All @@ -45,7 +45,7 @@
clean_up_r10k(master, last_commit, git_environments_path)
end

master.add_env_var('HTTP_PROXY', proxy_env_value)
master.add_env_var('HTTPS_PROXY', proxy_env_value)

step 'Backup Current "r10k" Config'
on(master, "mv #{r10k_config_path} #{r10k_config_bak_path}")
Expand All @@ -64,7 +64,8 @@

#test
on(master, "#{r10k_fqp} deploy environment -p", :accept_all_exit_codes => true) do |r|
regex = /(Couldn't|Could not) resolve proxy.*ferritsarebest\.net/i
# Rugged as of 0.28 has a different error message than shellgit
regex = /((failed to resolve address for)|(Could not resolve proxy:)) ferritsarebest\.net/
assert(r.exit_code == 1, 'expected error code was not observed')
assert_match(regex, r.stderr, 'The expected error message was not observed' )
end

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
CONF

#Verification
squid_log_regex = /CONNECT forgeapi.puppetlabs.com:443/
squid_log_regex = /CONNECT forgeapi.puppet(labs)?.com:443/

#Teardown
teardown do
Expand Down
128 changes: 0 additions & 128 deletions integration/tests/basic_functionality/proxy_with_pe_only_module.rb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
squid_log = "/var/log/squid/access.log"

#Verification
squid_log_regex = /CONNECT forgeapi.puppetlabs.com:443/
squid_log_regex = /CONNECT forgeapi.puppet(labs)?.com:443/

#Teardown
teardown do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ class { 'motd':
end

#Setup
step 'Stub Forge on Master'
stub_forge_on(master)

step 'Inject New "site.pp" to the "production" Environment'
inject_site_pp(master, site_pp_path, site_pp)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ class { 'motd':
end

#Setup
step 'Stub Forge on Master'
stub_forge_on(master)

step 'Inject New "site.pp" to the "production" Environment'
inject_site_pp(master, site_pp_path, site_pp)

Expand Down
Loading

0 comments on commit e1f5ffa

Please sign in to comment.