Skip to content

Refactor Library classes#4499

Merged
happz merged 13 commits intoteemtee:mainfrom
LecrisUT:chore/refactor/beakerlib
Jan 25, 2026
Merged

Refactor Library classes#4499
happz merged 13 commits intoteemtee:mainfrom
LecrisUT:chore/refactor/beakerlib

Conversation

@LecrisUT
Copy link
Contributor

@LecrisUT LecrisUT commented Jan 15, 2026

To summarize the changes here:

  • Make Library and sub-classes into @container, moving all of the __init__ and library_factory logic into a constructor cls.from_identifier
  • Split the BeakerLib class into distinct BeakerLibUrl and BeakerLibPath with more fine-grained type-checking
  • Split the __init__ and fetch logic in BeakerLib depending on each type that it can be

A precursor to #4440.

Pull Request Checklist

  • implement the feature

@LecrisUT LecrisUT 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 area | maintenance Changes important for efficiency and the long-term health of the project labels Jan 15, 2026
@LecrisUT LecrisUT changed the title Refactor library Refactor Library classes Jan 15, 2026
@LecrisUT LecrisUT added the status | blocking other work An important pull request, blocking other pull requests or issues label Jan 15, 2026
@github-project-automation github-project-automation bot moved this to backlog in planning Jan 15, 2026
@LecrisUT LecrisUT moved this from backlog to review in planning Jan 15, 2026
@LecrisUT LecrisUT added this to the 1.66 milestone Jan 15, 2026
@LecrisUT LecrisUT force-pushed the chore/refactor/beakerlib branch from 2add6e1 to 4b75480 Compare January 15, 2026 18:31
@happz
Copy link
Contributor

happz commented Jan 15, 2026

This PR did not exist when the current sprint was planned this afternoon, and it does not refer to an issue planned for this sprint. What issue is this related to?

@LecrisUT
Copy link
Contributor Author

This PR did not exist when the current sprint was planned this afternoon, and it does not refer to an issue planned for this sprint. What issue is this related to?

It's precursor to #4440.

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.

Looks good to me. Actually, not good, rather much better with the nice structure instead of the many long if statements. Thanks a lot for refactoring this! Just three suggestions.

@psss psss moved this from review to implement in planning Jan 20, 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.

Thanks for the changes, now looks good to me.

@psss psss moved this from implement to review in planning Jan 21, 2026
@psss psss force-pushed the chore/refactor/beakerlib branch from bef50a3 to f21a724 Compare January 22, 2026 11:50
@psss psss requested a review from happz January 22, 2026 11:50
@psss psss requested a review from happz January 23, 2026 08:02
@LecrisUT LecrisUT force-pushed the chore/refactor/beakerlib branch from f21a724 to 62aff11 Compare January 23, 2026 14:48
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
@happz happz force-pushed the chore/refactor/beakerlib branch from 62aff11 to 82fe3ec Compare January 25, 2026 22:15
@happz happz moved this from review to merge in planning Jan 25, 2026
@happz happz enabled auto-merge (squash) January 25, 2026 22:18
@happz happz merged commit accbb3c into teemtee:main Jan 25, 2026
28 checks passed
@github-project-automation github-project-automation bot moved this from merge to done in planning Jan 25, 2026
@LecrisUT LecrisUT deleted the chore/refactor/beakerlib branch February 6, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area | maintenance Changes important for efficiency and the long-term health of the project 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. status | blocking other work An important pull request, blocking other pull requests or issues

Projects

Status: done

Development

Successfully merging this pull request may close these issues.

4 participants