Make the memory check a gate
Some checks failed
libakgl CI Build / cmake_build (push) Failing after 18s
libakgl CI Build / performance (push) Failing after 19s
libakgl CI Build / memory_check (push) Failing after 15s
libakgl CI Build / mutation_test (push) Failing after 16s

It was reporting and shrugging. A definite leak, a read past the end of an
allocation or a branch on uninitialised memory now fails the build on the
push that introduces it, which is the only point at which it is cheap to
fix.

The six findings the job had on its first run were fixed rather than
excused, so the gate closes on a clean tree instead of on a backlog.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-31 15:49:22 -04:00
parent fb58bb01b0
commit 76c6240280
2 changed files with 6 additions and 7 deletions

View File

@@ -132,14 +132,13 @@ jobs:
# suites scale themselves down when they detect valgrind, which turns them
# into the broadest path coverage in the tree at a cost this job can afford.
#
# continue-on-error until TODO.md "Memory checking" items 34-39 are closed.
# The findings are real and they are all in libakgl, so this job is red today
# by telling the truth; gating on it now would only teach everyone to ignore a
# red build. Remove the flag with the commit that closes the last item -- and
# the JSON one (item 34) is four lines, so that should not be a long wait.
# This job gates. A definite leak, a read past the end of an allocation, or a
# branch on uninitialised memory fails the build on the push that introduced
# it -- not on the day somebody gets around to caring. The six findings this
# job had on its first run were fixed to make that possible rather than
# excused into a warning.
memory_check:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Check out repository code
uses: actions/checkout@v4