Skip to content

Commit

Permalink
Merge "Add release notes" into stable/zed
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and Gerrit Code Review committed Jan 17, 2025
2 parents f7258f9 + 462fb6e commit 9487094
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 759 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ output
doc/build
collections/
*.egg-info
CHANGELOG.rst

## Editors
.idea
Expand Down
758 changes: 0 additions & 758 deletions CHANGELOG.md

This file was deleted.

2 changes: 2 additions & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
furo
pbr
reno
six
sphinx
sphinx-autobuild
Expand Down
1 change: 1 addition & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
extensions = [
"sphinx_copybutton",
"pbr.sphinxext",
"reno.sphinxext",
]

templates_path = ["_templates"]
Expand Down
1 change: 1 addition & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ curated by years of experience from our team alongside other features such as:
config/index
deploy/index
admin/index
release-notes



Expand Down
1 change: 1 addition & 0 deletions doc/source/release-notes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. release-notes:: Release Notes
1 change: 0 additions & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ build_ignore:
- .pre-commit-config.yaml
- .python-version
- .release-please-manifest.json
- CHANGELOG.md
- go.mod
- go.sum
- pyproject.toml
Expand Down
1 change: 1 addition & 0 deletions releasenotes/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
default_branch: main
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
other:
- The project has adopted the use of ``reno`` for release notes, ensuring that
all changes include it from now on to ensure proper release notes.
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ deps =
-r{toxinidir}/doc/requirements.txt
allowlist_externals =
rm
skip_install = true
commands =
rm -rf doc/build/html doc/build/doctrees
sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html
Expand All @@ -95,6 +96,7 @@ commands =
envdir = {[testenv:docs]envdir}
deps = {[testenv:docs]deps}
allowlist_externals = {[testenv:docs]allowlist_externals}
skip_install = {[testenv:docs]skip_install}
commands =
rm -rf doc/build/html doc/build/doctrees
sphinx-autobuild doc/source doc/build/html
Expand All @@ -118,3 +120,10 @@ commands =
[testenv:helm-unittest]
commands =
python3 {toxinidir}/hack/helm-unittest.py

[testenv:generate-releasenotes]
skip_install = true
deps =
reno
commands =
reno report --output {toxinidir}/CHANGELOG.rst
7 changes: 7 additions & 0 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
vars:
go_command: test ./... -v

- job:
name: atmosphere-check-commit
nodeset:
nodes: []
run:
- zuul.d/playbooks/check-commit/run.yml

- job:
name: atmosphere-chart-vendor
parent: chart-vendor
Expand Down
3 changes: 3 additions & 0 deletions zuul.d/playbooks/build-collection/pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
# License for the specific language governing permissions and limitations
# under the License.

- name: Generate release notes
ansible.builtin.import_playbook: ../common/generate-changelog.yml

- name: Configure Buildset Registry
ansible.builtin.import_playbook: ../common/configure-buildset-registry.yml

Expand Down
4 changes: 4 additions & 0 deletions zuul.d/playbooks/check-commit/run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- hosts: localhost
roles:
# TODO(mnaser): This can probably move to a linter/pre-commit.
- assert-releasenotes-exist
7 changes: 7 additions & 0 deletions zuul.d/playbooks/common/generate-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- hosts: all
tasks:
- name: Generate the release notes
ansible.builtin.include_role:
name: tox
vars:
tox_envlist: generate-releasenotes
3 changes: 3 additions & 0 deletions zuul.d/playbooks/linters/pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
# License for the specific language governing permissions and limitations
# under the License.

- name: Generate release notes
ansible.builtin.import_playbook: ../common/generate-changelog.yml

- hosts: all
roles:
- role: ensure-helm
Expand Down
2 changes: 2 additions & 0 deletions zuul.d/project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
check:
jobs:
- atmosphere-chart-vendor
- atmosphere-check-commit
- atmosphere-golang-go-test
- atmosphere-linters
- atmosphere-tox-promtool-test
Expand Down Expand Up @@ -87,6 +88,7 @@
gate:
jobs:
- atmosphere-chart-vendor
- atmosphere-check-commit
- atmosphere-golang-go-test
- atmosphere-linters
- atmosphere-tox-py3
Expand Down

0 comments on commit 9487094

Please sign in to comment.