Skip to content

ci: adopt uv, clang-format and misch - #12

Merged
aajll merged 1 commit into
masterfrom
11-ci-uv-format-misch
Oct 15, 2026
Merged

aajll merged 1 commit into
masterfrom
11-ci-uv-format-misch

Conversation

@aajll

@aajll aajll commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Refs #11

CI installs its Python tools with uv in every job instead of setup-python and pip, and moves to actions/checkout@v6. Two jobs are added: clang-format through scripts/format.sh (clang-format 23.1.1 through uvx), and MISRA (misch) against a recorded baseline. The test, release, warnings-as-errors, cppcheck, Valgrind, coverage and TI C2000 jobs keep their steps; only their tool installation changes.

misch

  • misra.toml analyses src/ and include/, and excludes tests/ and subprojects/, so fxp's findings are not reported here.
  • The library has no build option that changes its code, so one analysis and one baseline cover it.
  • analysis/baseline/misra-baseline.json accepts the 55 findings present at adoption: 15.5 ×34, 8.7 ×15, 10.1 ×5, 17.8 ×1, all in src/filters.c and src/pid_controller.c. They are recorded and not resolved here. The baseline was recorded with MISRA_RULE_TEXTS unset, as CI runs.

Other changes

  • SPDX headers on meson.build, meson_options.txt, src/meson.build, tests/meson.build and the test sources.
  • The sources already matched the pinned clang-format, so no source is reformatted.
  • CONTRIBUTING.md, AGENTS.md and CHANGELOG.md gain the uv, format and misch commands; the docs PR rewrites both guides in the shared structure.

Checks run

  • meson test -C build: passes.
  • scripts/format.sh: 10 files match.
  • misch run --baseline: passes; misch deviations: all justified.
  • ci.yml parses as YAML, and no job references pip or setup-python.

CI installs its Python tools with uv instead of pip, checks formatting with a clang-format release pinned in scripts/format.sh, and runs a MISRA C:2023 analysis with misch, so every primitive is checked the same way. The Meson files and tests gain SPDX headers.

The baseline records the 55 findings present at adoption; CI fails only on new ones.

Refs #11
@aajll
aajll merged commit 5da7b54 into master Oct 15, 2026
10 checks passed
@aajll
aajll deleted the 11-ci-uv-format-misch branch October 15, 2026 08:39
@aajll aajll mentioned this pull request Oct 15, 2026
4 tasks
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.

1 participant