Skip to content
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 integration tests stability #579

Merged
merged 3 commits into from
Oct 2, 2023

Conversation

mwperina
Copy link
Member

  • Add delay to wait_for_unit_state method
  • Wait for daemon-reload to finish

@dougsland
Copy link
Contributor

LGTM but let me know when you need a final review (in case you add more patches)

@mwperina mwperina force-pushed the import-tests-stability branch 9 times, most recently from c4351a2 to edca594 Compare September 29, 2023 09:34
@mwperina
Copy link
Member Author

DO NOT MERGE - it will require to remove unnecessary changes after merging: #581

Added `delay` option to wait_for_unit_state method to wait before
checking status again to prevent unnecessary bombarding API with status
checks.

Signed-off-by: Martin Perina <mperina@redhat.com>
When installing a new service as a part of a test we need to make sure
that daemon-reload finished and the new service is available.

Signed-off-by: Martin Perina <mperina@redhat.com>
1. We don't need to check bluechi-controller or bluechi-agent service
   status at the beginning of each test, because we already check this
   status at the end of each container startup
2. We should be calling `wait_for_unit_state_to_be` instead of directly
   calling `systemctl is-active` to make sure that service will get to
   the required status (even though it may not be yet in the required
   status).

Signed-off-by: Martin Perina <mperina@redhat.com>
@mwperina
Copy link
Member Author

LGTM but let me know when you need a final review (in case you add more patches)

Ready for review :-;

@mwperina mwperina merged commit bc4b439 into eclipse-bluechi:main Oct 2, 2023
10 checks passed
@mwperina mwperina deleted the import-tests-stability branch October 2, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants