version bump from rc which has breaking change, only bumps to non rc version. #13

Open
opened 2022-01-16 01:01:44 +00:00 by jon_nfc · 9 comments
jon_nfc commented 2022-01-16 01:01:44 +00:00 (Migrated from gitlab.com)

📚 Summary

During version bump at commit 5f273ce23a current version was 0.3.0rc1 a breaking change was added within the commit and the version only incremented to 0.3.0 when it should have incremented to 1.0.0.

Git log output for commits in question
$ git log
commit 5f273ce23a331eaf11623207ec4aba8b856c14f0 (HEAD)
Author: Jon Lockwood <{redacted}>
Date:   Sat Aug 7 14:56:51 2021 +0930

    docs(gitlab_release): Updated docs with new instructions on version incrementing
    
    BREAKING CHANGE: !2

commit f76cabeeb04b028a231dc1c232862db5fcad4345
Author: Jon Lockwood <{redacted}>
Date:   Sat Aug 7 13:56:25 2021 +0930

    fix(gitlab_release): Adjust release workflow
    
    Previous release workflow only allowed version increment of RC on development brnach.
    
    adjust to the following workflow:
        master branch: automatically increment the version
        development branch: option to manually increment version (RC increment only)
    
    !2

commit eb5cc8a0e2885a9ed16a8d1a81611aec4d5a4d31 (tag: v0.3.0rc1)
Author: NFC CI <{redacted}>
Date:   Wed Aug 4 03:23:08 2021 +0000

    build(version): bump version 0.3.0rc0 → 0.3.0rc1

command output version bump where breaking change is included:

$ cz -n cz_nfc bump --dry-run
build(version): bump version 0.3.0rc1 → 0.3.0
tag to create: v0.3.0
increment detected: PATCH

Expected Result

Even though the release at the time was a release candidate rc1, due to there being a breaking change, the MAJOR version number should have incremented.

👷 Tasks

  • ensure that if a breaking change is committed that the major version number increases.

  • change tested, works from any minor including rc to a MAJOR release

## :books: Summary During version bump at commit 5f273ce23a331eaf11623207ec4aba8b856c14f0 current version was `0.3.0rc1` a breaking change was added within the commit and the version only incremented to `0.3.0` when it should have incremented to `1.0.0`. <details> <summary> Git log output for commits in question </summary> ``` bash $ git log commit 5f273ce23a331eaf11623207ec4aba8b856c14f0 (HEAD) Author: Jon Lockwood <{redacted}> Date: Sat Aug 7 14:56:51 2021 +0930 docs(gitlab_release): Updated docs with new instructions on version incrementing BREAKING CHANGE: !2 commit f76cabeeb04b028a231dc1c232862db5fcad4345 Author: Jon Lockwood <{redacted}> Date: Sat Aug 7 13:56:25 2021 +0930 fix(gitlab_release): Adjust release workflow Previous release workflow only allowed version increment of RC on development brnach. adjust to the following workflow: master branch: automatically increment the version development branch: option to manually increment version (RC increment only) !2 commit eb5cc8a0e2885a9ed16a8d1a81611aec4d5a4d31 (tag: v0.3.0rc1) Author: NFC CI <{redacted}> Date: Wed Aug 4 03:23:08 2021 +0000 build(version): bump version 0.3.0rc0 → 0.3.0rc1 ``` </details> command output version bump where breaking change is included: ``` bash $ cz -n cz_nfc bump --dry-run build(version): bump version 0.3.0rc1 → 0.3.0 tag to create: v0.3.0 increment detected: PATCH ``` ### :question: Expected Result Even though the release at the time was a release candidate `rc1`, due to there being a breaking change, the `MAJOR` version number should have incremented. ### Links / References: - [commitizen Github issue 472](https://github.com/commitizen-tools/commitizen/issues/472) - commitizen version: (test machine 2.17.13) however CI uses current as of date of job. Also tested with `cz-0.0.0.0.dev20200924` - BREAKING CHANGE commit [5f273ce23a331eaf11623207ec4aba8b856c14f0](https://gitlab.com/nofusscomputing/projects/gitlab-ci/-/tree/5f273ce23a331eaf11623207ec4aba8b856c14f0) - custom module [cz_nfc](https://gitlab.com/nofusscomputing/projects/gitlab-ci/-/tree/5f273ce23a331eaf11623207ec4aba8b856c14f0/gitlab_release/python-module/cz_nfc) ### :construction_worker: Tasks - [ ] ensure that if a breaking change is committed that the major version number increases. - [ ] change tested, works from any minor including `rc` to a `MAJOR` release
jon_nfc commented 2022-01-16 02:58:40 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
jon_nfc commented 2022-01-16 02:58:56 +00:00 (Migrated from gitlab.com)

added 2h of time spent

added 2h of time spent
jon_nfc commented 2022-01-22 12:30:00 +00:00 (Migrated from gitlab.com)

mentioned in merge request !16

mentioned in merge request !16
jon_nfc commented 2022-01-30 06:00:42 +00:00 (Migrated from gitlab.com)

mentioned in issue #17

mentioned in issue #17
jon_nfc commented 2022-01-30 06:02:06 +00:00 (Migrated from gitlab.com)

mentioned in merge request !17

mentioned in merge request !17
nfc_bot commented 2022-08-26 01:12:53 +00:00 (Migrated from gitlab.com)

mentioned in issue nofusscomputing/ops#55

mentioned in issue nofusscomputing/ops#55
nfc_bot commented 2022-09-26 00:31:14 +00:00 (Migrated from gitlab.com)

mentioned in issue nofusscomputing/ops#67

mentioned in issue nofusscomputing/ops#67
jon_nfc commented 2024-02-16 13:30:46 +00:00 (Migrated from gitlab.com)

Issue confirmed with version commitizen-3.14.1-py3-none-any.whl

Source job with feat: https://gitlab.com/nofusscomputing/projects/ansible/collections/ci-test/-/pipelines/1179384262
job name: merge check
Old version: 0.1.0-a2
New Version: 0.1.0-a3
Python: 3.11
MR: nofusscomputing/projects/ansible/collections/ci-test!7
CI Templates: nofusscomputing/projects/gitlab-ci!75

As the difference between the two was a feat bump, it should have gone to 0.2.0-a1

# Issue confirmed with version commitizen-3.14.1-py3-none-any.whl Source job with feat: https://gitlab.com/nofusscomputing/projects/ansible/collections/ci-test/-/pipelines/1179384262 job name: merge check Old version: `0.1.0-a2` New Version: `0.1.0-a3` Python: `3.11` MR: nofusscomputing/projects/ansible/collections/ci-test!7 CI Templates: nofusscomputing/projects/gitlab-ci!75 As the difference between the two was a feat bump, it should have gone to `0.2.0-a1`
jon_nfc commented 2024-02-16 13:50:12 +00:00 (Migrated from gitlab.com)

also broken for fix bump

old version: 0.1.0-a3
new version: 0.1.0-a4
Pipeline with fix commit: https://gitlab.com/nofusscomputing/projects/ansible/collections/ci-test/-/pipelines/1179413601
job name: merge check
MR: nofusscomputing/projects/ansible/collections/ci-test!8

ver bump should be 0.1.1-a1

# also broken for fix bump old version: `0.1.0-a3` new version: ` 0.1.0-a4` Pipeline with fix commit: https://gitlab.com/nofusscomputing/projects/ansible/collections/ci-test/-/pipelines/1179413601 job name: merge check MR: nofusscomputing/projects/ansible/collections/ci-test!8 ver bump should be `0.1.1-a1`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: infrastructure/gitlab-ci#13
No description provided.