Skip to content

Phases added dynamically to a step are added to its queue too#4750

Merged
psss merged 7 commits intomainfrom
step-add-phase-to-queue
Apr 2, 2026
Merged

Phases added dynamically to a step are added to its queue too#4750
psss merged 7 commits intomainfrom
step-add-phase-to-queue

Conversation

@happz
Copy link
Copy Markdown
Contributor

@happz happz commented Mar 25, 2026

If the queue is running, phases is added there. If the queue is not running, we shall not touch the queue: it's either already done, or it will start at some point in the future, in which case step would add the phase just as any other "static" phase.

Pull Request Checklist

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

@happz happz added this to planning Mar 25, 2026
@github-project-automation github-project-automation Bot moved this to backlog in planning Mar 25, 2026
Copy link
Copy Markdown
Contributor

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

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 refactors how guest instances are handled across different tmt steps (cleanup, finish, prepare) by introducing a shared _guest_copies cached property in the base Step class. This centralizes the logic for creating guest copies and configuring them for step-specific operations, removing redundant code from individual step implementations. Additionally, a new is_running flag is added to the Queue class to track its active state, and the add_phase method in the base Step class is enhanced to dynamically enqueue phases into the queue if it's currently running. There is no feedback to provide on the review comments as none were provided.

@happz happz added the ci | full test Pull request is ready for the full test execution label Mar 25, 2026
@happz
Copy link
Copy Markdown
Contributor Author

happz commented Mar 25, 2026

/packit build

@happz happz moved this from backlog to implement in planning Mar 25, 2026
@happz happz force-pushed the step-with-queue branch from 3ac5911 to 700ce4a Compare March 26, 2026 09:36
@happz happz force-pushed the step-add-phase-to-queue branch from c30e6c8 to 18e7d59 Compare March 26, 2026 09:37
@psss psss added this to the 1.71 milestone Mar 27, 2026
Comment thread tmt/steps/__init__.py Outdated
@happz happz force-pushed the step-with-queue branch 3 times, most recently from 445e4a3 to ab7c95e Compare March 27, 2026 19:43
Comment thread tmt/queue.py
@happz happz force-pushed the step-with-queue branch from ab7c95e to c2cff28 Compare March 30, 2026 12:55
@happz happz force-pushed the step-add-phase-to-queue branch from 18e7d59 to e6a1189 Compare March 30, 2026 13:01
@happz happz force-pushed the step-with-queue branch from c2cff28 to a5e59aa Compare March 30, 2026 13:03
@happz happz force-pushed the step-add-phase-to-queue branch from e6a1189 to a84be31 Compare March 30, 2026 13:03
@happz happz force-pushed the step-with-queue branch from a5e59aa to 9b30950 Compare March 31, 2026 08:40
Base automatically changed from step-with-queue to main March 31, 2026 11:00
@happz happz force-pushed the step-add-phase-to-queue branch from 1d33b15 to e6b3d7b Compare March 31, 2026 11:13
@happz happz moved this from implement to review in planning Mar 31, 2026
@happz happz marked this pull request as ready for review March 31, 2026 11:15
@happz happz force-pushed the step-add-phase-to-queue branch from 0ddd54e to 49b6bd2 Compare April 1, 2026 13:24
@thrix thrix moved this from review to merge in planning Apr 1, 2026
@thrix thrix moved this from merge to review in planning Apr 1, 2026
Comment thread tests/unit/test_steps.py Outdated
@vaibhavdaren vaibhavdaren moved this from review to merge in planning Apr 1, 2026
happz added 6 commits April 2, 2026 08:51
If the queue is running, phases is added there. If the queue is not
running, we shall not touch the queue: it's either already done, or it
will start at some point in the future, in which case step would add the
phase just as any other "static" phase.
@happz happz force-pushed the step-add-phase-to-queue branch from e59f5fb to 6fd141c Compare April 2, 2026 06:53
Comment thread tests/unit/test_steps.py Outdated
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
@psss psss merged commit dc1577a into main Apr 2, 2026
33 checks passed
@psss psss deleted the step-add-phase-to-queue branch April 2, 2026 11:41
@github-project-automation github-project-automation Bot moved this from merge to done in planning Apr 2, 2026
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

Projects

Status: done

Development

Successfully merging this pull request may close these issues.

7 participants