Skip to content

[autobackport: sssd-2-13] tests: poll for KCM TGT renewal instead of fixed sleep#8660

Merged
alexey-tikhonov merged 1 commit into
SSSD:sssd-2-13from
sssd-bot:SSSD-sssd-backport-pr8650-to-sssd-2-13
Apr 28, 2026
Merged

[autobackport: sssd-2-13] tests: poll for KCM TGT renewal instead of fixed sleep#8660
alexey-tikhonov merged 1 commit into
SSSD:sssd-2-13from
sssd-bot:SSSD-sssd-backport-pr8650-to-sssd-2-13

Conversation

@sssd-bot

Copy link
Copy Markdown
Contributor

This is an automatic backport of PR#8650 tests: poll for KCM TGT renewal instead of fixed sleep to branch sssd-2-13, created by @madhuriupadhye.

Please make sure this backport is correct.

Note

The commits were cherry-picked without conflicts.

You can push changes to this pull request

git remote add sssd-bot [email protected]:sssd-bot/sssd.git
git fetch sssd-bot refs/heads/SSSD-sssd-backport-pr8650-to-sssd-2-13
git checkout SSSD-sssd-backport-pr8650-to-sssd-2-13
git push sssd-bot SSSD-sssd-backport-pr8650-to-sssd-2-13 --force

Original commits
233db39 - tests: poll for KCM TGT renewal instead of fixed sleep

Backported commits

  • ca144c0 - tests: poll for KCM TGT renewal instead of fixed sleep

Original Pull Request Body

test_kcm__tgt_renewal_updates_ticket_as_configured no longer uses a fixed sleep(5) and flaky retries.
The test now polls klist every 0.5s and asserts renewal by checking that TGT start or end time advances, with a detailed failure message that prints both initial and last timestamps.

To match KCM renewal behavior (renewal only starts after roughly half the ticket lifetime), the test uses a short renewable ticket (-r 5s -l 5s) and a bounded polling window (9s) so it stays fast while still waiting long enough for renewal to be attempted.
Also removed the temporary CI comment and the flaky marker from this test.

@gemini-code-assist

Copy link
Copy Markdown

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@alexey-tikhonov alexey-tikhonov added the no-backport This should go to target branch only. label Apr 28, 2026
@alexey-tikhonov
alexey-tikhonov removed the request for review from spoore1 April 28, 2026 13:19
test_kcm__tgt_renewal_updates_ticket_as_configured
no longer uses a fixed sleep(5) and flaky retries.
The test now polls klist every 0.5s and asserts renewal
by checking that TGT start or end time advances,
with a detailed failure message that prints both
initial and last timestamps.

To match KCM renewal behavior (renewal only starts
after roughly half the ticket lifetime),
the test uses a short renewable ticket (-r 5s -l 5s) and
a bounded polling window (9s) so it stays fast while still
waiting long enough for renewal to be attempted.
Also removed the temporary CI comment and the flaky marker from this test.

Assited by: Cursor(Claude Opus 4.6)

Signed-off-by: Madhuri Upadhye <[email protected]>
Reviewed-by: Alexey Tikhonov <[email protected]>
Reviewed-by: Scott Poore <[email protected]>
(cherry picked from commit 233db39)
@sssd-bot

Copy link
Copy Markdown
Contributor Author

The pull request was accepted by @alexey-tikhonov with the following PR CI status:


🟡 rpm-build:centos-stream-10-x86_64:upstream (in_progress)
🟢 rpm-build:fedora-42-x86_64:upstream (success)
🟢 rpm-build:fedora-43-x86_64:upstream (success)
🟡 rpm-build:fedora-44-x86_64:upstream (in_progress)
🟢 rpm-build:fedora-rawhide-x86_64:upstream (success)


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

@sssd-bot
sssd-bot force-pushed the SSSD-sssd-backport-pr8650-to-sssd-2-13 branch from ca144c0 to 36682c8 Compare April 28, 2026 13:20
@alexey-tikhonov
alexey-tikhonov merged commit d77df8e into SSSD:sssd-2-13 Apr 28, 2026
1 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Accepted no-backport This should go to target branch only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants