[SERVER-54073] packager.py needs to support -alpha prereleases Created: 27/Jan/21  Updated: 29/Oct/23  Resolved: 12/Feb/21

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 5.0.0

Type: Improvement Priority: Major - P3
Reporter: Ramon Fernandez Marina Assignee: John Chen (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: Build 2021-02-22
Participants:
Story Points: 5

 Description   

packager.py needs to understand that -alpha builds are pre-releases, so packages are generated with the right name and put in the right repo directory. Something like this:

diff --git a/buildscripts/packager.py b/buildscripts/packager.py
index c515301b89..4f084375d3 100755
--- a/buildscripts/packager.py
+++ b/buildscripts/packager.py
@@ -70,7 +70,7 @@ class Spec(object):
 
def is_rc(self):
 """Return True if rc."""
- return bool(re.search(r"-rc\d+$", self.version()))
+ return bool(re.search(r"(-rc|-alpha)\d+$", self.version()))
 
def is_pre_release(self):
 """Return True if pre-release."""

Without this change, 4.9.0-alpha4 will be named 4.9.0 and overwrite the previous 4.9.0-alpha3. Also, the corresponding package won't be in the testing directory in the repo, but along with the stable releases.



 Comments   
Comment by Githook User [ 12/Feb/21 ]

Author:

{'name': 'John Chen', 'email': 'johnchen456@gmail.com', 'username': 'kryptonite303'}

Message: SERVER-54073 Add support for -alpha prereleases
Branch: master
https://github.com/mongodb/mongo/commit/725d19e078751ea0a67f34cfe8b4a2e1920ee1dc

Generated at Thu Feb 08 05:32:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.