Skip to content
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

RUST-2035 Fix invocation of mongosh for requireApiVersion #497

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

abr-egn
Copy link
Contributor

@abr-egn abr-egn commented Sep 17, 2024

RUST-2035

Example failing run and passing run against my fork with the fix.

I'm honestly not sure how this worked before; mongosh is moved into the $MONGODB_BINARIES path by the install script and isn't in $PATH.

@blink1073
Copy link
Member

What if we instead add to to PATH here?

MONGODB_BINARIES=${MONGODB_BINARIES:-${DRIVERS_TOOLS}/mongodb/bin}

@blink1073
Copy link
Member

I can follow up with a PR with a REQUIRE_API_VERSION test in drivers-tools as well. I'll also need to add a test for invoking download-mongodb.sh directly to cover @eramongodb's case as well.

@abr-egn
Copy link
Contributor Author

abr-egn commented Sep 17, 2024

What if we instead add to to PATH here?

MONGODB_BINARIES=${MONGODB_BINARIES:-${DRIVERS_TOOLS}/mongodb/bin}

That would work as well, but I'm generally more a fan of keeping state explicit 🙂 It's also more consistent with how mongosh is called from other scripts in this repo.

Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@blink1073
Copy link
Member

test-oidc-k8s-local is a known flakey test.

@abr-egn abr-egn merged commit 73c1eae into mongodb-labs:master Sep 17, 2024
45 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants