Skip to content

Resolve the GUI tools' documentation pages in builds without the GUI - #10241

Merged
timosachsenberg merged 2 commits into
developfrom
claude/vibrant-hamilton-1i48q4
Sep 23, 2026
Merged

timosachsenberg merged 2 commits into
developfrom
claude/vibrant-hamilton-1i48q4

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

Doxygen_Warning_test fails in every WITH_GUI=OFF build — eleven warnings, all of one kind:

doc/doxygen/public/TOPP.doxygen:22: warning: unable to resolve reference to 'TOPP_TOPPView' for \ref command

The TOPP tool list and the TOPPAS tutorial (doc/doxygen/public/TOPP.doxygen, TOPPAS.doxygen) refer to five pages — TOPP_TOPPView, TOPP_TOPPAS, TOPP_INIFileEditor, TOPP_ExecutePipeline, TOPP_ImageCreator — that the GUI tools define in their own sources under src/openms_gui/source/VISUAL/APPLICATIONS/GUITOOLS/. Only src/openms_gui/CMakeLists.txt registers that directory with openms_doc_path(), and it is not configured without the GUI. #10229 made the doc target itself complete in such a build and left this as a separate matter; this is that matter.

Why registering the directory is not enough

Four of those pages include the command line help (TOPP_<tool>.cli), and two of them the INI documentation (TOPP_<tool>.html), that TOPPDocumenter produces by running the tool — and a build without the GUI has no such tool to run. Measured with the real Doxyfile over the whole tree:

doxygen input counted warnings
as on develop 11 — the unresolved \refs
plus GUITOOLS/, nothing else 6 — every reference resolves, but each missing .cli/.html include warns instead
this PR 0

The change

  • src/CMakeLists.txt registers GUITOOLS/ for the documentation when the GUI is not built; with the GUI, src/openms_gui registers it as before. What those pages describe does not depend on building the tools.
  • In the four pages that have it, the one part that does — the "command line parameters" / "INI file documentation" block — is wrapped in @if WITH_GUI … @endif.
  • doc/CMakeLists.txt sets ENABLED_SECTIONS (Doxyfile.in, previously empty) to WITH_GUI exactly when the GUI is built. The labels already in use — TOPPCLASSES (153 blocks), INTERNAL, HIDDENSTUFF — are disabled on purpose today and stay disabled. Doxyfile_noclass.in @INCLUDEs the main Doxyfile, so doc_noclass and doc_minimal get the same setting.

Without the GUI the five pages now exist, keep their description and screenshots, and are linked from the TOPP tool list; they only lack the section there is nothing to fill with.

Considered and rejected: filtering these warnings in Doxygen_Warning_Checker, or not registering the test without the GUI — either would hide a real regression in exactly these files; making the \refs conditional in TOPP.doxygen/TOPPAS.doxygen — that would cut sentences out of the TOPPAS tutorial's prose.

Verification

Linux, WITH_GUI=OFF, Release, doxygen 1.9.8.

  • The failing case. The full doc target (TOPPDocumenter, then doxygen) completes, and Doxygen_Warning_test passes — 26 log lines, all DOT graph-size notes the checker skips by design, 0 counted (was 11). All five pages are in the HTML output, each linked once from the TOPP tool list, none showing a "command line parameters" heading with nothing under it.
  • WITH_GUI=ON output is unchanged. The GUI cannot be built here, so I reproduced its doxygen input exactly — openms_gui/include plus openms_gui/source/VISUAL/APPLICATIONS, ENABLED_SECTIONS = WITH_GUI, stand-in .cli/.html files — and ran it once with develop's sources and once with this PR's, from the same path. The warning logs are identical line for line. Of 30,585 HTML files, the same set on both sides, 6,472 differ only in the footer timestamp; the four edited pages additionally only in whitespace between tags; and three header source listings only in one tooltip's line number — const char* tool_name moved from TOPPAS.cpp:68 to :70 by the two added lines. Nothing else differs. The stand-in help text appears on all four pages, so the guarded sections are included when the GUI is built.
    • Both emulated runs also report four OpenMS_Plot{1,2,3}DCanvas.parameters / OpenMS_SpectraIDViewTab.parameters includes as missing. Those are written by DefaultParamHandlerDocumenter only when it is compiled with the GUI (DefaultParamHandlerDocumenter.cpp:474-485) — an artifact of reproducing an ON build from an OFF one, identical on both sides.
  • Full build 0 errors, the doc target included (it is part of ALL in this configuration); full ctest 2928/2928 — the first fully green run in this build directory, where Doxygen_Warning_test had been the one failure. The five *_missing/*_failing search-engine adapter tests are skipped for lack of the external binaries, as before.

One trap when reproducing this in an existing build directory: before #10229, TOPPDocumenter wrote its error text into TOPP_TOPPView.cli and TOPP_TOPPAS.cli when it could not run those tools, and the files survive in build directories that predate it. They satisfy the @verbinclude and so hide the missing-include warnings. With this change they are never included without the GUI, but I deleted them before measuring the "registering alone is not enough" row above.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file (N/A — documentation build only; nothing changes for users of the library or the tools)
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • Updated or added python bindings for changed or new classes (N/A — no API changes)

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q8LG3CyhNdDXdvVzw2bmX2


Generated by Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated generated documentation to include GUI-specific command-line and configuration details only when GUI support is enabled.
    • Preserved references to GUI tools in documentation when GUI support is unavailable.
    • Improved configuration of conditional documentation sections during the documentation build.
    • No runtime behavior or public APIs were changed.

Doxygen_Warning_test fails in every WITH_GUI=OFF build, with eleven
warnings of one kind:

  doc/doxygen/public/TOPP.doxygen:22: warning: unable to resolve
  reference to 'TOPP_TOPPView' for \ref command

The TOPP tool list and the TOPPAS tutorial in doc/doxygen/public refer to
five pages -- TOPP_TOPPView, TOPP_TOPPAS, TOPP_INIFileEditor,
TOPP_ExecutePipeline and TOPP_ImageCreator -- that the GUI tools define
in their own sources under src/openms_gui/source/VISUAL/APPLICATIONS/
GUITOOLS. Only src/openms_gui/CMakeLists.txt registers that directory
for the documentation, and it is not configured without the GUI. #10229
made the doc target itself complete in such a build and left this as a
separate matter.

Registering the directory alone is not enough. Four of those pages
include the command line help (TOPP_<tool>.cli), and two of them the INI
documentation (TOPP_<tool>.html), that TOPPDocumenter produces by
running the tool -- and a build without the GUI has no such tool to run.
With only the directory added, the eleven unresolved references turn
into six of

  warning: included file TOPP_TOPPView.cli is not found.

So the pages are now registered whether or not the GUI is built, since
what they describe does not depend on building it, and the one part
that does is marked @if WITH_GUI. doc/CMakeLists.txt enables that
section exactly when the GUI is built, through ENABLED_SECTIONS, which
was empty; the labels already in use (TOPPCLASSES, INTERNAL, HIDDENSTUFF)
stay disabled. Without the GUI the pages keep their description and
screenshots and lose only the section there is nothing to fill with.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q8LG3CyhNdDXdvVzw2bmX2
@coderabbitai

coderabbitai Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 64393583-a5f7-4b14-8f35-16cd56f14cac

📥 Commits

Reviewing files that changed from the base of the PR and between de6fcbf and 3653066.

📒 Files selected for processing (7)
  • doc/CMakeLists.txt
  • doc/doxygen/Doxyfile.in
  • src/CMakeLists.txt
  • src/openms_gui/source/VISUAL/APPLICATIONS/GUITOOLS/ExecutePipeline.cpp
  • src/openms_gui/source/VISUAL/APPLICATIONS/GUITOOLS/ImageCreator.cpp
  • src/openms_gui/source/VISUAL/APPLICATIONS/GUITOOLS/TOPPAS.cpp
  • src/openms_gui/source/VISUAL/APPLICATIONS/GUITOOLS/TOPPView.cpp

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The change configures Doxygen conditional sections from CMake. GUI tool command-line and INI documentation is generated only when WITH_GUI is enabled. The GUI tools documentation path remains registered when GUI support is disabled.

Changes

Doxygen GUI documentation

Layer / File(s) Summary
Doxygen section configuration
doc/CMakeLists.txt, doc/doxygen/Doxyfile.in
CMake sets the enabled Doxygen sections from WITH_GUI. The Doxygen template uses the configured value.
GUI tool documentation guards
src/CMakeLists.txt, src/openms_gui/source/VISUAL/APPLICATIONS/GUITOOLS/*
The build registers the GUI tools documentation path for non-GUI builds. GUI tool command-line and INI documentation sections use WITH_GUI conditions.

Priority: ⬇️ Low

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 644c8

The documentation changes are ready to merge with no identified correctness or availability risk.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: making GUI tool documentation pages resolve when builds use WITH_GUI=OFF.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 4…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the docs at night
GUI pages hide when builds lack light
CMake sets the section key
Doxygen prints what it should see
Tool notes wait for GUI flight

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Contributor Author

build-and-test (windows-2025, cl.exe) is red on 644c8fb4ac for a reason outside this PR — re-running it once.

Three tests failed, all from one cause: TOPP_MSGFPlusAdapter_1, plus its two output comparisons _1_out1 and _1_out2, which fail because _1 produced no output. MSGFPlusAdapter aborted in its Java pre-check:

Java-Check:
  Java was found at 'C:/hostedtoolcache/windows/Java_Temurin-Hotspot_jdk/17.0.20-101/x64/bin/java.EXE' but the process timed out (can happen on very busy systems).
Fatal error: Java is needed to run MS-GF+!
MSGFPlusAdapter took 30.38 s (wall), 0.17 s (CPU)

JavaInfo::canRun() runs java -version and gives up after a fixed 30 s (src/openms/source/SYSTEM/JavaInfo.cpp:55). Here the JVM did not answer in time on a loaded runner: 30 s of waiting against 0.17 s of CPU.

Why it is not this PR's:

  • The diff touches only the doxygen configuration, a doc-path registration that is active only with WITH_GUI=OFF (CI builds with the GUI), and comment lines in four GUI tool sources. Nothing on the MSGFPlusAdapter / JavaInfo path.
  • The same job on this PR's own commit 3653066339 passed 2984/2984, with TOPP_MSGFPlusAdapter_1 green in 8.23 s. The only difference from 644c8fb4ac is the develop merge, which adds 10 lines to CHANGELOG.
  • Doxygen_Warning_test, the test this PR is about, passed in this failing job too.

No fix exists yet. Proposed as a separate change: a timeout means Java was found and did start, just slowly, so canRun() could log a warning and return true on timeout instead of false, and leave the actual MS-GF+ invocation to fail loudly if Java really is broken. The callers are MSGFPlusAdapter, LuciphorAdapter and MSFraggerAdapter. PythonInfo.cpp has the same fixed 30 s probe in three places, with the same false negative. A narrower, CI-only alternative would be passing -force in the MSGFPlusAdapter tests, which skips the probe.


Generated by Claude Code

@timosachsenberg
timosachsenberg merged commit 81a7eb9 into develop Sep 23, 2026
38 of 39 checks passed
@timosachsenberg
timosachsenberg deleted the claude/vibrant-hamilton-1i48q4 branch September 23, 2026 05:00
timosachsenberg added a commit that referenced this pull request Sep 24, 2026
…F) (#10255)

* [CI] Leave the WNet alignment out of CI builds by default

The ci presets, which the Build and Test and the Release workflows share,
set WITH_WNETALIGN=OFF and no longer request the wnetalign vcpkg feature,
so pull request CI neither fetches pylmcf/wnet/wnetalign nor compiles
FeatureLinkerWNet and its classes. The pyOpenMS wheel workflow passes
WITH_WNETALIGN=OFF for pull requests as well.

What is shipped does not change. The build action gains a wnetalign input
that turns the option back on; the Release workflow sets it, so the
installers keep FeatureLinkerWNet, and CMake then fetches the same pinned
versions the vcpkg ports install. Wheels built for nightly, tags and manual
runs keep the WNet bindings, and the container and bioconda builds, which
rely on the CMake default (ON), are untouched. A manual run of Build and
Test can opt in through a workflow_dispatch input.

The CI presets build the documentation, which did not work with
WITH_WNETALIGN=OFF:

- DefaultParamHandlerDocumenter documented FeatureGroupingAlgorithmWNet
  unconditionally, so it failed to link against a libOpenMS without the
  class. The class is now documented only when WITH_WNETALIGN is defined.
- FeatureLinkerWNet's page includes the command line and INI documentation
  TOPPDocumenter writes, and FeatureGroupingAlgorithmWNet's the parameter
  table DefaultParamHandlerDocumenter writes. Neither is written without
  the WNet alignment, and doxygen's three "included file ... is not found"
  warnings would fail Doxygen_Warning_test. As for WITH_GUI (#10241), these
  parts are marked @if WITH_WNETALIGN and doc/CMakeLists.txt enables that
  section when the option is on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0141tQxVx5GENqUuU8zJh2NT

* [CI] Leave the WNet alignment out of the release, wheel and container builds

Extends the previous commit from the pull request builds to every build the
repository runs: the Release workflow no longer turns WITH_WNETALIGN back on,
the pyOpenMS wheel workflow configures OpenMS with WITH_WNETALIGN=OFF for
every event, and the container image passes it too. The installers, the
wheels and the images therefore no longer contain FeatureLinkerWNet or the
WNetMatcher / FeatureGroupingAlgorithmWNet bindings (pyopenms feature-detects
those with hasattr since #9957).

The CMake default is unchanged (ON), so source builds keep the feature, and
a manual run of the Build and Test workflow can still opt in through its
wnetalign input.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0141tQxVx5GENqUuU8zJh2NT

* Make the WNet alignment opt-in: WITH_WNETALIGN defaults to OFF

WITH_WNETALIGN now defaults to OFF, so no build fetches pylmcf/wnet/wnetalign
or compiles FeatureLinkerWNet and its classes unless it is configured with
-DWITH_WNETALIGN=ON.

This replaces the per-build switches of the two previous commits: the wheel
workflow and the container image rely on the default again, the build
action's wnetalign input and the manual opt-in of the Build and Test
workflow are gone, and the Release workflow is as on develop. The ci presets
keep WITH_WNETALIGN=OFF explicitly, like WITH_ONNX, and do not request the
wnetalign vcpkg feature.

The documentation that stated the old default is updated: the CHANGELOG
(dependencies, FeatureLinkerWNet and the library entry), the CMake parameter
reference, AGENTS.md and the pyOpenMS docstrings. FeatureLinkerWNet's page and
FeatureGroupingAlgorithmWNet's class documentation note that they are only
built with the option. The documenter guard and the @if WITH_WNETALIGN
sections from the first commit are what let the documentation of a
default build pass Doxygen_Warning_test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0141tQxVx5GENqUuU8zJh2NT

* CHANGELOG: keep the WITH_WNETALIGN qualifier off PipEchoAlgorithm

The library entry listed PipEchoAlgorithm and the WNet classes together
under one WITH_WNETALIGN=ON qualifier, which reads as if PipEchoAlgorithm
needed the option too; it is built unconditionally. Split the entry so the
qualifier covers only FeatureGroupingAlgorithmWNet/WNetMatcher (CodeRabbit
review on #10255).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0141tQxVx5GENqUuU8zJh2NT

---------

Co-authored-by: Claude <[email protected]>
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.

2 participants