-
Notifications
You must be signed in to change notification settings - Fork 20
[ignore] Fix Ansible Galaxy check failing on ignore warning files. (DCNE-502) #164
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
Conversation
7e9a039
to
c5e84da
Compare
This should help progress the CI in #143 |
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.
LGTM
.github/workflows/ansible-test.yml
Outdated
print(line) | ||
if 'Ignore files skip ansible-test sanity tests, found ignore' not in line: | ||
err_count += 1 | ||
exit(err_count) |
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.
Is there a chance where we could encounter err_count to be 256?
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.
Yes, potentially. I will change it to exit with 1 instead. We only need a non 0 exit code for the step to fail.
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.
LGTM
@samiib Thanks for working on this! LGTM |
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.
LGTM!
Handle ignore file warnings so it won't fail the CI.
Tested run: https://github.com/CiscoDevNet/ansible-nd/actions/runs/16722131242/job/47328767670?pr=164#step:10:20