- coverage: Read only the current build's coverage.json files in the variant reports (SPLE-2855)
(
69a54f8)
The glob read every coverage.json below the build folder, including files of moved or removed component folders written by an older gcovr. An incremental build after a gcovr update then failed with a format version error. The variant reports now take the files of the components in the current build.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
- Name parameterized test results by a printed description (SPLE-2814)
(
bb9f5b7)
The docs promised index names (Suite/Test/0), but CTest appends the printed parameter value. A struct without a printer prints as raw bytes that hold memory addresses, so its test names change on every run. Recommend an operator<< that prints a unique description, as in the SPLED flight_controller example, and fix the example, which did not compile.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
- coverage: Show HTML coverage reports as a browsable file tree
(
45a202c)
gcovr writes every HTML coverage report with --html-nested and the boost.blue theme, so the sidebar of each report shows the files as a folder tree. The boost theme came with gcovr 8.7, so the gcovr floor moves from 8.6 to 8.7.
The integration tests check the file tree in all five HTML coverage reports: per component, per variant, in the component report and in the variant report.
BREAKING CHANGE: gcovr 8.7 or later is required. GCOVR_ADDITIONAL_OPTIONS must not contain --html-details, --html-single-page or --html-static-report: gcovr rejects them together with --html-nested and the boost theme, and the coverage report build fails. Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
- coverage: Gcovr 8.7 or later is required. GCOVR_ADDITIONAL_OPTIONS must not contain --html-details, --html-single-page or --html-static-report: gcovr rejects them together with --html-nested and the boost theme, and the coverage report build fails. Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
- Describe the ubCode selection in ADR 0005 and the architecture document
(
a880c58)
Co-Authored-By: Claude Sonnet 5.5 noreply@anthropic.com
- Record ADR 0005, configure writes the selected variant for ubCode
(
6c88c6a)
ubCode and ubc read an SPL's documentation without running Sphinx, so they see neither the variant's document set nor its feature values. The ADR decides that CMake configure writes both: a variant data file for every Sphinx run, and, when the SPL asks for it, one generated ubCode configuration at the project root that selects the last configured test-kit build. It amends ADR 0001 for an SPL that drops Jinja.
Status: proposed.
Refs: SPLE-2781
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
-
Configure writes a variant data file for every Sphinx run (
c3cceca) -
Configure writes the ubCode selection for the configured build (
89060b1) -
Kconfig writes the complete feature list for the variant data (
71ccd60)
- Keep system-out of failed tests in the merged variant junit xml
(
051ded9)
CTest writes the test output only to system-out, so a failed test showed nothing.
-
Accept any sequence of artifacts in archiver register (
0ecfe5d) -
Reject archive path overrides that leave the archive, add warnings for overridden files (
c37be2c)
- Rename file and directories in artifacts archiver
(
18a9611)
-
Rename archive_name to archive_path_override in archiver (
ca7da1d) -
Use Path for archive path override in archiver (
ec6d9b5)
- Add archiver test for renaming a folder via tuple override
(
726647a)
- report: Link results by default only from test specs
(
5637a6a)
The default for results in ubproject.toml applied to every need, test cases included.
links_from_match splits names on commas, so a test case whose name has a comma linked the other
cases that share a part of it: SPLED's parametrized auto_off and flight_controller cases linked
their siblings. A predicate now limits the default to test needs.
Refs SPLE-2781.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
- docs: Run Sphinx through SPL_PYTHON, not the first sphinx-build in PATH
(
aab301f)
The documentation targets called a bare sphinx-build, found in PATH at build time, while kconfig,
hammocking and gcov_maid run through SPL_PYTHON, found at configure time. When the build
environment puts another virtualenv first in PATH, the two disagree. In SPLED's dev container a
worktree on spl-core 9.1 built its reports with the main checkout's sphinx-needs 8.5, which knows
no links_from_filter, so every pattern spec lost its results links.
Refs: SPLE-2781
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
- Build reports with sphinx-needs 9 and sphinx-test-reports 3
(
2d7ec7b)
ubCode 0.37 and 0.38 read the test-report directives, needextend and needimport themselves and expect the configuration sphinx-needs 9 reads: variants in [variants] and the built-in dynamic functions such as links_from_match (9.1). spl-core capped sphinx-needs below 9 and sphinx-test-reports below 2, so no SPL could use either.
- sphinx-needs >=9.1,<10 and sphinx-test-reports >=3.0.1,<4. Both need Python 3.11, so spl-core
drops Python 3.10, which reached its end of life in October 2026. - SplSphinx loads the extension
as
sphinx_test_reports; the old namesphinxcontrib.test_reportswarns and stops working in 4.0. - The shared ubproject.toml declares its link types under [needs.links] andintegrityunder [needs.fields], which sphinx-needs 9 and ubCode read without a deprecation warning. A build writes the same needs as with the old keys. - sphinx-test-reports 2.0 spells a failed resultfailedinstead offailure, so the kickstart report template listed no failed cases and counted none. It filters onfailednow.
A new unit test builds a report with the kickstart project's report configuration and checks the results links (exact and pattern titles) and the failed-cases table.
BREAKING CHANGE: spl-core needs Python >=3.11, sphinx-needs >=9.1 and sphinx-test-reports >=3.0.1. An SPL that copied the kickstart report template filters on 'failure' and must filter on 'failed'; an SPL that removes "sphinxcontrib.test_reports" from SplSphinx.default_extensions must remove "sphinx_test_reports" instead.
Refs SPLE-2781.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
- Link test results in ubproject.toml so that ubCode links them too
(
a36ab1a)
A test spec got its results links from the needs function sple_tr_link, which conf.py registers as
the default of results. ubCode runs no project Python, so it showed no results at all, and
sphinx-needs 9 warns about needs_global_options.
The shared ubproject.toml now gives results the default [[links_from_match('case', 'title')]], a
sphinx-needs built-in that ubCode evaluates too: a spec links the test cases named like its title.
A spec for several cases, such as a parametrized test, writes its own results with
links_from_filter and a pattern; the component guide shows how.
- The kickstart conf.py no longer sets needs_functions and needs_global_options. - SplSphinx.default_needs_global_options is empty, so a conf.py that still assigns it builds without warnings and gets the new default. sple_tr_link stays, for specs that call it themselves (Sphinx only). - The test data's specs drop their explicit sple_tr_link calls.
BREAKING CHANGE: a test spec whose title is a pattern ending in * no longer links its test cases
by default. Write :results: [[links_from_filter("type == 'testcase' and search('^<pattern>', case)")]] on it, or call sple_tr_link on it and register SplSphinx.default_needs_functions
(Sphinx only).
Refs SPLE-2781.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
- docs: Let each Sphinx run take options of its own
(
1af454e)
SPL_SPHINX_OPTIONS adds options to the variant docs and reports builds and SPL_SPHINX_COMPONENT_OPTIONS to the per-component ones; @SHAPE@ and @COMPONENT_PATH@ in them are filled in per run, so every run can name a file of its own, such as a selection file that names its build directory. Two builds' reports can then be built side by side.
The four Sphinx invocations now share one function, so the variant and per-component targets cannot drift apart. With neither variable set the command is unchanged; the CMake unit test compares it element by element.
Taken from #364 (SPLE-2781).
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
- docs: Make clanguru's Jinja raw tags optional
(
c06a36e)
The source listings clanguru generates wrap their code in Jinja {% raw %} / {% endraw %} lines,
because the kickstart template renders every document through a Jinja source-read hook and would
otherwise trip over braces in C code. A project without that hook had no way to turn the markers
off, so they rendered as text on every listing page and had to be stripped again in its conf.py.
ubCode and ubc render no Jinja, so every project they read is such a project.
SPL_SOURCE_DOCS_JINJA_RAW_TAGS controls the flag. It defaults to ON, so existing projects build exactly as before.
Taken from #364 (SPLE-2781).
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
- kconfig: List every boolean symbol the feature model declares
(
1cb240a)
KConfig.config only holds the symbols KConfig would write out, so a boolean without a prompt that evaluates to n is absent from it and from every file generated from it. A consumer that needs the complete feature vector, for example a documentation build whose conditions name such a symbol, had to reach into the private kconfiglib instance to find it.
declared_boolean_symbols() returns the sorted names of every boolean the model defines, so that consumer can default each of them to false before applying the configured values.
Taken from #364 (SPLE-2781).
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
- A test spec whose title is a pattern ending in
*no longer links its test cases by default. Write:results: [[links_from_filter("type == 'testcase' and search('^<pattern>', case)")]]on it, or call sple_tr_link on it and register SplSphinx.default_needs_functions (Sphinx only).
build.ps1 guessed the test build kit only for targets that contain unittests, reports or source_docs. The component report, the docs and the coverage targets also exist only in the test build kit, so building them without -buildKit test failed with "ninja: error: unknown target".
Get-BuildKit now also selects test for report, docs and coverage, as a whole name or as _. A given -buildKit wins over the guess, so a production component whose name ends in one of these words can still be built in prod. Assert-BuildTarget asks ninja for the target after the configure step. When the target does not exist, the build stops with a message, and in prod the message suggests -buildKit test.
Fixes #371
Co-Authored-By: Claude Opus 5.5 (1M context) noreply@anthropic.com
- report: Component report does not include the test and implementation traces
(
27d8ca7)
Fixes #367
- report: Component report includes obsolete old component files
(
8583264)
Fixes #368
- Add NO_FOREIGN_SOURCE_DOCS to spl_create_component
(
d4e96df)
A component generates its clanguru source docs from all of its sources. A component that compiles sources of other components, for example an integration test, therefore documents those files a second time. The report then contains their sphinx-needs items twice ("A need with ID ... already exists"), or contains them in a variant that does not have the component they belong to, where their links claim requirements the variant does not fulfill.
With NO_FOREIGN_SOURCE_DOCS, the component generates source docs only for the sources inside its own directory. The option is off by default, so existing projects are not affected: a component may compile its own code from outside its directory, e.g. an exported module or generated code per variant, and keeps documenting it.
_spl_filter_own_sources compares whole path segments with cmake_path IS_PREFIX, so a sibling directory that shares the component name as a prefix, or a file on another drive, is not treated as inside the component.
Co-Authored-By: Claude Opus 5.5 (1M context) noreply@anthropic.com
Nobody configured loguru in a pytest process, so its built-in default format applied and every line a build streams carried the module, function and line number of the logging call. A CMake build writes thousands of them.
A pytest11 entry point loads the plugin because spl-core is installed, so consumers need no edit of their own. It defines no format: it calls setup_logger() from py_app_dev, the same function the please CLI uses.
Two ini options steer it from the consumer's existing pytest.ini. spl_log_code_location = true puts the prefix back for debugging and keeps the configured sink, so the output stays on stdout. spl_setup_logger = false steps aside entirely, for a project that configures loguru itself.
The guard test pins the rule this records -- an application configures logging, a library only logs -- across src/spl_core and the repository's own pypeline steps, which pypeline already configures.
Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com
- report_generation: Enable
dollarmathMyST extension (9f93eed)
Add the dollarmath extension to enable $...$ and $$...$$ LaTeX math delimiter recognition in
Markdown documents processed by Sphinx with MyST parser.
- Add build properties to artifacts-archiver and extract tag_name from release branches/tags
(
16caa73)
Adds branch, tag_name, and further metadata to the generated rt_upload.json properties. For release branches/tags using the variant#tag syntax, the tag is extracted into tag_name while the original branch/tag name (including the literal '#') is preserved unchanged for the deploy path and branch property.
Includes a fix for the tag name extraction in build properties.
- gcov_maid: Recognize Unix .o objects when pruning orphaned gcno
(
7dde58d)
wipe_gcno_files only checked for a sibling .obj object file. CMake names compiled objects .obj on Windows but .o on Unix/Linux, so on Linux every .gcno was treated as orphaned and deleted before gcovr ran, causing 'cannot open notes file' and 'could not infer a working directory' coverage failures. Now accept both .obj and .o.
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
- test_utils: Clarify additional_args is raw passthrough to inner build tool
(
5a5bbc5)
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
-
docs: Add release integration testing process with SPLED and update decision records (
bbc7ed1) -
test_utils: Make SplBuild.execute platform-aware (
b601357)
SplBuild now drives build.bat on Windows and build.sh on Linux/macOS, so consumer variant test suites run unchanged on every platform instead of being hard-wired to the Windows batch wrapper.
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
- ci: Add Codecov coverage upload and hard merge gate
(
4521ed7)
Generate coverage.xml during pytest (--cov=spl_core) and upload it plus the JUnit report to Codecov from the Windows test job, mirroring the sple-skills setup. Add codecov.yml enforcing coverage as a hard gate (informational: false): patch requires 100% coverage of changed lines, project forbids the overall coverage from dropping below the base commit. Map src/spl_core to the venv site-packages copy so Codecov attributes coverage to the source tree.
Code covered only by the subprocess-based integration tests is not measured and must be unit-tested or marked pragma: no cover.
- Resolve archive path to absolute location
(
91397e0)
Reverse ADR 0001 to Option C (per-component wrapper pages generated in common.cmake) and explain why they are required under the PyData Sphinx Theme. Recreate report_generation.md and wire the internals sub-pages into a toctree.
Use a 4-backtick outer fence around the wrapper-page example in report_generation.md so the inner
{toctree} block no longer terminates it early and the example renders correctly.
Revert the unrelated poetry.lock change (dropped lxml win_arm64 wheels) back to develop to keep platform wheel coverage intact.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
The PyData Sphinx Theme only renders actual documents (toctree targets) as sidebar nodes, not Markdown headings, so the flat components page collapsed into a single "Components" node.
Generate one wrapper page per component with documentation at CMake configure time (title + toctree) and link them from doc/components/index.md, so each component becomes its own collapsible sidebar node. Nest the clanguru source docs under the component via a generated __source_docs/index and keep them in a reports-only include list so they are no longer documents outside any toctree.
Source doc names are derived from the component-relative path so files sharing a basename in different sub-directories do not collide. Stale wrapper pages from previous configurations are removed before regeneration, and the wrapper title falls back to the component name only when long_name is empty.
Assert wrapper pages are generated only for components with docs and that each wrapper nests the component doc, report pages and the source docs index. Add a CMake unit test for _spl_source_doc_name covering the same-basename collision case.
- Replace py7zr with native 7z for artifact archiving and update tests
(
261e571)
-
Use venv Python across CMake build steps and scope component traces (298) (
2cf4881) -
Route KConfig, coverage, gcov_maid and hammocking through SPL_PYTHON - Scope component needtable to the component via docname filter - Harden kickstart build.ps1 bootstrap loading
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
-
Add internals architecture docs and finalize review changes (298) (
df892ab) -
add internal architecture/decisions docs (ADRs, empty architecture/requirements folders) - simplify wait-for-key CI detection in build.ps1 template - update locked dependencies (poetry.lock)
-
Upgrade to PyData Sphinx Theme 0.18 and centralize Sphinx settings (298) (
6940387) -
Add pydata-sphinx-theme 0.18; bump Sphinx, sphinx-needs, pypeline-semantic-release - Centralize theme, extensions, MyST and url_schemes in spl_html_settings - Add spl_theme_extension for CSS/logo injection and sphinx-needs dark-mode CSS - Align spl-core's own docs and kickstart templates with the shared theme
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
-
Add tests for theme migration and report generation (298) (
069cfe2) -
Unit tests for spl_html_settings, spl_sphinx, kickstart templates and theme extension CSS helpers
- Integration checks for the PyData report build (coverage link, needs traceability)
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
-
Generate and load env_setup during install so tools are on PATH (
8ce92d0) -
Use release bot app token for protected branch push (
a25f45a)
- Replace doxysphinx/doxygen with clanguru
(
1cf7e3f)
- deps: Bump hammocking from 1.0.1 to 1.0.2
(
f1719fa)
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
- Rebuild coverage.json when gcovr is updated
(
80c9a9f)
Use find_program to resolve gcovr once per test suite and add the gcovr executable as a DEPENDS entry to the coverage.json custom command. This ensures CMake invalidates stale coverage.json files after a gcovr upgrade, preventing 'Wrong format version' errors in incremental builds.
All gcovr COMMAND invocations now use the resolved ${GCOVR_EXE} path for consistency.
Adds a regression test that touches the gcovr binary and verifies coverage.json is regenerated on the next incremental build.
Also improves documentation: - Add Code Coverage section to features/index.md - Add coverage and _coverage targets to reference/targets.md - Document GCOVR_ADDITIONAL_OPTIONS in reference/variables.md - Fix typo 'Sphnix' and extend build target diagram in internals/index.md
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
- Update semantic release
(
a39d24d)
-
Add HAMMOCKING_CONFIG_FILE and --project-root-dir support (
11328cd) -
Update hammocking dependency to >=0.11 which introduces --config and --project-root-dir CLI options - Always pass --project-root-dir to hammocking so that ignore_symbols_outside_project (default true in >=0.11) filters symbols correctly relative to the SPL project root - Add HAMMOCKING_CONFIG_FILE CMake variable to optionally forward an ini config file via --config for per-project mock configuration - Add integration tests for both new hammocking arguments - Document new CMake variables in getting_started guide
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
- Add changes according to review
(
bfd6e2d)
- Update poetry lock
(
93ceffb)
- Add extra arguments for doxysphinx build
(
bd409c1)
- Implement variant-level merged test results generation
(
64df00b)
- Update VSCode extensions recommendations
(
c8e06c0)
- Add artifacts.json metadata support to ArtifactsArchiver
(
4b1c3a9)
- Add retention period property
(
13f7699)
- Bugfix in collect_pr_changes
(
f453b50)
- Add reports paths in docs
(
5eaff6b)
- Increase GTest discovery timeout
(
f05bbca)
- Cmake variant configuration
(
7720476)
- Support archiving in quality checks
(
e84c4a7)
- Add component to multiple executables
(
fbaeae1)
- Add support for compiler specific includes for hammocking
(
4db6356)
- Add a step to collect changes from a pr
(
dc5767c)
- Replace CommandLineExecutor usage with py-app-dev's SubprocessExecutor
(
cfd4754)
- Handle invalid characters in command line output
(
354eb2f)
- Add archive artifacts collection
(
3654068)
- Release job
(
9792b6f)
- Splbuild provides interfaces for build artifacts
(
cc2dcdf)
- Enhance SplBuild class to support clean quality gate checks
(
47a696e)
-
Bootstrap fails due to pip-system-certs incompatible version (
296160f) -
Checkout target branch in pull request instead of pr branch (
22c757c) -
Components without tests are automatically build (
c538e8f)
-
Add support for header only components (
79a75bb) -
Support docs for components with index.md (
7e2f35f)
- Update to latest hammocking 0.8.0
(
46ec4f8)
- Provided directories are missing for build kit test
(
8240698)
- Add support for component provided and required interfaces
(
3396f08)
- Change path to spl.cmake
(
03ab693)
- Update to latest hammocking 6.0
(
2ba4f40)
- Update googletest version to 1.16.0
(
2fc62f0)
- Change CMAKE_BUILD_TYPE to BUILD_TYPE
(
88e0668)
Automatically generated by python-semantic-release
- Dependabot security finding
(
ad2e7e7)
remove black dependency and reformat with ruff
- Support build types
(
b5e702b)
- Use gcc14 condition coverage feature
(
fe33477)
- Move KConfig to src/spl_core/config
(
1a514ae)
- Hammocking does not fail when nm fails
(
6d4cf70)
- Update variant documentation
(
980bee1)
- Move cmake files into src/spl_core
(
9f89f09)
- Test suite creation ignores additional test sources
(
ec98319)
- Semantic release sets the release flag even when noop option is used
(
0d22bf3)
- Checkout target branch when given
(
94ee842)
- Add marker to base test runner
(
0b69db3)
- Make disabling of inline and static functions configurable
(
ccfeeec)
- Add support for absolute paths to spl_add_named_component()
(
d4e3578)
-
Add spl_add_external_component() (
b71e4f7) -
Add spl_add_named_component() (
7614a2e) -
Support components without sources (
a81f5e8)
- Create build info by default
(
aa275c4)
- Create build.json with component info
(
0e35f94)
- Include readme + changelog
(
11764cd)
- Update deps, hammocking 0.3.0
(
55fbe74)
- Solve exception with CommandLineExecutor
(
3a1f6d0)
- Update readme and example project generation
(
c19e220)
- Add linker config to model file
(
eb06294)
- Create please script
(
46f57fa)
- Generate project using the init command
(
e75c02e)
- Add command to kickstart new project
(
375fb05)
- Add creation of artifacts to spl_build
(
e4f3d17)
- Adapt artifacts pathes
(
9a5d9fe)
- Update SPLE glossary with latest workshop outcome
(
c1e51db)
- Add spl_core as dep of created projects
(
0ad3bd3)
- Add testrunner classes
(
e6f1142)
- Convert to python package
(
2b7f0d8)
- Component library type is configurable
(
c3bd911)
- Describe spl features and cmake targets
(
83c2956)
backup
- Add changelog to documentation
(
13431d5)
Co-authored-by: Kobagapu, Akshit (RDS-RM) Akshit.Kobagapu@marquardt.com
- Wrong overall coverage report dependencies
(
399f166)
- Add explicit target for the coverage report
(
f917706)
- How to create a new component
(
616c802)
- From legacy to configurable component
(
478d4b3)
- Gcovr needs binary dir as last parameter
(
7166438)
- Handling of obsolete coverage data and notes files
(
8b3f510)
- Coverage report is empty
(
fb44eae)
- Add release workflow step and semver config
(
4c35494)
- All components are compiled for buildkit test
(
de81e79)
-
Add copy button to code blocks (
7c8ecc1) -
Add generate example project tutorial (
dfc2fe6) -
Add hello world step by step tutorial (
9d96033) -
Describe python and scoop deps (
ad0d15a) -
Describe the build script (
1aee9fe) -
Explain main spl concepts (
ae0dd91)
- Gcovr output is a report, too
(
5821b57)
- Robust report creation by removal of html and doxygen output before calling sphinx
(
81d3ff1)
- In case the repo url changes it needs to update it too during install. instead of pull always a
fresh shallow clone
(
3cc36ed)
- Use spl-core/ as directory rather than spl/
(
8002f00)