Use rhel90 distro for MongoDB <7 and parse jest-mongodb-config version#2571
Merged
hiroshinishio merged 1 commit intomainfrom Apr 22, 2026
Merged
Use rhel90 distro for MongoDB <7 and parse jest-mongodb-config version#2571hiroshinishio merged 1 commit intomainfrom
hiroshinishio merged 1 commit intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Social Media Post (GitAuto on X)
Test-coverage PRs on mongodb-memory-server repos now run. Lambda was downloading the amazon2 MongoDB binary, crashing on missing libcrypto.so.10. Agent now picks rhel90 for MongoDB 6.x and reads binary.version from jest-mongodb-config.js.
Social Media Post (GitAuto on LinkedIn)
Test-coverage PRs for any repo using mongodb-memory-server used to crash before Jest even started. Our Lambda runs on Amazon Linux 2023 while the default MongoDB 6.x binary is built for Amazon Linux 2 (OpenSSL 1.0.x). AL2023 ships only OpenSSL 3, so the binary's libcrypto.so.10 dependency couldn't resolve and the process died before any test executed.
Two fixes shipped.
First, the binary picker now uses the rhel90 build for MongoDB 6.x, which shares AL2023's glibc 2.34 and OpenSSL 3. MongoDB 7.0+ keeps using amazon2023. No more libcrypto.so.10 missing.
Second, the version detector now reads binary.version from jest-mongodb-config.js (plus .cjs and .ts variants), matching how @shelf/jest-mongodb resolves version upstream. Previously we only looked at package.json and silently defaulted to 6.0.9.