Skip to content

Enforce test duration across reboots and restarts#4416

Open
happz wants to merge 11 commits intomainfrom
test-deadline
Open

Enforce test duration across reboots and restarts#4416
happz wants to merge 11 commits intomainfrom
test-deadline

Conversation

@happz
Copy link
Contributor

@happz happz commented Dec 10, 2025

Tests that triggered reboots and restarts were given their full duration on every invocation. This behavior is most likely incorrect, a duration should apply to the whole test, no matter how many times it reboots a guest.

Patch adds Duration object which poses a strict deadline, derived from the test duration key. Unlike a timeout, it is not reset after guest reboot or test restart.

Pull Request Checklist

  • implement the feature
  • write the documentation
  • include a release note

@happz happz added bug Something isn't working step | execute Stuff related to the execute step labels Dec 10, 2025
@happz happz added this to planning Dec 10, 2025
@github-project-automation github-project-automation bot moved this to backlog in planning Dec 10, 2025
@happz happz moved this from backlog to review in planning Dec 10, 2025
@happz happz added the ci | full test Pull request is ready for the full test execution label Dec 10, 2025
@happz happz force-pushed the test-deadline branch 2 times, most recently from 3d281a5 to 5974245 Compare January 1, 2026 19:19
@happz happz force-pushed the test-deadline branch 2 times, most recently from 3d48646 to 834945d Compare January 6, 2026 18:02
@happz happz moved this from review to merge in planning Jan 7, 2026
@happz happz moved this from merge to implement in planning Jan 7, 2026
@psss psss added this to the 1.65 milestone Jan 8, 2026
@happz happz moved this from implement to review in planning Jan 12, 2026
@happz happz added status | blocked The merging of PR is blocked on some other issue status | discuss Needs more discussion before closing labels Jan 12, 2026
@happz
Copy link
Contributor Author

happz commented Jan 12, 2026

Blocked on resolving the question of true meaning of Christmas^Wduration. What exactly does it enforce, and does tmt "paperwork" counts?

@happz happz moved this from review to implement in planning Jan 13, 2026
@thrix thrix modified the milestones: 1.65, 1.66 Jan 15, 2026
@lachmanfrantisek lachmanfrantisek linked an issue Jan 15, 2026 that may be closed by this pull request
@happz happz removed status | blocked The merging of PR is blocked on some other issue status | discuss Needs more discussion before closing labels Jan 21, 2026
@happz
Copy link
Contributor Author

happz commented Jan 21, 2026

/packit build

@happz happz moved this from implement to review in planning Jan 21, 2026
Copy link
Contributor

@psss psss left a comment

Choose a reason for hiding this comment

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

Just two minor suggestions plus the question why the first two invocations have the same time left.

happz added 9 commits January 22, 2026 10:35
Tests that triggered reboots and restarts were given their full duration
on every invocation. This behavior is most likely incorrect, a duration
should apply to the whole test, no matter how many times it reboots a
guest.

Patch adds `Duration` object which poses a strict deadline, derived from
the test `duration` key. Unlike a timeout, it is not reset after guest
reboot or test restart.
@happz happz moved this from review to merge in planning Jan 22, 2026
@happz happz moved this from merge to implement in planning Jan 23, 2026
@happz
Copy link
Contributor Author

happz commented Jan 23, 2026

Some reboot tests seem to be affected, although the reason why remains a mystery to me. Cannot waive the failures, fix needed.

@happz
Copy link
Contributor Author

happz commented Jan 23, 2026

Blocked on #4519 - it's not an actual blocker, but this PR reveals the bug, so it makes sense to fit the bug first, then tests from this PR should pass.

@happz happz moved this from implement to backlog in planning Jan 23, 2026
@happz happz added the status | blocked The merging of PR is blocked on some other issue label Jan 23, 2026
@psss psss added the status | postponed Let's postpone for the next sprint label Jan 28, 2026
@happz happz removed this from the 1.66 milestone Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ci | full test Pull request is ready for the full test execution status | blocked The merging of PR is blocked on some other issue status | postponed Let's postpone for the next sprint step | execute Stuff related to the execute step

Projects

Status: backlog

Development

Successfully merging this pull request may close these issues.

Enforce test duration across reboots and restarts

6 participants