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

packager.py needs to support -alpha prereleases

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0
    • Affects Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Fully Compatible
    • Build 2021-02-22
    • 5

      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:

      Unable to find source-code formatter for language: diff. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      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.

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

              Created:
              Updated:
              Resolved: