Skip to content

ci: doxygen-checks: build the base coverage with the PR doc build system - #115170

Open
nashif wants to merge 1 commit into
zephyrproject-rtos:mainfrom
nashif:topic/ci/doxygen-checks-base-build
Open

ci: doxygen-checks: build the base coverage with the PR doc build system#115170
nashif wants to merge 1 commit into
zephyrproject-rtos:mainfrom
nashif:topic/ci/doxygen-checks-base-build

Conversation

@nashif

@nashif nashif commented Aug 2, 2026

Copy link
Copy Markdown
Member

The base branch coverage report was generated by copying doc/CMakeLists.txt
and doc/Makefile from the PR branch into the base worktree and building
there. That is a partial cherry-pick of the doc build system onto an old
tree: as soon as a PR changes the build logic to reference something that
does not exist on the base branch, the base build fails and the check
blocks the PR.

Point ZEPHYR_BASE at the base worktree and run the build from the PR
checkout into a separate build directory instead. Everything the Doxygen
configuration refers to is ZEPHYR_BASE-relative, so the sources being
scanned come from the base branch while the entire build system, Doxygen
configuration and scripts included, comes from the PR branch. Both coverage
reports are therefore produced by an identical configuration, and no file
is copied across branches.

Nothing is built in the base worktree anymore, so its west update goes away
as well; it was updating the module checkouts shared with the PR workspace
to the base branch revisions.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Anas Nashif anas.nashif@intel.com

The base branch coverage report was generated by copying doc/CMakeLists.txt
and doc/Makefile from the PR branch into the base worktree and building
there. That is a partial cherry-pick of the doc build system onto an old
tree: as soon as a PR changes the build logic to reference something that
does not exist on the base branch, the base build fails and the check
blocks the PR.

Point ZEPHYR_BASE at the base worktree and run the build from the PR
checkout into a separate build directory instead. Everything the Doxygen
configuration refers to is ZEPHYR_BASE-relative, so the sources being
scanned come from the base branch while the entire build system, Doxygen
configuration and scripts included, comes from the PR branch. Both coverage
reports are therefore produced by an identical configuration, and no file
is copied across branches.

Nothing is built in the base worktree anymore, so its west update goes away
as well; it was updating the module checkouts shared with the PR workspace
to the base branch revisions.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
@sonarqubecloud

sonarqubecloud Bot commented Aug 2, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants