Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
MattiSG opened this issue Dec 6, 2022 · 4 comments · Fixed by #974
Closed

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

MattiSG opened this issue Dec 6, 2022 · 4 comments · Fixed by #974

Comments

@MattiSG
Copy link
Member

MattiSG commented Dec 6, 2022

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
@MattiSG
Copy link
Member Author

MattiSG commented Dec 6, 2022

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.

@MattiSG
Copy link
Member Author

MattiSG commented Dec 6, 2022

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

@MattiSG
Copy link
Member Author

MattiSG commented Dec 6, 2022

Envisioned solutions at this stage of research:

@MattiSG
Copy link
Member Author

MattiSG commented Dec 6, 2022

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

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant