Skip to content

Fix unexpected mongodb failures - #56

Merged
dennisvang merged 18 commits into
mainfrom
fix/55-mongodb-failure
Nov 6, 2026
Merged

dennisvang merged 18 commits into
mainfrom
fix/55-mongodb-failure

Conversation

@dennisvang

@dennisvang dennisvang commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Mongodb appeared to fail on ubuntu due to some incompatibility between mongodb and the linux kernel.
However, the ankane/setup-mongodb action 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-mongodb action for windows and macos, because docker containers are not supported on those runners (also see service containers).

fixes #55

follow-up: #58

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
dennisvang force-pushed the fix/55-mongodb-failure branch from 9606b8a to d4c0761 Compare November 6, 2026 14:27
@dennisvang

dennisvang commented Nov 6, 2026 •

Copy link
Copy Markdown
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 ankane/setup-mongodb only supports minor version 0 and we cannot specify specific patch versions (source):

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

@dennisvang

dennisvang commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator Author

Still running into the mongodb vs linux kernel issue:

@dennisvang
dennisvang marked this pull request as ready for review November 6, 2026 16:54
@dennisvang
dennisvang merged commit a9f6ad7 into main Nov 6, 2026
9 checks passed
@dennisvang
dennisvang deleted the fix/55-mongodb-failure branch November 6, 2026 17:03
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.

Sudden failures for actions depending on mongodb

1 participant