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

Implement new versioning methodology #5060

Merged
merged 8 commits into from
Jan 5, 2023

Conversation

yenienserrano
Copy link
Member

@yenienserrano yenienserrano commented Jan 2, 2023

Description

Some of the package.json settings were changed,
for example:

  • version: untouched. Follows the major.minor.patch pattern
  • revision: represents the build number. It is a number of 2 digits, starting at 00 and increased by one each time a package for the same version is built. This value is reset only when the version changes.
  • stage: replaces the code property which has no actual use. With this property, we'll represent the stage of development at which the package has been built at: pre-alpha (development), alpha, beta, release-candidate or stable (production).
  • commit: we'll also include the short SHA of the latest commit included in the package (can also be the SHA of the commit used to tag). With this, we'll be able to have a clear reference of what was included in the package.

Tests were added to corroborate the correctness of these settings.

Also, a script to generate the tags automatically has been added.

Issues Resolved

Evidence

image
image

Test

Check that the package.json contains the settings:

  • version
  • revision
  • stage
  • commit

Verify that the tests are working and if you change the value of these settings to invalid values, the tests will not work.

package.test.ts

Check List

  • All tests pass
    • yarn test:jest
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@yenienserrano yenienserrano requested a review from a team as a code owner January 2, 2023 15:18
@yenienserrano yenienserrano linked an issue Jan 2, 2023 that may be closed by this pull request
6 tasks
chantal-kelm
chantal-kelm previously approved these changes Jan 4, 2023
Copy link
Member

@chantal-kelm chantal-kelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR: ✅
Test: ✅

Evidence:

image

image

Copy link
Member

@AlexRuiz7 AlexRuiz7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Code Review: ✔️
  • Test: ✔️

Great job!

@github-actions
Copy link
Contributor

github-actions bot commented Jan 4, 2023

Code coverage (Jest) % values
Statements 8.69% ( 3210 / 36938 )
Branches 4.53% ( 1300 / 28682 )
Functions 7.55% ( 692 / 9157 )
Lines 8.75% ( 3097 / 35371 )

@chantal-kelm chantal-kelm self-requested a review January 4, 2023 19:00
Copy link
Member

@chantal-kelm chantal-kelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR: ✅
Test: ✅

@yenienserrano yenienserrano merged commit 128a487 into 4.4-2.4-wzd Jan 5, 2023
@yenienserrano yenienserrano deleted the implement-new-versioning-methodology branch January 5, 2023 12:44
github-actions bot pushed a commit that referenced this pull request Jan 5, 2023
* change code stage

* change revision number

* add commit property

* add test

* add script tags

* Update tag.py script to support multiple platforms

* Add prebuild task to Makefile

Co-authored-by: Alex Ruiz Becerra <[email protected]>
(cherry picked from commit 128a487)
github-actions bot pushed a commit that referenced this pull request Jan 5, 2023
* change code stage

* change revision number

* add commit property

* add test

* add script tags

* Update tag.py script to support multiple platforms

* Add prebuild task to Makefile

Co-authored-by: Alex Ruiz Becerra <[email protected]>
(cherry picked from commit 128a487)
yenienserrano added a commit that referenced this pull request Jan 5, 2023
Implement new versioning methodology (#5060)

* change code stage

* change revision number

* add commit property

* add test

* add script tags

* Update tag.py script to support multiple platforms

* Add prebuild task to Makefile

Co-authored-by: Alex Ruiz Becerra <[email protected]>
(cherry picked from commit 128a487)

Co-authored-by: Ian Yenien Serrano <[email protected]>
yenienserrano added a commit that referenced this pull request Jan 5, 2023
Implement new versioning methodology (#5060)

* change code stage

* change revision number

* add commit property

* add test

* add script tags

* Update tag.py script to support multiple platforms

* Add prebuild task to Makefile

Co-authored-by: Alex Ruiz Becerra <[email protected]>
(cherry picked from commit 128a487)

Co-authored-by: Ian Yenien Serrano <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement new versioning methodology
3 participants