Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/1.6.5' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
dallinb committed Dec 28, 2020
2 parents ecfaaa4 + 2154c42 commit 70c45dc
Show file tree
Hide file tree
Showing 36 changed files with 582 additions and 389 deletions.
39 changes: 0 additions & 39 deletions .circleci/config.yml

This file was deleted.

160 changes: 160 additions & 0 deletions .gitchangelog.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
# -*- coding: utf-8; mode: python -*-
import yaml

##
## Format
##
## ACTION: [AUDIENCE:] COMMIT_MSG [!TAG ...]
##
## Description
##
## ACTION is one of 'chg', 'fix', 'new'
##
## Is WHAT the change is about.
##
## 'chg' is for refactor, small improvement, cosmetic changes...
## 'fix' is for bug fixes
## 'new' is for new features, big improvement
##
## AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc'
##
## Is WHO is concerned by the change.
##
## 'dev' is for developpers (API changes, refactors...)
## 'usr' is for final users (UI changes)
## 'pkg' is for packagers (packaging changes)
## 'test' is for testers (test only related changes)
## 'doc' is for doc guys (doc only changes)
##
## COMMIT_MSG is ... well ... the commit message itself.
##
## TAGs are additionnal adjective as 'refactor' 'minor' 'cosmetic'
##
## They are preceded with a '!' or a '@' (prefer the former, as the
## latter is wrongly interpreted in github.) Commonly used tags are:
##
## 'refactor' is obviously for refactoring code only
## 'minor' is for a very meaningless change (a typo, adding a comment)
## 'cosmetic' is for cosmetic driven change (re-indentation, 80-col...)
## 'wip' is for partial functionality but complete subfunctionality.
##
## Example:
##
## new: usr: support of bazaar implemented
## chg: re-indentend some lines !cosmetic
## new: dev: updated code to be compatible with last version of killer lib.
## fix: pkg: updated year of licence coverage.
## new: test: added a bunch of test around user usability of feature X.
## fix: typo in spelling my name in comment. !minor
##
## Please note that multi-line commit message are supported, and only the
## first line will be considered as the "summary" of the commit message. So
## tags, and other rules only applies to the summary. The body of the commit
## message will be displayed in the changelog without reformatting.


## ``ignore_regexps`` is a line of regexps
##
## Any commit having its full commit message matching any regexp listed here
## will be ignored and won't be reported in the changelog.
##
ignore_regexps = [
r'@minor', r'!minor',
r'@cosmetic', r'!cosmetic',
r'@refactor', r'!refactor',
r'@wip', r'!wip',
r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[p|P]kg:',
r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[d|D]ev:',
r'^(.{3,3}\s*:)?\s*[fF]irst commit.?\s*$',
r'^$', ## ignore commits with empty messages
]


## ``section_regexps`` is a list of 2-tuples associating a string label and a
## list of regexp
##
## Commit messages will be classified in sections thanks to this. Section
## titles are the label, and a commit is classified under this section if any
## of the regexps associated is matching.
##
## Please note that ``section_regexps`` will only classify commits and won't
## make any changes to the contents. So you'll probably want to go check
## ``subject_process`` (or ``body_process``) to do some changes to the subject,
## whenever you are tweaking this variable.
##
section_regexps = [
('New', [
r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
]),
('Changes', [
r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
]),
('Fix', [
r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
]),

('Other', None ## Match all lines
),

]


## ``body_process`` is a callable
##
## This callable will be given the original body and result will
## be used in the changelog.
##
## Available constructs are:
##
## - any python callable that take one txt argument and return txt argument.
##
## - ReSub(pattern, replacement): will apply regexp substitution.
##
## - Indent(chars=" "): will indent the text with the prefix
## Please remember that template engines gets also to modify the text and
## will usually indent themselves the text if needed.
##
## - Wrap(regexp=r"\n\n"): re-wrap text in separate paragraph to fill 80-Columns
##
## - noop: do nothing
##
## - ucfirst: ensure the first letter is uppercase.
## (usually used in the ``subject_process`` pipeline)
##
## - final_dot: ensure text finishes with a dot
## (usually used in the ``subject_process`` pipeline)
##
## - strip: remove any spaces before or after the content of the string
##
## - SetIfEmpty(msg="No commit message."): will set the text to
## whatever given ``msg`` if the current text is empty.
##
## Additionally, you can `pipe` the provided filters, for instance:
body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*(\n\s+.*)*)+$', r'') | strip

subject_process = (strip |
ReSub(r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$', r'\4') |
SetIfEmpty("No commit message.") | ucfirst | final_dot)


## ``tag_filter_regexp`` is a regexp
##
## Tags that will be used for the changelog must match this regexp.
##
tag_filter_regexp = r'^[0-9]+\.[0-9]+(\.[0-9]+)?$'


with open('vars/main.yml') as stream:
unreleased_version_label = yaml.safe_load(stream)['cassandra_role_version']

output_engine = mustache("markdown")
include_merge = False
log_encoding = 'utf-8'
OUTPUT_FILE = "CHANGELOG.md"
INSERT_POINT_REGEX = r'(\#\#\s*)'
revs = ['^1.6.4', 'HEAD']

publish = FileInsertAtFirstRegexMatch(
OUTPUT_FILE, INSERT_POINT_REGEX,
idx=lambda m: m.start(1)
)
38 changes: 38 additions & 0 deletions .github/workflows/centos7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: CI CentOS 7

on:
pull_request:
branches: [ develop ]

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Deploy the Initial Clusters
env:
COMMAND: /usr/sbin/init
DISTRO: centos
TAG: 7
run: molecule test --destroy never

- name: Combine the Clusters
env:
COMMAND: /usr/sbin/init
DISTRO: centos
TAG: 7
run: molecule test --scenario-name combine_cluster
38 changes: 38 additions & 0 deletions .github/workflows/centos8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: CI CentOS 8

on:
pull_request:
branches: [ develop ]

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Deploy the Initial Clusters
env:
COMMAND: /usr/sbin/init
DISTRO: centos
TAG: 8
run: molecule test --destroy never

- name: Combine the Clusters
env:
COMMAND: /usr/sbin/init
DISTRO: centos
TAG: 8
run: molecule test --scenario-name combine_cluster
36 changes: 36 additions & 0 deletions .github/workflows/debian10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: CI Debian 10

on:
pull_request:
branches: [ develop ]

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Deploy the Initial Clusters
env:
DISTRO: debian
TAG: 10
run: molecule test --destroy never

- name: Combine the Clusters
env:
DISTRO: debian
TAG: 10
run: molecule test --scenario-name combine_cluster
36 changes: 36 additions & 0 deletions .github/workflows/debian9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: CI Debian 9

on:
pull_request:
branches: [ develop ]

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Deploy the Initial Clusters
env:
DISTRO: debian
TAG: 9
run: molecule test --destroy never

- name: Combine the Clusters
env:
DISTRO: debian
TAG: 9
run: molecule test --scenario-name combine_cluster
38 changes: 38 additions & 0 deletions .github/workflows/fedora33.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: CI Fedora 33

on:
pull_request:
branches: [ develop ]

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Deploy the Initial Clusters
env:
COMMAND: /usr/sbin/init
DISTRO: fedora
TAG: 33
run: molecule test --destroy never

- name: Combine the Clusters
env:
COMMAND: /usr/sbin/init
DISTRO: fedora
TAG: 33
run: molecule test --scenario-name combine_cluster
Loading

0 comments on commit 70c45dc

Please sign in to comment.