supercharge / mongodb-github-action

Use MongoDB in GitHub Actions
MIT License
222 stars 46 forks source link

MongoDB 6.0 contains breaking changes that make the setup action fail #34

Closed tmasternak closed 2 years ago

tmasternak commented 2 years ago

Following the deprecation warning:

Warning: the "mongo" shell has been superseded by "mongosh", which delivers improved usability and compatibility.The "mongo" shell has been deprecated and will be removed in

the latest MongoDB i.e. 6.0 does not support mongo as the command line tool which results in the following container startup error:

OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "mongo": executable file not found in $PATH: unknown

This affects all users who do not specify a concrete MongoDB version, as latest is the default version for the mongodb-version parameter.

//cc: @danielmarbach

marcuspoehls commented 2 years ago

@tmasternak Hey Tomasz, thank you for reporting this. I’ll have a look. If you already know how to fix it, I appreciate a pull request

tmasternak commented 2 years ago

@marcuspoehls thank you for the quick response. I see that @ecarruda already started the fix.

marcuspoehls commented 2 years ago

@tmasternak Yep, Evandro submitted a pull request. The tests are failing because the MongoDB client (mongo vs. mongosh) isn’t resolved properly. Tomasz, maybe you have an idea what’s causing the issue?