-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
Fully Compatible
-
STM 2021-09-06, STM 2021-09-20
-
2
setup-multiversion requires a number of required string arguments that makes it hard to remember for all but the most frequent users.
We can make the following improvements to dramatically reduce the cognitive overhead:
- infer the OS for the most poplar ones: Ubuntu 18/20, RHEL 8, mac, Windows (any version, since only a single version is generated by Evergreen). Make "-p" optional.
- Use "enterprise" as the default edition instead of "base" since the enterprise module is also mongo, and enterprise variant is more readily available. (e.g. Ubuntu 1804 community is not available for 4.4)
- If no "edition" is found, instead of falling back to the generic version, print a message that refers people to the setup_multiversion_config.yml file as a source of truth. Remove existing code for handling fallback variant since it's rarely correct.
Only 4.2 and newer versions need to be supported since the naming scheme for many 4.0builds is different.
Note that the base Windows build on 4.2 has a weird platform name ("windows_x86_64-2012plus"), a special case if-condition should suffice.