Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-54073

packager.py needs to support -alpha prereleases

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.0.0
    • None
    • Build
    • None
    • Fully Compatible
    • Build 2021-02-22
    • 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.

      Attachments

        Activity

          People

            john.chen@mongodb.com John Chen (Inactive)
            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: