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

Trigger CI failure when valgrind issues are found #1011

Merged
merged 1 commit into from
Nov 25, 2021

Conversation

bjosv
Copy link
Contributor

@bjosv bjosv commented Oct 27, 2021

By default Valgrind will return the exit code from the tested process.
Since our test can return 0 (ALL TESTS PASS) even when a leak was found we need to tell Valgrind to return an error code instead. This will trigger a CI-job failure when issues are found.

See --error-exitcode in man for details.

By default Valgrind will return the exit code from the tested process.
Since our test can return 0 (ALL TESTS PASS) even when a leak was
found we need to tell Valgrind to return an error code.
This will fail the CI job when issues are found.
Copy link
Contributor

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

Good catch! LGTM

@bjosv
Copy link
Contributor Author

bjosv commented Nov 25, 2021

@michael-grunder This might be a good one to merge, the exitcode can be changed if another non-nil value is preferred.

@michael-grunder michael-grunder merged commit b5716ee into redis:master Nov 25, 2021
@zuiderkwast zuiderkwast deleted the valgrind-exitcode branch November 25, 2021 09:29
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.

3 participants