-
Notifications
You must be signed in to change notification settings - Fork 8
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
Enable running without a config file #30
Comments
Indeed - ideally I would prefer not having a config file at all, but I don't really see a viable way of avoiding it. I would propose the following approach for aiida plugins using
For CI, I don't quite get the issue. I think it's fine to assume that you regenerate test data locally, and CI tests will be using the test data already present. |
Yeah, CI was just my use case for "being able to run without config file". |
Hmm, for the mock codes maybe when trying to run a code that has no entry it just populates the config file with |
I guess this question of the config file location applies just as well to config loading (#12 ).
I agree that overwriting an existing config file automatically is not a good idea. There was still some more uncertainty hidden in the "somehow" of my comment - how is the creation of the template going to work? |
It's not quite the same though, because with an existing config you can upwards-search from CWD, making sure to always hit it as long as you're in the repo (if you put it at the root level). But if we make
Yeah, I agree that this is the way to go — since
Yes, I think this would be the way to go - obviously it will only create the it for codes that are actually used in the test run, but there doesn't appear to be a way around that. A point to consider is that the configuration generation should work for the different parts of |
Sounds good! All the rest seems more or less agreed. Now we just need to implement it ;-) |
Currently, the
.aiida-testing-config.yml
config file is committed to the repository. In general (and for plugins), this kind of defeats the purpose of the config file: It contains the parts that are different on different systems, and can not be hardcoded in the tests.A partial solution is to just recommend not committing
.aiida-testing-config.yml
, however it would be good to make all fixtures run (if all caches are present) also without a config file, for the purposes of CI. Having to create a special "CI config file" instead would be quite cumbersome.The text was updated successfully, but these errors were encountered: