Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: polish changelog #9

Merged
merged 1 commit into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ jobs:
OUTPUT: CHANGES.md
GITHUB_REPO: ${{ github.repository }}

- name: Polish changelog
shell: bash
run: sed -i '1,2d' CHANGES.md

- name: Upload the changelog
uses: ncipollo/release-action@v1
with:
draft: false
# draft: true
allowUpdates: true
bodyFile: CHANGES.md
136 changes: 66 additions & 70 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,145 +1,141 @@
# Changelog

All notable changes to this project will be documented in this file.

## [0.1.1-rc.1] - 2024-04-14
## [0.1.1-rc.1](https://github.com/wfxr/rlt/compare/v0.1.1-alpha.6..v0.1.1-rc.1) (2024-04-14)

### 🚀 Features

- Add debug derive to BenchCli (#7)
- Implement logical clock (#6)
- Implement logical clock ([#6](https://github.com/wfxr/rlt/issues/6)) - ([d90afd8](https://github.com/wfxr/rlt/commit/d90afd833490de50de9aae82b6cb01cf456a3290))
- Add debug derive to BenchCli ([#7](https://github.com/wfxr/rlt/issues/7)) - ([26208b8](https://github.com/wfxr/rlt/commit/26208b8939907ebd079b1b6e267979c76e610146))

### 🐛 Bug Fixes

- Fix panic when the receiver is dropped #2
- Fix panic when the receiver is dropped([#2](https://github.com/wfxr/rlt/issues/2)) - ([08f0bcd](https://github.com/wfxr/rlt/commit/08f0bcd94a19e819522a19ad69b50e04ba830ab7))

### ⚙️ Miscellaneous Tasks

- Remove spaces in tui title
- Use git-cliff to generate changlog (#8)
- Release rlt version 0.1.1-rc.1
- Release rlt version 0.1.1-rc.1 - ([d67a49c](https://github.com/wfxr/rlt/commit/d67a49c9989acd7cbe392f01e9230fd1f0241bce))
- Use git-cliff to generate changelog ([#8](https://github.com/wfxr/rlt/issues/8)) - ([13d806c](https://github.com/wfxr/rlt/commit/13d806cb4a3c63db09e93735d2fbcf785ed9d22e))
- Remove spaces in tui title - ([722842e](https://github.com/wfxr/rlt/commit/722842ec9e25e11de45c6de24482ed5cf94ee4c0))

## [0.1.1-alpha.6] - 2024-04-12
## [0.1.1-alpha.6](https://github.com/wfxr/rlt/compare/v0.1.1-alpha.5..v0.1.1-alpha.6) (2024-04-12)

### 🚀 Features

- Add log framework
- Add log framework - ([2cc1e5d](https://github.com/wfxr/rlt/commit/2cc1e5d525875df48969837e1f75d490bf4238f0))

### 🚜 Refactor

- Make log feature optional
- Simplify key event handling for log win
- Remove unnecessary log messages
- Remove unnecessary log messages - ([0e754a6](https://github.com/wfxr/rlt/commit/0e754a6488d33a639aa7fafd48754bd0c0d145f8))
- Simplify key event handling for log win - ([3293398](https://github.com/wfxr/rlt/commit/329339877908c579bb41932f5f1d8d855bffbd1f))
- Make log feature optional - ([61f6182](https://github.com/wfxr/rlt/commit/61f6182039274ef9893ca5eaf639a77b404c8d54))

### ⚙️ Miscellaneous Tasks

- Release rlt version 0.1.1-alpha.6
- Release rlt version 0.1.1-alpha.6 - ([7691f1b](https://github.com/wfxr/rlt/commit/7691f1b2d3d265c58d81477d5d07869fb6dd9021))

## [0.1.1-alpha.5] - 2024-04-06
## [0.1.1-alpha.5](https://github.com/wfxr/rlt/compare/v0.1.1-alpha.4..v0.1.1-alpha.5) (2024-04-06)

### 📚 Documentation

- Update description
- Update description - ([ecd59d6](https://github.com/wfxr/rlt/commit/ecd59d606cd97dc10091a883d707b7b2964ff766))

### ⚙️ Miscellaneous Tasks

- Release rlt version 0.1.1-alpha.5
- Release rlt version 0.1.1-alpha.5 - ([f80cfb0](https://github.com/wfxr/rlt/commit/f80cfb0e372d7ce5fa2c86910a5dcea0e79c1ab3))

## [0.1.1-alpha.4] - 2024-04-06
## [0.1.1-alpha.4](https://github.com/wfxr/rlt/compare/v0.1.1-alpha.3..v0.1.1-alpha.4) (2024-04-06)

### 📚 Documentation

- Update description
- Update description - ([6689648](https://github.com/wfxr/rlt/commit/66896482cd11998c32b39aa66b7bdf1b81f3573d))

### ⚙️ Miscellaneous Tasks

- Release rlt version 0.1.1-alpha.4
- Release rlt version 0.1.1-alpha.4 - ([6259163](https://github.com/wfxr/rlt/commit/62591631dd09d4a042262a0cc89af416df7b818d))

## [0.1.1-alpha.3] - 2024-04-05
## [0.1.1-alpha.3](https://github.com/wfxr/rlt/compare/v0.1.1-alpha.2..v0.1.1-alpha.3) (2024-04-05)

### 🚀 Features

- Add postgres example
- Add postgres example - ([3830f7b](https://github.com/wfxr/rlt/commit/3830f7b6db2c980041fac9c6516f05fd8df1f99f))

### 🚜 Refactor

- Simplify the cli interface
- Simplify the cli interface - ([d4f2d09](https://github.com/wfxr/rlt/commit/d4f2d09caa45dd15dca8eab7898db5b15131d660))

### ⚙️ Miscellaneous Tasks

- Release rlt version 0.1.1-alpha.3
- Release rlt version 0.1.1-alpha.3 - ([c339f99](https://github.com/wfxr/rlt/commit/c339f99739ed9ae461ab3ae94d21fdd8bea59f72))

## [0.1.1-alpha.2] - 2024-04-05
## [0.1.1-alpha.2](https://github.com/wfxr/rlt/compare/v0.1.1-alpha.1..v0.1.1-alpha.2) (2024-04-05)

### 🚀 Features

- Add simple example
- Add StatelessBenchSuite trait
- Make runner state mutable
- Improve time unit display in tui
- Improve the tui and text reporter output
- Change the separator of the histogram
- Add worker_id to BenchSuite::state()
- Add setup and teardown hooks to BenchSuite
- Remove rand dependency
- Change the signature of `teardown` method
- Add http_reqwest example
- Add http feature
- Add http feature - ([4093223](https://github.com/wfxr/rlt/commit/40932231c90ea406d75d0d78c5821c967b2ccfe7))
- Add http_reqwest example - ([e87d845](https://github.com/wfxr/rlt/commit/e87d8452b79e61bc6e7ad1bad21b33733ff67660))
- Change the signature of `teardown` method - ([07a40e8](https://github.com/wfxr/rlt/commit/07a40e82da28e9ff1d2c9192b09d9afa1797091f))
- Remove rand dependency - ([df63280](https://github.com/wfxr/rlt/commit/df632806437481cafe4ed421a159efbbe60004db))
- Add setup and teardown hooks to BenchSuite - ([1318d10](https://github.com/wfxr/rlt/commit/1318d10d47dc22cd336ced57f418ff0527489b5f))
- Add worker_id to BenchSuite::state() - ([0efab5c](https://github.com/wfxr/rlt/commit/0efab5c467763e3b449d57b2eddbcaab2e47994c))
- Change the separator of the histogram - ([e616ab1](https://github.com/wfxr/rlt/commit/e616ab1f0092bfd5607661c0ee9baaf6340fced4))
- Improve the tui and text reporter output - ([deb61a8](https://github.com/wfxr/rlt/commit/deb61a8e61ee546bd67f5c3313663c99111cafeb))
- Improve time unit display in tui - ([590b349](https://github.com/wfxr/rlt/commit/590b349f17617a3021aa60fd3ef35ac25ce410cb))
- Make runner state mutable - ([13df38d](https://github.com/wfxr/rlt/commit/13df38db5dfc890a7e5a6e0479884cd94d675ccf))
- Add StatelessBenchSuite trait - ([56d3386](https://github.com/wfxr/rlt/commit/56d3386fd728f24296c74f4943f1311affeca3e6))
- Add simple example - ([2a3e8d5](https://github.com/wfxr/rlt/commit/2a3e8d54256c4fc21c168ca234d3e49509a53a97))

### 🐛 Bug Fixes

- Fix auto time window selection
- Fix indent for text reporter
- Fix hang in case iterations reached first
- Make sure all tasks are joined
- Make sure all tasks are joined - ([4e0503c](https://github.com/wfxr/rlt/commit/4e0503c1a51dd0c7a2d7cbb1c0108e559143e3c0))
- Fix hang in case iterations reached first - ([5028a70](https://github.com/wfxr/rlt/commit/5028a705a2a79b9f6cd37b1a035927488204a278))
- Fix indent for text reporter - ([a179715](https://github.com/wfxr/rlt/commit/a17971551a687509442b72afb29d46d99a349250))
- Fix auto time window selection - ([0adfc59](https://github.com/wfxr/rlt/commit/0adfc5942a2180e2af387a42c5a459b813aed00d))

### 🚜 Refactor

- Rename UnknownError status
- Remove unnecessary init function
- Rename example
- Update summary format for text reporter
- Use JoinSet instead of Vec<JoinHandle>
- Rename RunnerState to WorkerInfo
- Remove init method from BenchSuite
- Avoid extra newline in text reporter
- Rename
- Rename - ([1578a06](https://github.com/wfxr/rlt/commit/1578a067bea0578dd79f2d119af8f1899d7b7bba))
- Avoid extra newline in text reporter - ([91d06b2](https://github.com/wfxr/rlt/commit/91d06b242228db612e10297557fe507b1283b3cd))
- Remove init method from BenchSuite - ([bff5e10](https://github.com/wfxr/rlt/commit/bff5e10a4f5e9b0e46cbc843112cdb0bbc5907b4))
- Rename RunnerState to WorkerInfo - ([e686770](https://github.com/wfxr/rlt/commit/e686770343f7ebae33c4b0e643e8bc399c03f9c4))
- Use JoinSet instead of Vec<JoinHandle> - ([4cf851e](https://github.com/wfxr/rlt/commit/4cf851e38d02f24a6b58a3f2312764c112015132))
- Update summary format for text reporter - ([eb0483c](https://github.com/wfxr/rlt/commit/eb0483caec147c04e6a87448dd8f68ca747f6575))
- Rename example - ([eead358](https://github.com/wfxr/rlt/commit/eead358d75a3734379d5fcd643f2cc685a312265))
- Remove unnecessary init function - ([b7380e6](https://github.com/wfxr/rlt/commit/b7380e6fa321faa0a53f9d86f6b674fa900a8643))
- Rename UnknownError status - ([c4b7739](https://github.com/wfxr/rlt/commit/c4b773929bfd77ec9cc3adb71dc16ec65faa4845))

### 📚 Documentation

- Update README.md
- Add docs for the CLI module
- Add more docs
- Add `no_run` mark
- Update README.md
- Improve README.md
- Improve README.md - ([b5f0bb3](https://github.com/wfxr/rlt/commit/b5f0bb3ae702db97dfb67852d2a005fcb895a058))
- Update README.md - ([97fffe6](https://github.com/wfxr/rlt/commit/97fffe60e5d26a37a076d87f64a34d1a4383d108))
- Add `no_run` mark - ([1baf83a](https://github.com/wfxr/rlt/commit/1baf83a75a362b45d957b478895c1f24d62a6435))
- Add more docs - ([6727033](https://github.com/wfxr/rlt/commit/672703349b5e5dea8aafa21c2b85a0d506fe7ec6))
- Add docs for the CLI module - ([dbea9e7](https://github.com/wfxr/rlt/commit/dbea9e7b17f2ac186f49be0871e6dae3927412a4))
- Update README.md - ([06ab23f](https://github.com/wfxr/rlt/commit/06ab23f7ecde17e8f22c7a184be17450154a8371))

### ⚙️ Miscellaneous Tasks

- Release rlt version 0.1.1-alpha.2
- Release rlt version 0.1.1-alpha.2 - ([9bb7eb4](https://github.com/wfxr/rlt/commit/9bb7eb4204d57e4e8d2f7260bf71e9f57176f275))

## [0.1.1-alpha.1] - 2024-03-26

### 🐛 Bug Fixes

- Fix hang when canceling a paused bench
- Fix hang when canceling a paused bench - ([be28f12](https://github.com/wfxr/rlt/commit/be28f1229ce03df50a423ad705c4cac4ebd4d846))

### 🚜 Refactor

- Update module visibility
- Update module visibility - ([71d04a6](https://github.com/wfxr/rlt/commit/71d04a644c9dacf340aa8e63ae91a497c9fc3515))

### 📚 Documentation

- Update readme
- Update readme - ([fe1b655](https://github.com/wfxr/rlt/commit/fe1b655b8ee283d7d26d881f6af937a29c0e0215))

### ⚙️ Miscellaneous Tasks

- Add rustfmt config file
- Setup
- Update rustfmt & rust-toolchain
- Simplify workflows
- Remove unused dependency
- Disable minimal version check
- Release rlt version 0.1.1-alpha.1
- Release rlt version 0.1.1-alpha.1 - ([9a022bd](https://github.com/wfxr/rlt/commit/9a022bd0ffff84d686681c72c3fd3bf6c15f817a))
- Disable minimal version check - ([59993f3](https://github.com/wfxr/rlt/commit/59993f33efd6767e6f054acc6295e75dc9a36ac1))
- Remove unused dependency - ([848407b](https://github.com/wfxr/rlt/commit/848407bb5ef1623d3f22d4062b0d5b9645466a28))
- Simplify workflows - ([5b323b2](https://github.com/wfxr/rlt/commit/5b323b24e24d3fd01d17604b017ff6cc68504df8))
- Update rustfmt & rust-toolchain - ([b56672f](https://github.com/wfxr/rlt/commit/b56672f5bf9770eca11300d624303ad646014dee))
- Setup - ([43bccb6](https://github.com/wfxr/rlt/commit/43bccb61b7d996827a6dc07b92453080594e66da))
- Add rustfmt config file - ([f345461](https://github.com/wfxr/rlt/commit/f3454616a42a870d71853abb15aa7ddd52bede72))

<!-- generated by git-cliff -->
92 changes: 56 additions & 36 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# git-cliff ~ default configuration file
# git-cliff ~ configuration file
# https://git-cliff.org/docs/configuration
#
# Lines starting with "#" are comments.
Expand All @@ -8,35 +8,56 @@
[changelog]
# changelog header
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
# template for the changelog body
# https://keats.github.io/tera/docs/#introduction
body = """
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}

{% macro print_commit(commit) -%}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }} - \
([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\
{% endmacro -%}

{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% if previous.version %}\
## [{{ version | trim_start_matches(pat="v") }}]\
({{ self::remote_url() }}/compare/{{ previous.version }}..{{ version }}) ({{ timestamp | date(format="%Y-%m-%d") }})
{% else %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% endif %}\
{% else %}\
## [unreleased]
{% endif %}\

{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }}\
{% endfor %}
{% for commit in commits
| filter(attribute="scope")
| sort(attribute="scope") %}
{{ self::print_commit(commit=commit) }}
{%- endfor -%}
{% raw %}\n{% endraw %}\
{%- for commit in commits %}
{%- if not commit.scope -%}
{{ self::print_commit(commit=commit) }}
{% endif -%}
{% endfor -%}
{% endfor %}\n
"""
# template for the changelog footer
footer = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing s
# remove the leading and trailing whitespace from the templates
trim = true
# postprocessors
postprocessors = [
# { pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL
{ pattern = '<REPO>', replace = "https://github.com/wfxr/rlt" }, # replace repository URL
]

[git]
Expand All @@ -48,42 +69,41 @@ filter_unconventional = true
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
# Replace issue numbers
#{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"},
# Check spelling of the commit with https://github.com/crate-ci/typos
# If the spelling is incorrect, it will be automatically fixed.
#{ pattern = '.*', replace_command = 'typos --write-changes -' },
{ pattern = ' (#[0-9]+)', replace = '(${1})' },
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))" },
# Check spelling of the commit with https://github.com/crate-ci/typos
# If the spelling is incorrect, it will be automatically fixed.
{ pattern = '.*', replace_command = 'typos --write-changes -' },
]
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
{ message = "^refactor\\(clippy\\)", skip = true },
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = false
# regex for matching git tags
# tag_pattern = "v[0-9].*"
tag_pattern = "v[0-9].*"
# regex for skipping tags
# skip_tags = ""
skip_tags = "beta|alpha"
# regex for ignoring tags
# ignore_tags = ""
ignore_tags = "rc|v2.1.0|v2.1.1"
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"
# limit the number of commits included in the changelog.
# limit_commits = 42
sort_commits = "newest"
Loading