Address task timeouts on VS 2015 distros due to KMS KMIP mock server #1198
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Verified by this patch.
Addresses task timeouts on VS 2015 distros since 2024-07-22 due to what appears to be an incompatibility with the Python version/environment and its relation to the cryptography package as required by the KMS KMIP mock server:
This led to a task timeout after 1 hour (the EVG config's max timeout) due to the
wait_for_kms_server
function's curl command lacking a max-time argument (no response -> wait forever?).A brief investigation into the root cause of the ImportError exception did not yield any obvious solutions or workarounds.
Accordingly, this PR applies the following changes to the EVG config and scripts:
--max-time 1
(one second) to the curl command to correctly reflect its intended usage. (Thewait_for_kms_server
can be updated to use--max-time 1 --retry 60
instead if preferred over the existing loop. Not yet applied due to not being entirely confident that the combination of flags is actually correct.)find-ccache.sh
added to C Driver in mongodb/mongo-c-driver@35f3880.