Skip to content

Commit 5e9b192

Browse files
authored
Merge pull request #394 from puppetlabs/pdksync_remove_puppet5
pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0
2 parents dbfea4b + 85005a7 commit 5e9b192

File tree

7 files changed

+34
-151
lines changed

7 files changed

+34
-151
lines changed

.github/workflows/auto_release.yml

Lines changed: 24 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
env:
9-
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
9+
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
1010
HONEYCOMB_DATASET: litmus tests
1111
SERVICE_URL: https://facade-main-6f3kfepqcq-ew.a.run.app/v1/provision
1212
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: "Honeycomb: Start recording"
21-
uses: kvrhdn/gha-buildevents@5be4636b81803713c94d7cb7e3a4b85d759df112 # pin@v1.0.2
21+
uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
2222
with:
2323
apikey: ${{ env.HONEYCOMB_WRITEKEY }}
2424
dataset: ${{ env.HONEYCOMB_DATASET }}
@@ -30,83 +30,53 @@ jobs:
3030
echo STEP_START=$(date +%s) >> $GITHUB_ENV
3131
3232
- name: "Checkout Source"
33+
if: ${{ github.repository_owner == 'puppetlabs' }}
3334
uses: actions/checkout@v2
3435
with:
3536
fetch-depth: 0
3637
persist-credentials: false
3738

38-
- name: Activate Ruby 2.6
39-
uses: actions/setup-ruby@v1
40-
with:
41-
ruby-version: "2.6"
42-
43-
- name: Cache gems
44-
uses: actions/cache@v2
39+
- name: "PDK Release prep"
40+
uses: docker://puppet/pdk:nightly
4541
with:
46-
path: vendor/gems
47-
key: ${{ runner.os }}-${{ github.event_name }}-${{ hashFiles('**/Gemfile') }}
48-
restore-keys: |
49-
${{ runner.os }}-${{ github.event_name }}-
50-
${{ runner.os }}-
51-
52-
- name: "Honeycomb: Record cache setup time"
53-
if: ${{ always() }}
54-
run: |
55-
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Cache retrieval'
56-
echo STEP_ID="auto_release" >> $GITHUB_ENV
57-
echo STEP_START=$(date +%s) >> $GITHUB_ENV
42+
args: 'release prep --force'
43+
env:
44+
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5845

59-
- name: Append PDK to Gemfile
60-
run: |
61-
echo "gem 'pdk'" >> Gemfile
62-
63-
- name: Bundler Setup
64-
run: |
65-
buildevents cmd $TRACE_ID $STEP_ID 'bundle config path vendor/gems' -- bundle config path vendor/gems
66-
buildevents cmd $TRACE_ID $STEP_ID 'bundle config bin vendor/bins' -- bundle config bin vendor/bins
67-
buildevents cmd $TRACE_ID $STEP_ID 'bundle config jobs 8' -- bundle config jobs 8
68-
buildevents cmd $TRACE_ID $STEP_ID 'bundle config retry 3' -- bundle config retry 3
69-
buildevents cmd $TRACE_ID $STEP_ID 'bundle install' -- bundle install
70-
buildevents cmd $TRACE_ID $STEP_ID 'bundle clean' -- bundle clean
71-
echo ::group::bundler environment
72-
buildevents cmd $TRACE_ID $STEP_ID 'bundle env' -- bundle env
73-
echo ::endgroup::
74-
75-
- name: "Honeycomb: Record Bundler Setup time"
76-
if: ${{ always() }}
77-
run: |
78-
buildevents step $TRACE_ID $STEP_ID $STEP_START 'Bundler Setup'
79-
echo STEP_ID="auto_release" >> $GITHUB_ENV
80-
echo STEP_START=$(date +%s) >> $GITHUB_ENV
81-
82-
- name: "PDK Release prep"
46+
- name: "Get Version"
47+
if: ${{ github.repository_owner == 'puppetlabs' }}
48+
id: gv
8349
run: |
84-
buildevents cmd $TRACE_ID $STEP_ID 'pdk release prep' -- ./vendor/bins/pdk release prep --force
50+
echo "::set-output name=ver::$(cat metadata.json | jq .version | tr -d \")"
8551
8652
- name: "Commit changes"
53+
if: ${{ github.repository_owner == 'puppetlabs' }}
8754
run: |
8855
git config --local user.email "action@github.com"
8956
git config --local user.name "GitHub Action"
9057
git add .
91-
git commit -m "Auto-Release prep"
92-
93-
- name: "Get Version"
94-
id: gv
95-
run: |
96-
echo "::set-output name=ver::$(cat metadata.json | jq .version)"
58+
git commit -m "Release prep v${{ steps.gv.outputs.ver }}"
9759
9860
- name: Create Pull Request
9961
id: cpr
10062
uses: puppetlabs/peter-evans-create-pull-request@v3
63+
if: ${{ github.repository_owner == 'puppetlabs' }}
10164
with:
10265
token: ${{ secrets.GITHUB_TOKEN }}
103-
commit-message: "Auto-release prep"
66+
commit-message: "Release prep v${{ steps.gv.outputs.ver }}"
10467
branch: "release-prep"
10568
delete-branch: true
106-
title: "Auto-release prep ${{ steps.gv.outputs.ver }}"
69+
title: "Release prep v${{ steps.gv.outputs.ver }}"
70+
body: "Automated release-prep through [pdk-templates](https://github.com/puppetlabs/pdk-templates/blob/main/moduleroot/.github/workflows/auto_release.yml.erb)"
10771
labels: "maintenance"
10872

10973
- name: PR outputs
74+
if: ${{ github.repository_owner == 'puppetlabs' }}
11075
run: |
11176
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
11277
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
78+
79+
- name: "Honeycomb: Record finish step"
80+
if: ${{ always() }}
81+
run: |
82+
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
@@ -27,11 +27,6 @@ common:
2727
- puppet6
2828
provision_list:
2929
- travis_ub_6
30-
- collection:
31-
puppet_collection:
32-
- puppet5
33-
provision_list:
34-
- travis_ub_5
3530
simplecov: true
3631
notifications:
3732
slack:
@@ -69,3 +64,5 @@ spec/spec_helper.rb:
6964
unmanaged: false
7065
.github/workflows/pr_test.yml:
7166
unmanaged: false
67+
.github/workflows/auto_release.yml:
68+
unmanaged: false

.travis.yml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -38,50 +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
74-
- before_script:
75-
- "bundle exec rake 'litmus:provision_list[travis_el8]'"
76-
- "bundle exec rake 'litmus:install_agent[puppet5]'"
77-
- "bundle exec rake litmus:install_module"
78-
env:
79-
PLATFORMS: travis_el8_puppet5
80-
BUNDLE_WITH: system_tests
81-
rvm: 2.5.7
82-
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
83-
services: docker
84-
stage: acceptance
8541
- before_script:
8642
- "bundle exec rake 'litmus:provision_list[travis_deb]'"
8743
- "bundle exec rake 'litmus:install_agent[puppet6]'"
@@ -118,10 +74,6 @@ jobs:
11874
-
11975
env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint"
12076
stage: static
121-
-
122-
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
123-
rvm: 2.4.5
124-
stage: spec
12577
-
12678
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec
12779
rvm: 2.5.7

appveyor.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ environment:
2121
-
2222
RUBY_VERSION: 25-x64
2323
CHECK: syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop
24-
-
25-
PUPPET_GEM_VERSION: ~> 5.0
26-
RUBY_VERSION: 24
27-
CHECK: parallel_spec
28-
-
29-
PUPPET_GEM_VERSION: ~> 5.0
30-
RUBY_VERSION: 24-x64
31-
CHECK: parallel_spec
3224
-
3325
PUPPET_GEM_VERSION: ~> 6.0
3426
RUBY_VERSION: 25

metadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@
9494
"requirements": [
9595
{
9696
"name": "puppet",
97-
"version_requirement": ">= 5.5.10 < 8.0.0"
97+
"version_requirement": ">= 6.0.0 < 8.0.0"
9898
}
9999
],
100100
"description": "This module simply manages /etc/motd or the Windows Logon Message as a template, showing interpolation of system attributes",
101101
"template-url": "https://github.com/puppetlabs/pdk-templates.git#main",
102-
"template-ref": "heads/main-0-g1862b96",
103-
"pdk-version": "1.19.0.pre (47)"
102+
"template-ref": "heads/main-0-g44cc7ed",
103+
"pdk-version": "1.18.1"
104104
}

provision.yaml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ travis_deb:
1515
- litmusimage/debian:8
1616
- litmusimage/debian:9
1717
- litmusimage/debian:10
18-
travis_ub_5:
19-
provisioner: docker
20-
images:
21-
- litmusimage/ubuntu:14.04
22-
- litmusimage/ubuntu:16.04
23-
- litmusimage/ubuntu:18.04
2418
travis_ub_6:
2519
provisioner: docker
2620
images:
@@ -38,33 +32,6 @@ travis_el8:
3832
provisioner: docker
3933
images:
4034
- litmusimage/centos:8
41-
release_checks_5:
42-
provisioner: abs
43-
images:
44-
- redhat-6-x86_64
45-
- redhat-7-x86_64
46-
- redhat-8-x86_64
47-
- centos-6-x86_64
48-
- centos-7-x86_64
49-
- centos-8-x86_64
50-
- oracle-5-x86_64
51-
- oracle-6-x86_64
52-
- oracle-7-x86_64
53-
- scientific-6-x86_64
54-
- scientific-7-x86_64
55-
- debian-8-x86_64
56-
- debian-9-x86_64
57-
- debian-10-x86_64
58-
- sles-12-x86_64
59-
- sles-15-x86_64
60-
- ubuntu-1404-x86_64
61-
- ubuntu-1604-x86_64
62-
- ubuntu-1804-x86_64
63-
- win-2008r2-x86_64
64-
- win-2012r2-x86_64
65-
- win-2016-core-x86_64
66-
- win-2019-core-x86_64
67-
- win-10-pro-x86_64
6835
release_checks_6:
6936
provisioner: abs
7037
images:

0 commit comments

Comments
 (0)