Repository navigation
Fix unexpected mongodb failures - #56
Merged
Merged
Conversation
to prevent inadvertent rounding in case of minor/patch versions
minor.patch caused the task to be ignored somehow...
workflow was being ignored for some reason...
the action does not use proper versioning... v1 always refers to the latest version
dennisvang
force-pushed
the
fix/55-mongodb-failure
branch
from
November 6, 2026 14:27
9606b8a to
d4c0761
Compare
Collaborator
Author
|
Tried pinning to ankane/setup-mongodb@a01a9a4, but that does not make a difference. If the combination of versions for mongo/ubuntu is the problem, we have no solution, because if (!['9.0', '8.0', '7.0'].includes(mongoVersion)) {
throw `MongoDB version not supported: ${mongoVersion}`;
}Similar issue with github runners: we can only specify 24.04, not 24.04.4 |
because we don't have mongosh in this case
not sure if the alias persists between steps...
alias did not work, as expected
using plain docker there is no easy way to wait for the container to be ready
Collaborator
Author
|
Still running into the mongodb vs linux kernel issue: |
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.
Mongodb appeared to fail on ubuntu due to some incompatibility between mongodb and the linux kernel.
However, the
ankane/setup-mongodbaction does not allow us to specify specific minor.patch versions (just 7.0, 8.0, or 9.0). Moreover, we cannot specify the runner's patch version either, so there is no easy way around this.As a workaround, we now use docker containers for the ubuntu runner, which is actually prefereable to a third party action. This allows us to specify the mongodb version that we need.
Note
To work around the incompatibility issue we now pinned the mongo version to 8.2.12, because that seems to work.
However, this workaround should be removed a.s.a.p.
Unfortunately, we still need the
ankane/setup-mongodbaction for windows and macos, because docker containers are not supported on those runners (also see service containers).fixes #55
follow-up: #58