-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve bci-init tests #139
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good, I've added a few suggestions.
I would additionally suggest that you use the pytestmark
global variable to just skip this module with docker & systemd >= 248. and Please use the auto_container
fixture instead of container
. There's really no need to repeat the parametrize for every single test function 😉
bed04c0
to
e998a0c
Compare
I don't know why the pipeline is complaining about the code not being
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a few nitpicks here and there
purge your |
Yay, it doesn't complain about not being |
VRs in openQA with 4 archs: |
@grisu48 please add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One assertion doesn't look right to me, otherwise this is ready to be merged 💪
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run tox -e format
63dcec4
to
da50d7c
Compare
Did that while you have been complaining ;-) Should be good now, after the pipeline passes |
@jlausuch @grisu48 the last pipeline (https://github.com/SUSE/BCI-tests/runs/6875884458?check_suite_focus=true) failed with:
This could result in a flaky test, but maybe we should add a |
I will have a look at this. Let me have another look, I would like to not push tests with flanky results. Marking as draft until resolved. |
This should prevent issues like SUSE/BCI-tests#139 (comment) and ensure that the container is not up before reaching multi-user.target
This should prevent issues like SUSE/BCI-tests#139 (comment) and ensure that the container is not up before reaching multi-user.target
37e8e9a
to
85057b3
Compare
SUSE/BCI-dockerfile-generator#9 should indeed prevent race conditions where the system target has not yet been reached. Thanks for the improvement. I've pushed the black formatted test run and think we can proceed with this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be that you force pushed some of your improvements away? There's a bunch of print statements back in there
Oh damn, the rebase did something weird. Part of the latest changes got removed. Let me check, something went horribly wrong here. Happy Monday btw ☕ |
cc539b5
to
507e8d2
Compare
Fixed. Please review again and sorry for the fuzz @dcermak |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have to use Dict
and not dict
.
Improve the systemd tests for the bci-init container by adding multiple new tests for boottime, journald, timedatectl, loginctl, hostnamectl.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Improve the systemd tests for the bci-init container by adding multiple
new tests for boottime, journald, timedatectl, loginctl, hostnamectl.
Related ticket: https://progress.opensuse.org/issues/111054