-
Notifications
You must be signed in to change notification settings - Fork 28
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
Support for .dot
directories for storing plans
#183
Comments
.dot directories seem to be ignored, as well as files: https://github.com/teemtee/fmf/blob/main/fmf/base.py#L479 Looks to be intentional, I am not sure what the reasoning is. |
Introduced in e38e78b (still no reasoning message :/ ) |
Commit e38e78b is one of the first commits of the
In addition to slowdown, traversing hidden folders could possibly cause problems only if there are files with the
If we choose the latter way, I'd suggest to use hidden: true @jscotka, please add your thoughts and concerns mentioned in the email. Thanks. |
If you allow traversing .dot directories, you'll need some way to exclude certain directories from being traversed e.g. |
If we need more control over what is being explored, the config could look like this: explore:
hidden: true
include:
- .plans
exclude:
- .git
- .cache This would give us some nice flexibility. |
Hi, So as part of this issue we should consider how to solve symlinks,
What leads us back to deeper configuration of TMT, what were discussed long time ago. it is exactly very good example of config how to change behaviour of TMT, and then you can also somehow e.g.
And another idea is, that if someone needs hidden plans, tests or whatever, so why we should not allow to use metadata inside |
Symlink loops should be already covered by 0f60389.
I'm not sure that
I believe the |
Nice, forgot about that, it is already solved
Right, this is big question, as you said, it is FMF specific onfiguration, and my examples were about TMT config. This confused me. .config:
explore:
hidden: true
include:
- .plans
exclude:
- .git
- .cache
tmt:
command_line_defaults:
- some optiobn
yep, maybe, just quick solution, how to fix and allow to not add more hidden dirs and magic. |
+1 for support dot folders |
I'm not sure about this. I would agree that This would also decouple such that |
.dot
directories for storing plans
In strimzi project we use tmt plans and tests for to running our maven/java tests on testing farm using packit. We would like to have all plans/tests and exec script stored in .tmt or .fmf folder to not mess maven repository with tmt folder in packages. It is a usual convention of storing CI stuff in dot folders (.github, .gitlab). Since tmt is for our project just wrapper for running maven tests in testing farm we really would like to have hidden in dot folder. https://github.com/strimzi/strimzi-kafka-operator current tmt related files location -> https://github.com/strimzi/strimzi-kafka-operator/tree/main/systemtest/tmt |
@kornys Things have evolved quite a bit since this issue was first created, and in principle all of the tools can now specify a Here is one of my example projects spglib, where I am using 2 trees in |
@LecrisUT nice solution, thanks for sharing. Anyway in my case we really need full tree of repository for build all packages and container images before run the testscript. |
@kornys, what about starting with implementing a minimal solution like this? explore:
include:
- .plans This config file providing additional directories where the metadata should be explored would be stored under |
@psss that would be perfect 🙂 |
Seems in some cases this would be useful to users.
I wonder if there is a technical limitation why this does not work.
The text was updated successfully, but these errors were encountered: