Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ jobs:
--workdir /note-c/ \
--entrypoint ./scripts/run_unit_tests.sh \
--user root \
--env CTEST_PARALLEL_LEVEL="$(nproc)" \
ghcr.io/blues/note_c_ci:latest --coverage --mem-check

- name: Adjust lcov source file paths for Coveralls
Expand Down Expand Up @@ -189,7 +190,7 @@ jobs:

- name: Run tests with NOTE_LOWMEM defined
run: |
docker run --rm --volume $(pwd):/note-c/ --workdir /note-c/ --entrypoint ./scripts/run_unit_tests.sh ghcr.io/blues/note_c_ci:latest --mem-check --low-mem --single-precision
docker run --rm --volume $(pwd):/note-c/ --workdir /note-c/ --env CTEST_PARALLEL_LEVEL="$(nproc)" --entrypoint ./scripts/run_unit_tests.sh ghcr.io/blues/note_c_ci:latest --mem-check --low-mem --single-precision

run_astyle:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ Unit tests use mocks to validate behavior without hardware. Hardware validation

Use the existing unit test suite for core request, JSON, hook, and transport behavior. Add or update tests when a change affects public APIs, retry/timeout behavior, memory ownership, transport chunking, or edge cases that can regress across adapter repositories.

CI runs the unit tests under valgrind memcheck with ctest in parallel, one test process per runner core (`CTEST_PARALLEL_LEVEL`). Each test case runs in its own process, so tests must not depend on shared files, sockets, environment, or execution order.

Before heavy Docker-based test runs in the OpenClaw workspace, follow the resource policy in the workspace `AGENTS.md` and run the resource check first.

## Update Triggers
Expand Down
Loading