Skip to content

Add valgrind to CI #324

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

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Add valgrind to CI #324

merged 1 commit into from
Mar 20, 2024

Conversation

saghul
Copy link
Contributor

@saghul saghul commented Mar 18, 2024

Fixes: #71

@saghul
Copy link
Contributor Author

saghul commented Mar 18, 2024

1h 32m 😅

Do we think that is acceptable? @bnoordhuis @chqrlie

@chqrlie
Copy link
Collaborator

chqrlie commented Mar 18, 2024

1h 32m 😅

Do we think that is acceptable? @bnoordhuis @chqrlie

I would say no, this makes the CI too long for every patch request. Can we make this test optional and trigger it manually?

@saghul
Copy link
Contributor Author

saghul commented Mar 18, 2024

Can we make this test optional and trigger it manually?

Yes, it's possible to make a dedicated workflow that requires manual dispatch.

@bnoordhuis
Copy link
Contributor

Or, alternatively, run it post-merge when things get committed to the master branch. That way it doesn't hold up development.

There are ways to speed up valgrind a little, like e.g. setting --num-callers=5, but it probably won't make a huge difference.

And, on the flip side, --track-origins=yes would definitely be useful (tells you not just that you have an uninitialized value but also where it comes from) but makes valgrind at least twice as slow.

@saghul
Copy link
Contributor Author

saghul commented Mar 19, 2024

Or, alternatively, run it post-merge when things get committed to the master branch. That way it doesn't hold up development.

I like that. I'll make the change.

And, on the flip side, --track-origins=yes would definitely be useful (tells you not just that you have an uninitialized value but also where it comes from) but makes valgrind at least twice as slow.

Let's have it!

@saghul
Copy link
Contributor Author

saghul commented Mar 19, 2024

Updated as per @bnoordhuis 's suggestions. I also enabled manual dispatch of the workflow, in case we want to run it without pushing to master, for whatever reason.

@saghul saghul merged commit 3781c2a into master Mar 20, 2024
@saghul saghul deleted the ci-valgrind branch March 20, 2024 19:03
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.

Run test suite under valgrind
3 participants