Skip to content

tests: avoid fixed sleep in KCM timestamp refresh test#8678

Merged
jakub-vavra-cz merged 1 commit into
SSSD:masterfrom
jakub-vavra-cz:kcm_timestamp
May 11, 2026
Merged

tests: avoid fixed sleep in KCM timestamp refresh test#8678
jakub-vavra-cz merged 1 commit into
SSSD:masterfrom
jakub-vavra-cz:kcm_timestamp

Conversation

@jakub-vavra-cz

Copy link
Copy Markdown
Contributor

Summary

  • Replace fixed 65s sleep in KCM refresh test with bounded polling loop.
  • Retry grep for the LDAP search log entry with 10s intervals up to 120s total.
  • Keep assertion logic unchanged while reducing timing flakiness.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request reorganizes imports and replaces a static sleep with a polling loop in test_kcm.py to improve test reliability. Feedback highlights a potential false positive where the test could pass if the log entry is never found, suggesting an explicit assertion on the command's return code.

@sssd-bot

Copy link
Copy Markdown
Contributor

The pull request was accepted by @jakub-vavra-cz with the following PR CI status:


🟢 CodeQL (success)
🟢 osh-diff-scan:fedora-rawhide-x86_64:upstream (success)
🟢 rpm-build:centos-stream-10-x86_64:upstream (success)
🟢 rpm-build:fedora-42-x86_64:upstream (success)
🟢 rpm-build:fedora-43-x86_64:upstream (success)
🟢 rpm-build:fedora-44-x86_64:upstream (success)
🟢 rpm-build:fedora-rawhide-x86_64:upstream (success)
🟢 Analyze (target) / cppcheck (success)
🟢 Build / freebsd (success)
🟢 Build / make-distcheck (success)
🟢 ci / intgcheck (centos-10) (success)
🟢 ci / intgcheck (fedora-42) (success)
🟢 ci / intgcheck (fedora-43) (success)
🟢 ci / intgcheck (fedora-44) (success)
🟢 ci / intgcheck (fedora-45) (success)
🟢 ci / prepare (success)
🔴 ci / system (centos-10) (failure)
🟢 ci / system (fedora-42) (success)
🟢 ci / system (fedora-43) (success)
🔴 ci / system (fedora-44) (failure)
🔴 ci / system (fedora-45) (failure)
➖ Coverity scan / coverity (skipped)
🟢 Static code analysis / codeql (success)
🟢 Static code analysis / pre-commit (success)
🟢 Static code analysis / python-system-tests (success)


There are unsuccessful or unfinished checks. Make sure that the failures are not related to this pull request before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants