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

add MONGOMS_SKIP_MD5_CHECK environment option #114

Merged
merged 5 commits into from
Dec 7, 2018

Conversation

dimitriylol
Copy link
Contributor

@dimitriylol dimitriylol commented Dec 6, 2018

There are several changes in this pull request:

  • add error handling in postinstall.js script for verbose error during downloading and installation
  • add MONGOMS_SKIP_MD5_CHECK environment variable for skipping MD5 check with the reference result

FYI: md5 sum has been updated in the MongoDB mirror, so I removed my workaround in MongoBinary-test.js. Even this pull request currently isn't required, I think it's good to have such option for the future.

Copy link
Collaborator

@AJRdev AJRdev left a comment

Choose a reason for hiding this comment

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

Hi, thanks you for this PR ! I've done a couple of comments, I hope I've been clear enough :)

src/util/MongoBinaryDownload.js Outdated Show resolved Hide resolved
src/util/MongoBinaryDownload.js Outdated Show resolved Hide resolved
src/util/MongoBinaryDownload.js Outdated Show resolved Hide resolved
@dimitriylol dimitriylol force-pushed the mongodb-installation-option branch 2 times, most recently from 7ca8471 to f2f3508 Compare December 6, 2018 12:39
dimitriylol added a commit to dimitriylol/mongodb-memory-server that referenced this pull request Dec 6, 2018
Copy link
Owner

@nodkz nodkz left a comment

Choose a reason for hiding this comment

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

Great job! I'm ready to merge this PR.

But can you make last two small improvements:

  • move const mongoDBArchiveMd5 = await this.download(${downloadUrl}.md5); inside checkMd5 method. It clean ups a little bit the code. And if disabled checking then do not download md5 at all.
  • rename checkMd5 to checkMD5 for better view

@AJRdev any other additions?

@AJRdev
Copy link
Collaborator

AJRdev commented Dec 6, 2018

@nodkz Just a little change request for consistency regarding a recent PR but out of that everything seems good to me :)

For details see nodkz#114 (comment)
and nodkz comment after approving pull request
@nodkz nodkz merged commit a72a2f3 into nodkz:master Dec 7, 2018
@nodkz
Copy link
Owner

nodkz commented Dec 7, 2018

Thanks to all for amazing Pull Request! Especially regards to @dimitriylol ;)

@nodkz
Copy link
Owner

nodkz commented Dec 7, 2018

🎉 This PR is included in version 2.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@nodkz nodkz added the released Pull Request released | Issue is fixed label Dec 7, 2018
PiresHagan added a commit to PiresHagan/Mongo-Memorable-Server that referenced this pull request Oct 3, 2023
…ptions

* fix: add error handling in postinstall

* feat: add MONGOMS_SKIP_MD5_CHECK for skipping md5 check

* refactor: add return type in checkMd5 signature

Response to the comment nodkz/mongodb-memory-server#114 (comment)

* refactor: add checkMD5 parameter to the MongoBinaryDownload constructor

For details see nodkz/mongodb-memory-server#114 (comment)

* refactor: style changes and function renaming

For details see nodkz/mongodb-memory-server#114 (comment)
and nodkz comment after approving pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Pull Request released | Issue is fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants