Skip to content

Test all examples with Valgrind in CI#453

Merged
lukewilliamboswell merged 2 commits into
mainfrom
ci/issue-192-valgrind-examples
Jul 22, 2026
Merged

Test all examples with Valgrind in CI#453
lukewilliamboswell merged 2 commits into
mainfrom
ci/issue-192-valgrind-examples

Conversation

@lukewilliamboswell

@lukewilliamboswell lukewilliamboswell commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a Valgrind mode to the spec-driven example runner
  • fail on reported memory errors and leaks while preserving each case's expected exit code and output assertions
  • run the existing x64musl matrix entry under Valgrind while keeping arm64 Linux, macOS, and Windows as normal executions
  • suppress the known musl mallocng encoded-metadata check without suppressing callers

Closes #192

Testing

  • ./scripts/test.py --operation build --target x64musl --artifact-dir /tmp/basic-cli-192-artifacts
  • ./scripts/test.py --operation run --target x64musl --artifact-dir /tmp/basic-cli-192-artifacts --valgrind
  • ./scripts/test.py --operation run --target x64musl --artifact-dir /tmp/basic-cli-192-artifacts
  • parsed scripts/test.py and .github/workflows/ci.yml
  • git diff --check

@lukewilliamboswell
lukewilliamboswell marked this pull request as ready for review July 22, 2026 01:54
@lukewilliamboswell
lukewilliamboswell merged commit cdcd0aa into main Jul 22, 2026
26 checks passed
@lukewilliamboswell
lukewilliamboswell deleted the ci/issue-192-valgrind-examples branch July 22, 2026 03:02
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.

Test all examples with valgrind in CI (.github/workflows)

1 participant