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
Execution speed improvement for functional tests #1899
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to our future selves (for another PR): let's make a molecule.yml
in test/functional/scenarios
which holds this default configuration (config_options: ...
) and change molecule
invocations to include --base-config ...
so we do not have to repeat ourselves like this.
Looks great!
As an idea on how to do this, again, doesn't have to be this PR - we could add a 'default options' fixture somewhere around https://github.com/ansible/molecule/blob/master/test/functional/conftest.py#L46 and pass it into every test with the |
9c42abb
to
bdf6c39
Compare
Ah, I did introduce a bug in https://github.com/ansible/molecule/pull/1871/files#diff-8a0941ded1a1bf5411a8a1e5562a82d7R6 which is fixed here. We're skipping all those tests, so I missed it 😅 |
3603f9d
to
6a232fb
Compare
|
6a232fb
to
5e7baac
Compare
3f1473d
to
8ffeb0f
Compare
* add `callback_whitelist: profile_roles,profile_tasks,timer`, * add `gather_facts: false` and don't use variables from setup, * replace `command` task with `debug` task on host_group_vars scenario. Signed-off-by: Fabrice Flore-Thebault <themr0c@users.noreply.github.com>
8ffeb0f
to
04ccc78
Compare
\o/ all checks passed, except the code style! ready to merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this. Really useful!
Some rework on tests to enable performance and performance measurements.
Signed-off-by: Fabrice Flore-Thebault themr0c@users.noreply.github.com
PR Type