Wait for systemd to be ready before waiting for systemd-networkd#488
Merged
Conversation
This test is flaky on my "update base image" branch, which is odd because I've never noticed it being flaky before, and I don't think I made any major changes to the code this exercises. In any case, it should be more reliable now. The error manifests as "command exit code 1" when LaunchTestWorkshop runs the start command. The stderr of the start command is "Could not create manager: No such file or directory." After installing strace in a custom base image, and looking at the code a bit, I was able to confirm that the file in question is /run/systemd/. So this particular error is definitely fixed by waiting for systemd to be ready. I probably should have done this from the beginning, the extra Exec call is much simpler than I was imagining.
TICS Quality Gate✔️ PassedNo changed files applicable for TICS analysis quality gating. Automatic-tests / code-coverage / TICS GitHub Action |
dmitry-lyfar
approved these changes
Sep 17, 2025
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.
Description
This test is flaky on my "update base image" branch, which is odd because I've never noticed it being flaky before, and I don't think I made any major changes to the code this exercises. In any case, it should be more reliable now.
The error manifests as "command exit code 1" when LaunchTestWorkshop runs the start command. The stderr of the start command is "Could not create manager: No such file or directory." After installing strace in a custom base image, and looking at the code a bit, I was able to confirm that the file in question is /run/systemd/. So this particular error is definitely fixed by waiting for systemd to be ready.
I probably should have done this from the beginning, the extra Exec call is much simpler than I was imagining.
Self-review quick check
Docs
Or: