-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add an integration test with ansible-lint #250
Add an integration test with ansible-lint #250
Conversation
@shatakshiiii Hi, I've been wrangling with the assert in this test a bit more. I think we want to check that stdout for lint does not contain failures such as this one:
Basically it needs to be something like I'm struggling to see what is in stdout when I run the test with tox. Is there an easy way to debug these tests? I feel like I'm doing a lot of guesswork and taking shots in the dark. Thanks a mill for the help. |
Also, why does it seem like vscode settings from this repo automatically format things in a way that is inconsistent with what I see in the auto fix commits? 6878fea That's honestly driving me nuts. Every time I save in vscode formatting gets applied that conflicts with the formatting that gets applied with the pre-commit hooks. I don't think it's my local settings because it doesn't seem to happen with other repos. |
6878fea
to
b25730a
Compare
OK, I made a bunch more changes and figured out how to see what's going on with stdout and stderr. I know we'll probably want to remove some of the bits from the test before we merge but I thought I'd leave everything in so people can see what I'm doing. Looks like this issue is coming from lint:
I've been banging my head against this for the past while. Looking at this:
That looks like I would expect it to. In fact if I try to reproduce this with my user installs of ansible-creator and ansible-lint I can't reproduce the error. I can scaffold a collection under Why is the cli run function trying to create a directory under |
1c6ea54
to
0ac25aa
Compare
So, the Playing around a bit with test_lint.py, I think it's |
Thanks for taking a look @NilashishC I can send a separate PR to adjust things in |
695e8ac
to
7a37300
Compare
651a59a
to
e9da19e
Compare
Can you uses this for the ANSI function? It might get rid of the sonarcloud thing too. https://github.com/ansible/ansible-navigator/blob/88a240be6eeada2f579059210059fc3ecafc3037/src/ansible_navigator/utils/functions.py#L368 |
@cidrblock Thanks, man. That's super helpful. I wasn't feeling great about that ANSI function in my commit. Hopefully I'll be able to take another look at this soon and keep hacking. Cheers. |
3a74e30
to
309ef44
Compare
I decided to add the |
22cb454
to
7336089
Compare
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
This reverts commit b1046a7.
7336089
to
1af83bb
Compare
a6609c7
to
a473fe7
Compare
Quality Gate passedIssues Measures |
Resolves #170 by adding an integration test that checks compatibility with ansible-lint.