Skip to content

Commit 0b52d33

Browse files
authored
Merge pull request #1164 from puppetlabs/pdksync_remove_puppet5
pdksync - Remove Puppet 5 from testing and bump minimal version to 6.0.0
2 parents 4a35ba8 + b5afe24 commit 0b52d33

File tree

5 files changed

+93
-62
lines changed

5 files changed

+93
-62
lines changed

.github/workflows/auto_release.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: "Auto release"
2+
3+
on:
4+
schedule:
5+
- cron: '0 3 * * 6'
6+
workflow_dispatch:
7+
8+
env:
9+
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
10+
HONEYCOMB_DATASET: litmus tests
11+
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
13+
jobs:
14+
auto_release:
15+
name: "Automatic release prep"
16+
runs-on: ubuntu-20.04
17+
18+
steps:
19+
- name: "Honeycomb: Start recording"
20+
uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
21+
with:
22+
apikey: ${{ env.HONEYCOMB_WRITEKEY }}
23+
dataset: ${{ env.HONEYCOMB_DATASET }}
24+
job-status: ${{ job.status }}
25+
26+
- name: "Honeycomb: start first step"
27+
run: |
28+
echo STEP_ID="auto-release" >> $GITHUB_ENV
29+
echo STEP_START=$(date +%s) >> $GITHUB_ENV
30+
31+
- name: "Checkout Source"
32+
if: ${{ github.repository_owner == 'puppetlabs' }}
33+
uses: actions/checkout@v2
34+
with:
35+
fetch-depth: 0
36+
persist-credentials: false
37+
38+
- name: "PDK Release prep"
39+
uses: docker://puppet/pdk:nightly
40+
with:
41+
args: 'release prep --force'
42+
env:
43+
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
45+
- name: "Get Version"
46+
if: ${{ github.repository_owner == 'puppetlabs' }}
47+
id: gv
48+
run: |
49+
echo "::set-output name=ver::$(cat metadata.json | jq .version | tr -d \")"
50+
51+
- name: "Commit changes"
52+
if: ${{ github.repository_owner == 'puppetlabs' }}
53+
run: |
54+
git config --local user.email "action@github.com"
55+
git config --local user.name "GitHub Action"
56+
git add .
57+
git commit -m "Release prep v${{ steps.gv.outputs.ver }}"
58+
59+
- name: Create Pull Request
60+
id: cpr
61+
uses: puppetlabs/peter-evans-create-pull-request@v3
62+
if: ${{ github.repository_owner == 'puppetlabs' }}
63+
with:
64+
token: ${{ secrets.GITHUB_TOKEN }}
65+
commit-message: "Release prep v${{ steps.gv.outputs.ver }}"
66+
branch: "release-prep"
67+
delete-branch: true
68+
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)"
70+
labels: "maintenance"
71+
72+
- name: PR outputs
73+
if: ${{ github.repository_owner == 'puppetlabs' }}
74+
run: |
75+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
76+
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'

.sync.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
- puppet6
2727
provision_list:
2828
- travis_ub_6
29-
- collection:
30-
puppet_collection:
31-
- puppet5
32-
provision_list:
33-
- travis_ub_5
3429
simplecov: true
3530
notifications:
3631
slack:
@@ -65,3 +60,5 @@ spec/spec_helper.rb:
6560
unmanaged: false
6661
.github/workflows/pr_test.yml:
6762
unmanaged: false
63+
.github/workflows/auto_release.yml:
64+
unmanaged: false

.travis.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,57 +27,46 @@ stages:
2727
jobs:
2828
fast_finish: true
2929
include:
30-
- before_script:
30+
- bundler_args: --with system_tests
31+
before_script:
3132
- "bundle exec rake 'litmus:provision_list[travis_ub_6]'"
3233
- "bundle exec rake 'litmus:install_agent[puppet6]'"
3334
- "bundle exec rake litmus:install_module"
3435
env:
3536
PLATFORMS: travis_ub_6_puppet6
36-
BUNDLE_WITH: system_tests
3737
rvm: 2.5.7
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:
41+
- bundler_args: --with system_tests
42+
before_script:
5343
- "bundle exec rake 'litmus:provision_list[travis_deb]'"
5444
- "bundle exec rake 'litmus:install_agent[puppet6]'"
5545
- "bundle exec rake litmus:install_module"
5646
env:
5747
PLATFORMS: travis_deb_puppet6
58-
BUNDLE_WITH: system_tests
5948
rvm: 2.5.7
6049
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
6150
services: docker
6251
stage: acceptance
63-
- before_script:
52+
- bundler_args: --with system_tests
53+
before_script:
6454
- "bundle exec rake 'litmus:provision_list[travis_el7]'"
6555
- "bundle exec rake 'litmus:install_agent[puppet6]'"
6656
- "bundle exec rake litmus:install_module"
6757
env:
6858
PLATFORMS: travis_el7_puppet6
69-
BUNDLE_WITH: system_tests
7059
rvm: 2.5.7
7160
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
7261
services: docker
7362
stage: acceptance
74-
- before_script:
63+
- bundler_args: --with system_tests
64+
before_script:
7565
- "bundle exec rake 'litmus:provision_list[travis_el8]'"
7666
- "bundle exec rake 'litmus:install_agent[puppet6]'"
7767
- "bundle exec rake litmus:install_module"
7868
env:
7969
PLATFORMS: travis_el8_puppet6
80-
BUNDLE_WITH: system_tests
8170
rvm: 2.5.7
8271
script: ["travis_wait 45 bundle exec rake litmus:acceptance:parallel"]
8372
services: docker

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@
9898
"requirements": [
9999
{
100100
"name": "puppet",
101-
"version_requirement": ">= 5.5.10 < 8.0.0"
101+
"version_requirement": ">= 6.0.0 < 8.0.0"
102102
}
103103
],
104104
"description": "Standard Library for Puppet Modules",
105105
"pdk-version": "1.18.1",
106106
"template-url": "https://github.com/puppetlabs/pdk-templates#main",
107-
"template-ref": "heads/main-0-g2bf2de6"
107+
"template-ref": "heads/main-0-g44cc7ed"
108108
}

provision.yaml

Lines changed: 0 additions & 36 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,36 +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-
- ubuntu-1404-x86_64
60-
- ubuntu-1604-x86_64
61-
- ubuntu-1804-x86_64
62-
- win-2008-x86_64
63-
- win-2008r2-x86_64
64-
- win-2012-x86_64
65-
- win-2012r2-x86_64
66-
- win-2016-x86_64
67-
- win-2019-x86_64
68-
- win-7-x86_64
69-
- win-81-x86_64
70-
- win-10-pro-x86_64
7135
release_checks_6:
7236
provisioner: abs
7337
images:

0 commit comments

Comments
 (0)