Repository navigation
ci: adopt uv, clang-format, misch baselines and a C2000 build - #5
Merged
Merged
Conversation
CI installs its Python tools with uv, checks formatting with a pinned clang-format, runs misch for each atomic backend against recorded baselines, and compiles the library with two TI C2000 CGT releases under COFF and EABI. The build uses static_library, since no consumer linked the shared library, and the Meson files and tests gain SPDX headers. The baselines accept the 42, 36 and 35 existing findings of the __atomic, C11 and uniprocessor backends as they stand; resolving them is separate work. Refs #4
6 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 #4
Summary
astral-sh/setup-uvanduv tool install; nopiporsetup-pythonremains.scripts/format.shpins clang-format 23.1.1 throughuvx; aclang-formatjob runs it. The sources already match, so no code is reformatted.misra.tomlandanalysis/(frommisch init --scaffold), with one analysis per atomic backend: the base configuration forcesSEQLOCK_USE_GNU_ATOMICS, and thec11andno_atomicsprofiles force the other two rungs of the ladder. Each has its own baseline. Themisrajob runs all three and prints the deviation record.-Dwerror=true, as inrampg.static_libraryreplacesboth_libraries. The dependency andseqlock.pcalready linked the static archive, so the shared library was built and installed but unused.meson.build,meson_options.txt,tests/meson.buildand every test source.Scope decisions
__atomic), 36 (C11) and 35 (uniprocessor). The largest groups are 12.1 (13), 17.3 (12, the__atomicbuiltins that cppcheck does not declare), 15.5 (6), 2.5 (6) and 8.7 (4). No project-wide deviation is adopted and nothing is resolved here.seqlock.cstill describes its deviation record against MISRA C:2012; aligning that record with the misch findings belongs with resolving them.SEQLOCK_CPU_RELAXasm, and the backend split covers the differences that change findings.Evidence
__STDC_NO_ATOMICS__and not__GNUC__, so the ladder selects the uniprocessor backend on the target. The exact CI cross build (meson setup --cross-file ... -Dwerror=true) passes locally for both releases and both ABIs.-fprofile-update=atomic: 100% lines (47/47), 100% branches (53/53).misch run --baselinepasses for all three backends with cppcheck 2.21.1. Falsified: an added function with agotomakes the base run fail (exit 1); reverted.meson installinstallslibseqlock.a, the three headers andseqlock.pc, and no shared object. A consumer built withpkg-config --cflags --libs seqlockcompiles, links and round-trips a value.scripts/format.sh: 12 files match clang-format 23.1.1.