-
Notifications
You must be signed in to change notification settings - Fork 548
CXX-3302 Update bsoncxx validation examples (CDRIVER-5710, CDRIVER-6017) #1416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| # If pinning to an unreleased commit, create a "Blocked" JIRA ticket with | ||
| # a "depends on" link to the appropriate C Driver version release ticket. | ||
| MONGOC_VERSION_MINIMUM = '2.0.0' | ||
| MONGOC_VERSION_MINIMUM = '2.0.2' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also raise the minimum required C Driver version for downstream users if that is preferable (CXX-3302), but I do not think it is necessary at this time.
I am open to debate, but I slightly prefer bumping the minimum required version to 2.0.2.
I see three distinct versions:
MONGOC_VERSION_MINIMUMis the tested version in CI.MONGOC_DOWNLOAD_VERSIONis the automatically downloaded version.MONGOC_REQUIRED_VERSIONis the required version.
I expect these do not strictly need to match, as is proposed in this PR. However, only bumping tested+downloaded means tests fail with the minimum required C driver. That may be unlikely to impact users, but bumping all to 2.0.2 avoids the possibility. The other benefit: upgrading to C++ driver 4.1.0 (with minimum C driver 2.0.2) is guaranteed to have the bug fix of CDRIVER-6017.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Included a reference to CXX-3302 for tracking purposes.
* Update examples for CDRIVER-5710 and CDRIVER-6017 * Add missing import of ec2_assume_role * Bump minimum required C Driver version to 2.0.2
Followup to mongodb/mongo-c-driver#2026 which addressed CDRIVER-5710 and CDRIVER-6017. The changes in mongodb/mongo-c-driver@d184525 affect a couple assertions in the C++ Driver examples which demonstrate use of
bsoncxx::v_noabi::validate()including the expected error offsets. Because the offsets are now changed/fixed, these examples need to be updated to run successfully.This PR bumps the C Driver version to 2.0.2 for auto-downloads and EVG testing only. It does not bump the minimum required C Driver version for downstream users. We can also raise the minimum required C Driver version for downstream users if that is preferable (CXX-3302), but I do not think it is necessary at this time.
Alternatively we can defer applying this PR until the minimum required C Driver version for downstream users is bumped instead (e.g. when C Driver 2.1.0 is released).
Drive-by fix: also adds a missing import (followup to #1413) to address EVG config generator errors.