[COMPASS-4451] Automate manual actions for compass release Created: 12/Oct/20  Updated: 29/Oct/23  Resolved: 03/Nov/20

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: No version

Type: Story Priority: Major - P3
Reporter: Maurizio Casimirri Assignee: Maurizio Casimirri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes: Not Needed
Sprint: Iteration Orange, Iteration Papaya

 Description   

Compass releases are almost fully automated except for 2 manual steps that has to happen to trigger the release and to finalize the release.

1) Add a npm run release beta command to compass.

npm run release beta starts a beta release of compass from a release branch.

npm run release start-beta can only run from a MAJOR.MINOR-release
branch.

It bumps the version according to the branch name, doing +1 on the prerelease version as required:

  • Newly promoted branch:
    If the release branch is 1.22 and package.version < 1.22.0, it will create 1.22.0-beta.0.
  • Beta bump:
    When package.version is 1.22.0-beta.0, do 1.22.0-beta.1.
  • New beta after bumped GA:
    When package.version is 1.22.1, do 1.22.2-beta.0.

2) Add a npm run release ga command to compass.

npm run release ga starts a GA release of compass from a release branch.

It bumps the version according to the branch name:

  • Newly promoted branch:
    If the release branch is 1.22 and package.version < 1.22.0, it will create 1.22.0.
  • Promote from beta:
    When package.version is 1.22.1-beta.123, do 1.22.1.
  • GA bump:
    When package.version is 1.22.1 do 1.22.2.

3) Add a npm run release publish command to compass.

Which completes a release by publishing all the artifacts.

  • Waits for all the artifacts to be available and correctly built.
  • Checks for the relative Github release to exist.
  • Publish the Github release
  • Update the download center config with the new artifacts.
  • Verifies that the new version is picked up by both download center and by the updater by issuing the same api call


 Comments   
Comment by Githook User [ 05/Nov/20 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: COMPASS-4451 - Add release scripts to main compass repo (#2035)

This PR contains release automation scripts to aid the release tasks from the local machine of developers.

Co-authored-by: Michael Rose <michael_rose@gmx.de>
Branch: compass-collection-2.1.2
https://github.com/mongodb-js/compass/commit/cb0a4f3d461d35cd0dd33957ae5b610ea7f2a973

Comment by Githook User [ 03/Nov/20 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: COMPASS-4451 - Add release scripts to main compass repo (#2035)

This PR contains release automation scripts to aid the release tasks from the local machine of developers.

Co-authored-by: Michael Rose <michael_rose@gmx.de>
Branch: master
https://github.com/mongodb-js/compass/commit/cb0a4f3d461d35cd0dd33957ae5b610ea7f2a973

Generated at Wed Feb 07 22:36:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.