OpenTermsArchive / engine

Tracks contractual documents and exposes changes to the terms of online services.
https://opentermsarchive.org
European Union Public License 1.2
106 stars 30 forks source link

Failing tests in CI: Unit `mongod.service` not found. #973

Closed MattiSG closed 1 year ago

MattiSG commented 1 year ago

When investigating a failed deployment of https://github.com/ambanum/OpenTermsArchive/pull/970, I noticed a test fail run on ubuntu-latest. Even when re-running the tests, they still fail.

The relevant logs part is:

sudo systemctl start mongod
Failed to start mongod.service: Unit mongod.service not found.
[…]
Error: Command failed: sudo systemctl start mongod
MattiSG commented 1 year ago

This happens in every PR now, including some that have no functional change such as https://github.com/ambanum/OpenTermsArchive/pull/971, so this is certainly a broken dependency. Since the MongoDB GitHub Action we rely on has a fixed version, I assume this is an update in the GitHub Actions runners, like in https://github.com/ambanum/OpenTermsArchive/pull/904 😞

See https://github.com/ambanum/OpenTermsArchive/pull/909 for context of using this Action.

MattiSG commented 1 year ago

Yep, seems related to Ubuntu 22 upgrade: https://github.com/actions/runner-images/issues/6626

MattiSG commented 1 year ago

Envisioned solutions at this stage of research:

MattiSG commented 1 year ago

Check if the dependent action has been updated to implement a fix.

Answer is no. I opened https://github.com/ankane/setup-mongodb/issues/6.