Skip to content

Conversation

samiib
Copy link
Collaborator

@samiib samiib commented Aug 4, 2025

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

@samiib samiib force-pushed the ansible-galaxy-log-check branch from 7e9a039 to c5e84da Compare August 4, 2025 11:48
@samiib samiib marked this pull request as ready for review August 4, 2025 11:50
@samiib samiib changed the title [ignore] Fix Ansible Galaxy check failing on ignore warning files. [ignore] Fix Ansible Galaxy check failing on ignore warning files. (DCNE-502) Aug 4, 2025
@samiib
Copy link
Collaborator Author

samiib commented Aug 4, 2025

This should help progress the CI in #143

@samiib samiib requested a review from mikewiebe August 4, 2025 11:53
Copy link
Collaborator

@anvitha-jain anvitha-jain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

print(line)
if 'Ignore files skip ansible-test sanity tests, found ignore' not in line:
err_count += 1
exit(err_count)
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@samiib samiib requested a review from shrsr August 4, 2025 23:13
Copy link
Collaborator

@shrsr shrsr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mikewiebe
Copy link
Collaborator

@samiib Thanks for working on this! LGTM

@samiib samiib self-assigned this Aug 5, 2025
Copy link
Collaborator

@sajagana sajagana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lhercot lhercot merged commit e4676e0 into CiscoDevNet:master Aug 12, 2025
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants