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

TESTS: Adapt the KCM tests to the new behavior #6980

Closed
wants to merge 3 commits into from

Conversation

aplopez
Copy link
Contributor

@aplopez aplopez commented Oct 12, 2023

  1. Corrected the path to the logs for the artifacts.
  2. KCM tests where sometimes failing because they were opening the pipe while KCM was shutting down. This was happening because tests were successfully opening the pipe because it was left over by the previous instance of KCM. So to avoid this we immediately remove the pipe during teardown. With this, tests will fail to open it and keep trying until it is re-created by the new instance of KCM.
    These tests started to fail sporadically after KCM uses its own configuration #6948 was pushed, because the start-up time is now longer.
  3. Some PAM tests sometimes fail because they start before KDC has finished its initialization. Adding a short delay to let it complete its initialization before launching the actual tests.

@aplopez aplopez force-pushed the kcm-config branch 6 times, most recently from aea5953 to 92e8fef Compare October 17, 2023 09:21
Logs were not included in the artifacts because the path was incorrect.
@aplopez aplopez force-pushed the kcm-config branch 3 times, most recently from 0a108f2 to 50b348a Compare October 18, 2023 07:39
@aplopez aplopez changed the title NOT FOR REVIEW TESTS: Adapt the KCM tests to the new behavior Oct 18, 2023
@aplopez
Copy link
Contributor Author

aplopez commented Oct 18, 2023

Centos-9 system test seem to be failing because of a dependency problem not related to this PR.
Covscan seems to be blocked again.
debian-latest-intgcheck has been failing for some days now.

@aplopez aplopez marked this pull request as ready for review October 18, 2023 12:05
@aplopez aplopez added the no-backport This should go to target branch only. label Oct 18, 2023
@sumit-bose
Copy link
Contributor

Centos-9 system test seem to be failing because of a dependency problem not related to this PR.
Covscan seems to be blocked again.
debian-latest-intgcheck has been failing for some days now.

Hi,

jfyi, the issue on Debian should be fixed by SSSD/sssd-ci-containers#64 .

bye,
Sumit

Copy link

@danlavu danlavu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG2M

src/tests/intg/test_kcm.py Outdated Show resolved Hide resolved
Tests where sometimes failing because they were opening the pipe
while KCM was shutting down. This was happening because tests were
successfully opening the pipe because it was left over by the
previous instance of KCM. So to avoid this we immediately remove
the pipe during teardown. With this, tests will fail to open it
and keep trying until it is re-created by the new instance of KCM.
Some PAM tests sometimes fail because they starts before KDC has
finished its initialization. Adding a short delay to let it complete
its initialization before launching the actual tests.
Copy link
Contributor

@thalman thalman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update, ACK

@alexey-tikhonov alexey-tikhonov added Accepted backport-to-stable and removed no-backport This should go to target branch only. backport-to-stable labels Oct 24, 2023
@alexey-tikhonov alexey-tikhonov added the no-backport This should go to target branch only. label Oct 24, 2023
@alexey-tikhonov
Copy link
Member

@danlavu, would you like to take a look at updated version?

@alexey-tikhonov
Copy link
Member

Pushed PR: #6980

  • master
    • 54744f2 - TESTS: Give KDC time to initialize
    • 58c7b64 - KCM: Clean the pipe after the test has finished
    • e01378a - CI: Corrected the path to the logs

@aplopez aplopez deleted the kcm-config branch November 28, 2023 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport This should go to target branch only. Pushed Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants