Repository navigation
ci: adopt uv, clang-format and misch - #12
Merged
Merged
Conversation
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
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #11
CI installs its Python tools with uv in every job instead of
setup-pythonandpip, and moves toactions/checkout@v6. Two jobs are added:clang-formatthroughscripts/format.sh(clang-format 23.1.1 throughuvx), andMISRA (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.tomlanalysessrc/andinclude/, and excludestests/andsubprojects/, so fxp's findings are not reported here.analysis/baseline/misra-baseline.jsonaccepts the 55 findings present at adoption: 15.5 ×34, 8.7 ×15, 10.1 ×5, 17.8 ×1, all insrc/filters.candsrc/pid_controller.c. They are recorded and not resolved here. The baseline was recorded withMISRA_RULE_TEXTSunset, as CI runs.Other changes
meson.build,meson_options.txt,src/meson.build,tests/meson.buildand the test sources.CONTRIBUTING.md,AGENTS.mdandCHANGELOG.mdgain 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.ymlparses as YAML, and no job referencespiporsetup-python.