-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
Server Tooling & Methods
-
ALL
It's unclear what arguments the script takes. The examples in the help of setup_multiversion_mongodb.py are out-of-date.
Usage: setup_multiversion_mongodb.py [options] ver1 [vers2 ...] Ex: setup_multiversion_mongodb.py --installDir ./install --linkDir ./link --edition base --platform Linux 2.0.6 2.0.3-rc0 --architecture x86_64 2.0 2.2 2.3 Ex: setup_multiversion_mongodb.py --installDir ./install --linkDir ./link --edition enterprise --platform osx 2.4 2.2
To install the latest 4.2 on my ubuntu, I've tried:
- --edition base --platform ubuntu 4.2
- --edition base --platform linux 4.2
- --edition base --platform ubuntu-16.04 4.2
- --edition base --platform ubuntu-1604 4.2
- --edition base --platform ubuntu1604 4.2
- --edition base --platform ubuntu1604 4.2.7
- --target ubuntu1604 4.2
- --platform ubuntu1604 4.2
Finally --edition targeted --platform ubuntu1604 4.2.7 worked after reading the python script and running jq on https://downloads.mongodb.org/full.json
Ideally, the script should print out available platforms and versions. The difference between edition "base"/"enterprise"/"targeted" is unclear either. I understand the artifact lists may not be maintained by STM team, but most of the issue is of the usability of setup_multiversion_mongodb.py, so I start with STM team.
Finally, the error message isn't helpful.
$ python3 ./buildscripts/setup_multiversion_mongodb.py --installDir ~/Software/install/ --linkDir ~/Software/link/ --edition base --platform ubuntu1604 4.2.7 Cannot find a link for version 4.2.7, versions {} found. Traceback (most recent call last): File "./buildscripts/setup_multiversion_mongodb.py", line 444, in <module> main() File "./buildscripts/setup_multiversion_mongodb.py", line 440, in main downloader.download_install(version) File "./buildscripts/setup_multiversion_mongodb.py", line 185, in download_install dl_file = self.download_version(version) File "./buildscripts/setup_multiversion_mongodb.py", line 234, in download_version "No fall-back generic link available or version {}.".format(version)) Exception: No fall-back generic link available or version 4.2.7.