- Always preserve existing indentation style in each file, and validate it with
make clang-format. - Do not add inline comments explaining the change they belong to.
- Each logical change must be in its own separate commit.
- Fixes for existing commits in the current branch must use fixup commits:
git commit --fixup=<original-commit-hash>
- Keep the original author (do not change git config)
- Add agent signature at the end of commit messages.
- New source or test files must be added to
Makefile.am - After adding files, verify the build with
make distcheck
- Python tests go in
tests/test_*.py, register inall_testsdict, and add toPYTHON_TESTSin rootMakefile.am - C unit tests go in
tests/tests_libcrun_*.c, add toUNIT_TESTSin rootMakefile.amwith build rules - Test functions should return
0(pass),-1(fail), or77(skip)
- C code error handling convention is described in design-docs/error_handling.md