OpenTermsArchive/engine

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

MattiSG opened this issue · 4 comments

When investigating a failed deployment of #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

This happens in every PR now, including some that have no functional change such as #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 #904 😞

See #909 for context of using this Action.

Yep, seems related to Ubuntu 22 upgrade: actions/runner-images#6626

Envisioned solutions at this stage of research:

  • Check if the dependent action has been updated to implement a fix.
  • Implement manual install as in actions/runner-images#6626 (comment).
  • Pin runner version to Ubuntu 20 instead of Ubuntu Latest in CI.

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

Answer is no. I opened ankane/setup-mongodb#6.