Skip to content

Use rhel90 distro for MongoDB <7 and parse jest-mongodb-config version#2571

Merged
hiroshinishio merged 1 commit intomainfrom
wes
Apr 22, 2026
Merged

Use rhel90 distro for MongoDB <7 and parse jest-mongodb-config version#2571
hiroshinishio merged 1 commit intomainfrom
wes

Conversation

@hiroshinishio
Copy link
Copy Markdown
Collaborator

@hiroshinishio hiroshinishio commented Apr 22, 2026

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.

@hiroshinishio hiroshinishio self-assigned this Apr 22, 2026
@hiroshinishio hiroshinishio merged commit af7cd35 into main Apr 22, 2026
2 checks passed
@hiroshinishio hiroshinishio deleted the wes branch April 22, 2026 02:11
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.

1 participant