Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

context should always populate path #227

Open
LecrisUT opened this issue Mar 9, 2024 · 2 comments
Open

context should always populate path #227

LecrisUT opened this issue Mar 9, 2024 · 2 comments

Comments

@LecrisUT
Copy link
Contributor

LecrisUT commented Mar 9, 2024

This is if we want to use:

adjust:
  when: path ~ r"/plans/(?P<dep>pypi|system)/(?P<test_type>unit|integration)(?:/.*)?"
  context+:
    dependencies: $@{regex_match['dep']}
  filter: "tag:$@{regex_match['test_type']"

Borrowing the regex syntax of #226.

This would help design the n-dim fmf trees

@lukaszachy
Copy link
Collaborator

Could you please clarify it should be really a path (which we have defined only in tmt) but not a name (which is valid in fmf )?

@LecrisUT
Copy link
Contributor Author

This is about context so the name of the variable is still to be decided. The content of the variable should be the name/path of the fmf leaf object, i.e. the output of fmf ls. It might be tricky because some paths are virtual like in tmt discover and it is unclear which value it should expand in that case, but that might be more relevant on the TMT_TEST_NAME case instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants