mongodb-labs / drivers-evergreen-tools

Scripts for MongoDB drivers to bootstrap their Evergreen configuration file - This Repository is NOT a supported MongoDB product
10 stars 64 forks source link

DRIVERS-3002 Add download-mongodb capabilities to mongodl #522

Closed blink1073 closed 1 week ago

blink1073 commented 2 weeks ago

This is the first step in DRIVERS-3002.
This PR adds the following capabilities for parity with download-mongodb.sh:

The next PR will create a mongosh-dl.py to handle finding the mongosh download link. The final PR will use mongodl.py and mongosh-dl.py directly in download-mongodb.sh.

ShaneHarvey commented 1 week ago

Are the EVG test failures expected?

ShaneHarvey commented 1 week ago
[2024/10/14 12:15:31.039] Download archive-debug 4.4-enterprise for windows-x86_64
[2024/10/14 12:15:31.039] Traceback (most recent call last):
[2024/10/14 12:15:31.039]   File "C:\data\mci\4886a0beacf64d962089348f95c465c9\drivers-tools\.evergreen\mongodl.py", line 1105, in <module>
[2024/10/14 12:15:31.042]     sys.exit(main(sys.argv[1:]))
[2024/10/14 12:15:31.042]              ^^^^^^^^^^^^^^^^^^
[2024/10/14 12:15:31.042]   File "C:\data\mci\4886a0beacf64d962089348f95c465c9\drivers-tools\.evergreen\mongodl.py", line 1087, in main
[2024/10/14 12:15:31.042]     result = _dl_component(cache,
[2024/10/14 12:15:31.042]              ^^^^^^^^^^^^^^^^^^^^
[2024/10/14 12:15:31.042]   File "C:\data\mci\4886a0beacf64d962089348f95c465c9\drivers-tools\.evergreen\mongodl.py", line 792, in _dl_component
[2024/10/14 12:15:31.042]     dl_url = _published_build_url(cache, version, target, arch, edition,
[2024/10/14 12:15:31.042]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2024/10/14 12:15:31.042]   File "C:\data\mci\4886a0beacf64d962089348f95c465c9\drivers-tools\.evergreen\mongodl.py", line 725, in _published_build_url
[2024/10/14 12:15:31.042]     raise ValueError(
[2024/10/14 12:15:31.042] ValueError: No download was found for version="4.4" target="windows" arch="x86_64" edition="enterprise" component="archive"
[2024/10/14 12:15:31.077] Command 'shell.exec' in function 'run mongodl test full' (step 1 of 1) failed: shell script encountered problem: exit code 1.

https://spruce.mongodb.com/task/drivers_tools_tests_all__os_fully_featured~windows_auth~auth_ssl~nossl_test_mongodl_full_patch_1edd98fc47a539910aff0802ac498bfe1072e214_670d645c6092660007ad1016_24_10_14_18_35_11/logs?execution=0&sortBy=STATUS&sortDir=ASC

blink1073 commented 1 week ago

Fixed, I was missing some supported versions. I made the list more prominent as a global.

blink1073 commented 1 week ago

OIDC failure is unrelated, I'm configuring the EKS cluster.

blink1073 commented 1 week ago

@ShaneHarvey I made a few changes since your last review.