Adding Valgrind workflow for GitHub Actions#146
Conversation
3b2e88d to
7398f8a
Compare
|
One of the steps in the GitHub Workflow will post comments on the PR if it contains memory leaks. But it currently does not have permissions to do so. You'll need to grant those permissions to the repo. AI says:
|
|
Hey @sjoblomj - sorry for the late reply. I haven't had time to look at this PR yet. I would like to set up Valgrind locally and do some testing before I review - hope that is OK. |
7398f8a to
fbb26de
Compare
fbb26de to
8a15946
Compare
|
@thomaslaurenson: I gave this PR some more attention, and I think it is leaner and cleaner than before. A comment will be automatically created in the PR when there are memory leaks. As I described in an earlier comment, you'd need to set up permissions for that to happen. As it stands now, the checks are failing because of lack of permissions, and because there are memory leaks in the code base. PR #173 fixes the latter. |
This PR adds support for Valgrind, a memory leak detector.
The PR also adds tests for the
aboutandversionsubcommands. While those tests are pretty useless in themselves, they do complete the test suite for all subcommands, which also means Valgrind gets to check all subcommands.The PR adds
aboutandversionsubcommands.Convenience script
This will setup Valgrind in Docker, run the whole test suite and check for memory leaks in the code paths that the test suite covers:
Running a specific command
One can also invoke Valgrind for a specific command (in this case
mpqcli list wow-patch.mpq):(I created this PR using AI - it all seems sensible to me, but I am not an expert at either Valgrind nor GitHub Actions Workflows)