Skip to content
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

Use xargs over find -exec to ensure exit code is returned properly #208

Merged
merged 1 commit into from
Apr 7, 2024

Conversation

ChrisLovering
Copy link
Member

@ChrisLovering ChrisLovering commented Apr 3, 2024

Running this script in it's previous form (via docker compose run) always returned an exit code of 0. This is due to find always returning a 0 exit code, unless an error occurred while traversing the directories.

This caused CI to always report a success when isntalling deps, even when pip failed.

@coveralls
Copy link

coveralls commented Apr 4, 2024

Coverage Status

coverage: 90.969%. remained the same
when pulling 324f74f on update-eval-deps-script
into 9cdcd28 on main.

@ChrisLovering
Copy link
Member Author

forcepush was to reword the commit description to be clearer.

Copy link
Member

@jchristgit jchristgit left a comment

Choose a reason for hiding this comment

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

Great!

Copy link
Member

@MarkKoz MarkKoz left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

Running this script in it's previous form (via `docker compose run`) always returned an exit code of 0.
This is due to `find` always returning a 0 exit code, unless an error occurred while traversing the directories.
@MarkKoz MarkKoz enabled auto-merge (rebase) April 7, 2024 07:52
@MarkKoz MarkKoz merged commit 316f39e into main Apr 7, 2024
6 checks passed
@MarkKoz MarkKoz deleted the update-eval-deps-script branch April 7, 2024 07:53
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.

4 participants