-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
Fully Compatible
-
STM 2020-11-16, STM 2020-11-30, STM 2020-12-14
-
2
Use evergreen API to get the latest binaries. Iterate over the latest versions to find the latest with succeeded compile and push tasks.
Use github API to get git commit hash for a certain release and use evergreen API to get a task with compiled artifacts.
Example (version 4.4.1, buildvariant ubuntu1804):
1. get git tag: https://api.github.com/repos/mongodb/mongo/git/refs/tags/r4.4.1
2. get commit hash: https://api.github.com/repos/mongodb/mongo/git/tags/2c419dd9ef089453561e1f37605c73a739fc98d1
3. get evergreen version: https://evergreen.mongodb.com/rest/v2/versions/mongodb_mongo_v4.4_ad91a93a5a31e175f5cbf8c69561e788bbc55ce1
4. get ubuntu1804 build: https://evergreen.mongodb.com/rest/v2/builds/mongodb_mongo_v4.4_ubuntu1804_ad91a93a5a31e175f5cbf8c69561e788bbc55ce1_20_09_02_06_34_58
4. check that compile and push tasks succeeded
5. get compile task: https://evergreen.mongodb.com/rest/v2/tasks/mongodb_mongo_v4.4_ubuntu1804_compile_ad91a93a5a31e175f5cbf8c69561e788bbc55ce1_20_09_02_06_34_58
6. get Binaries artifact link from the task
- has to be done before
-
SERVER-39859 Use the Evergreen REST v2 API to download -latest tarballs in setup multiversion mongodb
- Closed