Skip to content

Interruption-aware sleep alternative - #5139

Open
happz wants to merge 2 commits into
mainfrom
time-sleep-alternative
Open

happz wants to merge 2 commits into
mainfrom
time-sleep-alternative

Conversation

@happz

@happz happz commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Instead of time.sleep() which does not play well with threads and tmt interrupt process.

Related to #5009.

Pull Request Checklist

  • implement the feature
  • write the documentation
  • extend the test coverage

@happz happz added code | no functional change "No Functional Change" intended. Patch should not change tmt's behavior in any way. ci | full test Pull request is ready for the full test execution labels Aug 25, 2026
@therazix therazix added this to triage Aug 26, 2026
@github-project-automation github-project-automation Bot moved this to waiting in triage Aug 26, 2026
@therazix therazix moved this from waiting to triaged in triage Aug 26, 2026
@github-project-automation github-project-automation Bot moved this to backlog in planning Aug 26, 2026
@therazix therazix removed this from triage Aug 26, 2026

@lukaszachy lukaszachy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wrong import which makes few tests fail. Otherwise LGTM

Comment thread tests/utils/http_server.py Outdated
import socketserver
import threading

import tmt.utils.time

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ModuleNotFoundError: No module named 'tmt.utils.time'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 69e5016.

Comment thread tests/unit/test_utils.py
happz added 2 commits August 31, 2026 09:29
Instead of `time.sleep()` which does not play well with threads and tmt
interrupt process.

Related to #5009.
@happz
happz force-pushed the time-sleep-alternative branch from 6a6384d to 69e5016 Compare August 31, 2026 07:33

This branch has not been deployed

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

Labels

ci | full test Pull request is ready for the full test execution code | no functional change "No Functional Change" intended. Patch should not change tmt's behavior in any way.

Projects

Status: backlog

Development

Successfully merging this pull request may close these issues.

3 participants