Skip to content

Switch to using fmf.ContextDimension - #4894

Draft
LecrisUT wants to merge 3 commits into
teemtee:mainfrom
LecrisUT:fmf/293
Draft

Switch to using fmf.ContextDimension#4894
LecrisUT wants to merge 3 commits into
teemtee:mainfrom
LecrisUT:fmf/293

Conversation

@LecrisUT

Copy link
Copy Markdown
Member

Depends-on teemtee/fmf#293

LecrisUT added 3 commits May 13, 2026 15:39
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
@LecrisUT LecrisUT added status | blocked The merging of PR is blocked on some other issue area | context The context adjust implementation ci | full test Pull request is ready for the full test execution labels May 18, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces a custom TmtContext to replace the standard fmf.context.Context, updating dependencies to fmf>=1.8.0 and adjusting various components to use the new implementation. Feedback focuses on ensuring the new context correctly inherits from DistroContext and maintains standard dimension matching logic. Specifically, TmtContextDimension should not redefine _registrar as it hides standard dimensions like arch and distro, and TmtContext should inherit from DistroContext to leverage distribution-aware logic. Additionally, the uv-pre-commit hooks should not be commented out, and the new context plugin registry requires proper integration with the fmf dimensions registrar to function.

Comment thread tmt/context/__init__.py
Comment thread tmt/context/__init__.py
Comment thread .pre-commit-config.yaml
Comment thread tmt/context/__init__.py
Comment thread tmt/context/__init__.py
@LecrisUT

Copy link
Copy Markdown
Member Author

/packit build

@LecrisUT LecrisUT changed the title Switch to using fmf.DistroContext Switch to using fmf.ContextDimension May 19, 2026
@happz happz added this to planning May 20, 2026
@happz happz moved this to implement in planning May 20, 2026
@LecrisUT LecrisUT removed the status | blocked The merging of PR is blocked on some other issue label Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area | context The context adjust implementation ci | full test Pull request is ready for the full test execution

Projects

Status: implement

Development

Successfully merging this pull request may close these issues.

2 participants