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

Missing source tarballs on fastdl, github workaround missing version.json

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 7.0.4, 6.0.13
    • Component/s: None
    • None
    • Server Release
    • ALL
    • Hide

      For the missing tarballs on fastdl:

      Navigate to https://fastdl.mongodb.org/src/mongodb-src-r6.0.13.tar.gz and note the XML error.

      To compare, the previous version works: https://fastdl.mongodb.org/src/mongodb-src-r6.0.12.tar.gz

       

      For trying to build with the github tarball:

      Run this command to get the source tarball for 6.0.12:

      curl -OJL https://github.com/mongodb/mongo/archive/refs/tags/r6.0.12.tar.gz

      Then try to make a build, but note it fails.

      Show
      For the missing tarballs on fastdl: Navigate to https://fastdl.mongodb.org/src/mongodb-src-r6.0.13.tar.gz and note the XML error. To compare, the previous version works: https://fastdl.mongodb.org/src/mongodb-src-r6.0.12.tar.gz   For trying to build with the github tarball: Run this command to get the source tarball for 6.0.12: curl -OJL https://github.com/mongodb/mongo/archive/refs/tags/r6.0.12.tar.gz Then try to make a build, but note it fails.

      FastDL source tarballs after versions 6.0.12 & 7.0.4 (both released Nov 27th 2023) are missing or access is denied.

      The tarballs are available from github, however they're missing the top level version.json file. When trying to build with the github tarball, the Mongo build script fails in the SContruct due to the missing version.json file:

      try:
          with open("version.json", "r") as version_fp:
              version_data = json.load(version_fp)

          if 'version' not in version_data:
              print("version.json does not contain a version string")
              Exit(1)
          if 'githash' not in version_data:
              version_data['githash'] = utils.get_git_version()

      except IOError as e:
          # If the file error wasn't because the file is missing, error out
          if e.errno != errno.ENOENT:
              print(("Error opening version.json: {0}".format(e.strerror)))
              Exit(1)

          version_data = {
              'version': utils.get_git_describe()[1:],
              'githash': utils.get_git_version(),
      {{    }}}

      except ValueError as e:
          print(("Error decoding version.json: {0}".format(e)))
          Exit(1)

      The code tries to use git to get the version and githash, but that doesn't work because in a git tarball there's no git information.

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            graham.parker@alliedtelesis.co.nz Graham Parker
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: