Skip to content

Commit 5755dce

Browse files
committed
Merge branch 'bump/new_version' into 'main'
Bump/new version See merge request qa/idf-components/iperf-cmd!20
2 parents bbf2c31 + 5c0c1a7 commit 5755dce

File tree

11 files changed

+67
-19
lines changed

11 files changed

+67
-19
lines changed

.cz.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.commitizen]
2-
version = "0.1.2"
2+
version = "0.1.3"
33
name = "cz_conventional_commits"
44
version_files = [
55
"apps/iperf/main/idf_component.yml",

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Your PR may not be published until a new version of this component is released.
4040
When releasing a new component version we have to:
4141

4242
- Pass build/test with current (latest) version commit.
43-
- Bump a new version using `cz bump`:
43+
- Bump a new version using `cz bump`/`./tools/cz_bump.sh`:
4444

4545
```bash
4646
git branch -D bump/new_version || true

apps/iperf/main/idf_component.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## IDF Component Manager Manifest File
22
dependencies:
33
espressif/iperf:
4-
version: =0.1.2
4+
version: =0.1.3
55
override_path: ../../../iperf
66
espressif/iperf-cmd:
7-
version: =0.1.2
7+
version: =0.1.3
88
override_path: ../../../iperf-cmd

iperf-cmd/CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
# Changelog
22

3-
## [v0.1.2](https://github.com/espressif/iperf-cmd/commit//v0.1.2)
3+
## [v0.1.3](https://github.com/espressif/iperf-cmd/releases/tag/v0.1.3)
4+
5+
### Features
6+
7+
- add kconfig for iperf tcp/udp tx/rx length ([c6b69b08](https://github.com/espressif/iperf-cmd/releases/tagc6b69b08))
8+
9+
### Updates
10+
11+
- change api names, do not use app_xxx ([449fab6a](https://github.com/espressif/iperf-cmd/releases/tag449fab6a))
12+
- update dependencies [espressif/iperf](https://components.espressif.com/components/espressif/iperf) to v0.1.3
13+
14+
## [v0.1.2](https://github.com/espressif/iperf-cmd/releases/tag/v0.1.2)
415

516
### Bug Fixes
617

718
- fix build with ipv6 only ([caea9730](https://github.com/espressif/iperf-cmd/commit/caea9730))
819

9-
## [0.1.1](https://github.com/espressif/iperf-cmd/commits/v0.1.1)
20+
## [0.1.1](https://github.com/espressif/iperf-cmd/releases/tag/v0.1.1)
1021

1122
### Features
1223

iperf-cmd/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ This repository contains `iperf` command based esp-idf console.
3333
```yaml
3434
dependencies:
3535
espressif/iperf_cmd:
36-
version: "^0.1.2"
36+
version: "^0.1.3"
3737
```
3838
- For more details refer [IDF Component Manager](https://docs.espressif.com/projects/idf-component-manager/en/latest/)

iperf-cmd/idf_component.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.1.2
1+
version: 0.1.3
22
description: Iperf command based on esp-idf console
33
url: https://github.com/espressif/iperf-cmd/tree/master/iperf-cmd
44
repository: https://github.com/espressif/iperf-cmd.git
@@ -8,7 +8,7 @@ license: Apache-2.0
88
dependencies:
99
idf: '>=4.3'
1010
espressif/iperf:
11-
version: =0.1.2
11+
version: =0.1.3
1212
examples:
1313
- path: ../apps/iperf/
1414
files:

iperf/CHANGELOG.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
# Changelog
22

3-
## [v0.1.2](https://github.com/espressif/iperf-cmd/commit//v0.1.2)
3+
## [v0.1.3](https://github.com/espressif/iperf-cmd/releases/tag/v0.1.3)
4+
5+
### Features
6+
7+
- add kconfig for iperf tcp/udp tx/rx length ([c6b69b08](https://github.com/espressif/iperf-cmd/releases/tagc6b69b08))
8+
9+
### Bug Fixes
10+
11+
- fix iperf tcp rx thrpt is 0 when test with Redmi RB06 ([cd59afd3](https://github.com/espressif/iperf-cmd/releases/tagcd59afd3))
12+
13+
### Updates
14+
15+
- change api names, do not use app_xxx ([449fab6a](https://github.com/espressif/iperf-cmd/releases/tag449fab6a))
16+
17+
## [v0.1.2](https://github.com/espressif/iperf-cmd/releases/tag/v0.1.2)
418

519
### Bug Fixes
620

721
- fix build with ipv6 only ([caea9730](https://github.com/espressif/iperf-cmd/commit/caea9730))
822
- No debug if non-fattal errorno ENOBUFS received ([55cce9dc](https://github.com/espressif/iperf-cmd/commit/55cce9dc))
923

10-
## [0.1.1](https://github.com/espressif/iperf-cmd/commits/v0.1.1)
24+
## [0.1.1](https://github.com/espressif/iperf-cmd/releases/tag/v0.1.1)
1125

1226
### Features
1327

iperf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ This repository contains a basic iperf core engine.
1616
```yaml
1717
dependencies:
1818
espressif/iperf:
19-
version: "^0.1.2"
19+
version: "^0.1.3"
2020
```
2121
- For more details refer [IDF Component Manager](https://docs.espressif.com/projects/idf-component-manager/en/latest/)

iperf/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.1.2
1+
version: 0.1.3
22
description: Iperf Core Engine
33
url: https://github.com/espressif/iperf-cmd/tree/master/iperf
44
repository: https://github.com/espressif/iperf-cmd.git

tools/changelog.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
import subprocess
1111

1212

13-
COMMIT_BASE_URL = 'https://github.com/espressif/iperf-cmd/commit/'
13+
RELEASE_TAG_BASE_URL = 'https://github.com/espressif/iperf-cmd/releases/tag'
14+
IPERF_COMPONENT_URL = 'https://components.espressif.com/components/espressif/iperf'
1415
PROJECT_ROOT = pathlib.Path(__file__).resolve().parents[1]
1516
CZ_OLD_TAG = os.environ['CZ_PRE_CURRENT_TAG_VERSION']
1617
CZ_NEW_TAG = os.environ['CZ_PRE_NEW_TAG_VERSION']
@@ -36,7 +37,7 @@ def check_repo():
3637
'''Check current ref tag in repository
3738
'''
3839
subprocess.check_call(
39-
['git', 'fetch', '--prune', '--prune-tags'],
40+
['git', 'fetch', '--prune', '--prune-tags', '--force'],
4041
cwd=PROJECT_ROOT,
4142
)
4243

@@ -54,7 +55,8 @@ def update_changelog():
5455
# Update ChangeLog
5556
for component in ['iperf', 'iperf-cmd']:
5657
git_logs = subprocess.check_output(
57-
['git', 'log', f'{CZ_OLD_TAG}..HEAD', f'{component}'],
58+
# ignore merge commits
59+
['git', 'log', '--no-merges', f'{CZ_OLD_TAG}..HEAD', f'{component}'],
5860
cwd=PROJECT_ROOT,
5961
).decode()
6062

@@ -64,11 +66,15 @@ def update_changelog():
6466
commit = COMMIT_PATTERN.match(commit_log).group(0)
6567
for match in CHANGELOG_PATTERN.finditer(commit_log):
6668
if match.group(2):
67-
_changelog = f'- {match.group(2)}: {match.group(3)} ([{commit}]({COMMIT_BASE_URL}{commit}))'
69+
_changelog = f'- {match.group(2)}: {match.group(3)} ([{commit}]({RELEASE_TAG_BASE_URL}{commit}))'
6870
else:
69-
_changelog = f'- {match.group(3)} ([{commit}]({COMMIT_BASE_URL}{commit}))'
71+
_changelog = f'- {match.group(3)} ([{commit}]({RELEASE_TAG_BASE_URL}{commit}))'
7072
changelogs[CHANGELOG_SECTIONS[match.group(1)]].append(_changelog)
7173

74+
if component == 'iperf-cmd':
75+
_changelog = f'- update dependencies [espressif/iperf]({IPERF_COMPONENT_URL}) to {CZ_NEW_TAG}'
76+
changelogs['Updates'].append(_changelog)
77+
7278
# Update changelog file
7379
with open(str(PROJECT_ROOT / component / 'CHANGELOG.md'), encoding='utf-8') as fr:
7480
changelog_data = fr.readlines()
@@ -79,7 +85,7 @@ def update_changelog():
7985
changelog_data.insert(2, f'### {key}\n\n' + '\n'.join(values) + '\n\n')
8086
changed = True
8187
if changed:
82-
changelog_data.insert(2, f'## [{CZ_NEW_TAG}]({COMMIT_BASE_URL}/{CZ_NEW_TAG})\n\n')
88+
changelog_data.insert(2, f'## [{CZ_NEW_TAG}]({RELEASE_TAG_BASE_URL}/{CZ_NEW_TAG})\n\n')
8389
with open(str(PROJECT_ROOT / component / 'CHANGELOG.md'), 'w', encoding='utf-8') as fw:
8490
fw.write(''.join(changelog_data))
8591

0 commit comments

Comments
 (0)