Repository navigation
Resolve the GUI tools' documentation pages in builds without the GUI - #10241
Conversation
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
|
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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (7)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change configures Doxygen conditional sections from CMake. GUI tool command-line and INI documentation is generated only when ChangesDoxygen GUI documentation
Priority: ⬇️ Low Change: Bug fix Merge Risk: ⚪ Minimal · up to The documentation changes are ready to merge with no identified correctness or availability risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. A rabbit checks the docs at night Comment |
|
Three tests failed, all from one cause:
Why it is not this PR's:
No fix exists yet. Proposed as a separate change: a timeout means Java was found and did start, just slowly, so Generated by Claude Code |
…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]>
Description
Doxygen_Warning_testfails in everyWITH_GUI=OFFbuild — eleven warnings, all of one kind: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 undersrc/openms_gui/source/VISUAL/APPLICATIONS/GUITOOLS/. Onlysrc/openms_gui/CMakeLists.txtregisters that directory withopenms_doc_path(), and it is not configured without the GUI. #10229 made thedoctarget 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:develop\refsGUITOOLS/, nothing else.cli/.htmlinclude warns insteadThe change
src/CMakeLists.txtregistersGUITOOLS/for the documentation when the GUI is not built; with the GUI,src/openms_guiregisters it as before. What those pages describe does not depend on building the tools.@if WITH_GUI … @endif.doc/CMakeLists.txtsetsENABLED_SECTIONS(Doxyfile.in, previously empty) toWITH_GUIexactly 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, sodoc_noclassanddoc_minimalget 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 inTOPP.doxygen/TOPPAS.doxygen— that would cut sentences out of the TOPPAS tutorial's prose.Verification
Linux,
WITH_GUI=OFF, Release, doxygen 1.9.8.doctarget (TOPPDocumenter, then doxygen) completes, andDoxygen_Warning_testpasses — 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=ONoutput is unchanged. The GUI cannot be built here, so I reproduced its doxygen input exactly —openms_gui/includeplusopenms_gui/source/VISUAL/APPLICATIONS,ENABLED_SECTIONS = WITH_GUI, stand-in.cli/.htmlfiles — and ran it once withdevelop'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_namemoved fromTOPPAS.cpp:68to:70by 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.OpenMS_Plot{1,2,3}DCanvas.parameters/OpenMS_SpectraIDViewTab.parametersincludes 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.doctarget included (it is part ofALLin this configuration); fullctest2928/2928 — the first fully green run in this build directory, whereDoxygen_Warning_testhad been the one failure. The five*_missing/*_failingsearch-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.cliandTOPP_TOPPAS.cliwhen it could not run those tools, and the files survive in build directories that predate it. They satisfy the@verbincludeand 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
🤖 Generated with Claude Code
https://claude.ai/code/session_01Q8LG3CyhNdDXdvVzw2bmX2
Generated by Claude Code
Summary by CodeRabbit