Skip to content

Commit 587fc12

Browse files
authored
Merge pull request #1238 from puppetlabs/pdksync_remove_puppet5
pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0
2 parents a50a3b5 + 7f91592 commit 587fc12

File tree

6 files changed

+24
-104
lines changed

6 files changed

+24
-104
lines changed

.github/workflows/auto_release.yml

Lines changed: 15 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -35,50 +35,26 @@ jobs:
3535
fetch-depth: 0
3636
persist-credentials: false
3737

38-
- name: Append PDK to Gemfile
39-
if: ${{ github.repository_owner == 'puppetlabs' }}
40-
run: |
41-
echo "gem 'pdk'" >> Gemfile
42-
43-
- name: Activate Ruby 2.7
44-
uses: ruby/setup-ruby@v1
45-
if: ${{ github.repository_owner == 'puppetlabs' }}
38+
- name: "PDK Release prep"
39+
uses: docker://puppet/pdk:nightly
4640
with:
47-
ruby-version: "2.7"
48-
bundler-cache: true
49-
50-
- name: Print bundle environment
51-
if: ${{ github.repository_owner == 'puppetlabs' }}
52-
run: |
53-
echo ::group::bundler environment
54-
buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
55-
echo ::endgroup::
56-
57-
- name: "Honeycomb: Record Bundler Setup time"
58-
if: ${{ github.repository_owner == 'puppetlabs' }}
59-
run: |
60-
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Bundler Setup'
61-
echo STEP_ID="auto_release_setup" >> $GITHUB_ENV
62-
echo STEP_START=$(date +%s) >> $GITHUB_ENV
41+
args: 'release prep --force'
42+
env:
43+
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6344

64-
- name: "PDK Release prep"
45+
- name: "Get Version"
6546
if: ${{ github.repository_owner == 'puppetlabs' }}
47+
id: gv
6648
run: |
67-
buildevents cmd $TRACE_ID $STEP_ID 'pdk release prep' -- bundle exec pdk release prep --force
49+
echo "::set-output name=ver::$(cat metadata.json | jq .version | tr -d \")"
6850
6951
- name: "Commit changes"
7052
if: ${{ github.repository_owner == 'puppetlabs' }}
7153
run: |
7254
git config --local user.email "action@github.com"
7355
git config --local user.name "GitHub Action"
7456
git add .
75-
git commit -m "Auto-Release prep"
76-
77-
- name: "Get Version"
78-
if: ${{ github.repository_owner == 'puppetlabs' }}
79-
id: gv
80-
run: |
81-
echo "::set-output name=ver::$(cat metadata.json | jq .version)"
57+
git commit -m "Release prep v${{ steps.gv.outputs.ver }}"
8258
8359
- name: Create Pull Request
8460
id: cpr
@@ -90,10 +66,16 @@ jobs:
9066
branch: "release-prep"
9167
delete-branch: true
9268
title: "Release prep v${{ steps.gv.outputs.ver }}"
69+
body: "Automated release-prep through [pdk-templates](https://github.com/puppetlabs/pdk-templates/blob/main/moduleroot/.github/workflows/auto_release.yml.erb)"
9370
labels: "maintenance"
9471

9572
- name: PR outputs
9673
if: ${{ github.repository_owner == 'puppetlabs' }}
9774
run: |
9875
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
9976
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
77+
78+
- name: "Honeycomb: Record finish step"
79+
if: ${{ always() }}
80+
run: |
81+
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Finished auto release workflow'

.rubocop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ RSpec/BeforeAfterAll:
2929
RSpec/HookArgument:
3030
Description: Prefer explicit :each argument, matching existing module's style
3131
EnforcedStyle: each
32+
RSpec/DescribeSymbol:
33+
Exclude:
34+
- spec/unit/facter/**/*.rb
3235
Style/BlockDelimiters:
3336
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
3437
be consistent then.
@@ -404,6 +407,8 @@ Style/ExponentialNotation:
404407
Enabled: false
405408
Style/FloatDivision:
406409
Enabled: false
410+
Style/FrozenStringLiteralComment:
411+
Enabled: false
407412
Style/GlobalStdStream:
408413
Enabled: false
409414
Style/HashAsLastArrayItem:

.sync.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
- puppet6
2323
provision_list:
2424
- travis_ub_6
25-
- collection:
26-
puppet_collection:
27-
- puppet5
28-
provision_list:
29-
- travis_ub_5
3025
simplecov: true
3126
notifications:
3227
slack:
@@ -50,3 +45,5 @@ spec/spec_helper.rb:
5045
unmanaged: false
5146
.gitpod.yml:
5247
unmanaged: false
48+
.github/workflows/auto_release.yml:
49+
unmanaged: false

.travis.yml

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -38,39 +38,6 @@ jobs:
3838
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
3939
services: docker
4040
stage: acceptance
41-
- before_script:
42-
- "bundle exec rake 'litmus:provision_list[travis_ub_5]'"
43-
- "bundle exec rake 'litmus:install_agent[puppet5]'"
44-
- "bundle exec rake litmus:install_module"
45-
env:
46-
PLATFORMS: travis_ub_5_puppet5
47-
BUNDLE_WITH: system_tests
48-
rvm: 2.5.7
49-
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
50-
services: docker
51-
stage: acceptance
52-
- before_script:
53-
- "bundle exec rake 'litmus:provision_list[travis_deb]'"
54-
- "bundle exec rake 'litmus:install_agent[puppet5]'"
55-
- "bundle exec rake litmus:install_module"
56-
env:
57-
PLATFORMS: travis_deb_puppet5
58-
BUNDLE_WITH: system_tests
59-
rvm: 2.5.7
60-
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
61-
services: docker
62-
stage: acceptance
63-
- before_script:
64-
- "bundle exec rake 'litmus:provision_list[travis_el7]'"
65-
- "bundle exec rake 'litmus:install_agent[puppet5]'"
66-
- "bundle exec rake litmus:install_module"
67-
env:
68-
PLATFORMS: travis_el7_puppet5
69-
BUNDLE_WITH: system_tests
70-
rvm: 2.5.7
71-
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
72-
services: docker
73-
stage: acceptance
7441
- before_script:
7542
- "bundle exec rake 'litmus:provision_list[travis_deb]'"
7643
- "bundle exec rake 'litmus:install_agent[puppet6]'"
@@ -96,10 +63,6 @@ jobs:
9663
-
9764
env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
9865
stage: static
99-
-
100-
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
101-
rvm: 2.4.5
102-
stage: spec
10366
-
10467
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
10568
rvm: 2.5.7

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@
8484
"requirements": [
8585
{
8686
"name": "puppet",
87-
"version_requirement": ">= 5.5.10 < 8.0.0"
87+
"version_requirement": ">= 6.0.0 < 8.0.0"
8888
}
8989
],
9090
"pdk-version": "1.18.1",
9191
"template-url": "https://github.com/puppetlabs/pdk-templates#main",
92-
"template-ref": "heads/main-0-gec9c129"
92+
"template-ref": "heads/main-0-g44cc7ed"
9393
}

provision.yaml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ travis_deb:
1414
- litmusimage/debian:8
1515
- litmusimage/debian:9
1616
- litmusimage/debian:10
17-
travis_ub_5:
18-
provisioner: docker
19-
images:
20-
- litmusimage/ubuntu:14.04
21-
- litmusimage/ubuntu:16.04
22-
- litmusimage/ubuntu:18.04
2317
travis_ub_6:
2418
provisioner: docker
2519
images:
@@ -37,27 +31,6 @@ travis_el8:
3731
provisioner: docker
3832
images:
3933
- litmusimage/centos:8
40-
release_checks_5:
41-
provisioner: abs
42-
images:
43-
- redhat-6-x86_64
44-
- redhat-7-x86_64
45-
- redhat-8-x86_64
46-
- centos-6-x86_64
47-
- centos-7-x86_64
48-
- centos-8-x86_64
49-
- oracle-5-x86_64
50-
- oracle-6-x86_64
51-
- oracle-7-x86_64
52-
- scientific-6-x86_64
53-
- scientific-7-x86_64
54-
- debian-8-x86_64
55-
- debian-9-x86_64
56-
- debian-10-x86_64
57-
- sles-12-x86_64
58-
- ubuntu-1404-x86_64
59-
- ubuntu-1604-x86_64
60-
- ubuntu-1804-x86_64
6134
release_checks_6:
6235
provisioner: abs
6336
images:

0 commit comments

Comments
 (0)