Skip to content

[DOC] Class comments for new headers; document build options and environment variables - #10322

Merged
timosachsenberg merged 1 commit into
developfrom
claude/confident-lovelace-muuw2w-advisory
Sep 29, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
claude/confident-lovelace-muuw2w-advisory

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

This clears the documentation findings among the advisory release-readiness checks for 3.6.0, before the release candidate.

E5: new public classes are documented. The main class of six headers new in 3.6 had no class comment:

  • IsoelectricPoint and ToolHandler:
    • Each class comment was separated from its class, by the ProteomicsPkaScale enum and the ToolListType typedef.
    • As a result, Doxygen gave IsoelectricPoint's description ("Utility class for computing the isoelectric point…") to the enum, and neither class had a description.
    • The enum and the typedef now come first, so each comment belongs to its class again.
  • ONNXPredictorBase, PeptDeepRTInference and shared_xerces_ptr get a class comment.
  • MapAlignerBase's // @brief becomes a doc comment.

E6: build options are documented.

  • OPENMS_PEPTDEEP_MODEL_URL is documented next to WITH_ONNX in the CMake parameters.
  • PYOPENMS_GENERATE_STUBS and PYOPENMS_STABLE_ABI_VERSION are documented in the pyOpenMS README, next to the other pyOpenMS options.

E7: environment variables are documented.

  • A user FAQ entry, "Which environment variables does OpenMS read?", lists all of them with what they do:
    • OPENMS_DATA_PATH, OPENMS_HOME_PATH, OPENMS_TMPDIR and OPENMS_DISABLE_UPDATE_CHECK;
    • OPENMS_BRUKER_SDK_PATH and OPENMS_THERMO_MANAGED_DIR;
    • OPENMS_TOOL_REGISTRY_PATH, with its old name OPENMS_TTD_INTERNAL_PATH;
    • MSFRAGGER_PATH and NOVOR_PATH;
    • OPENMS_DUMP_CORE, for developers.
  • The developer page on adding a TOPP tool says how a tool built outside OpenMS registers itself, with OPENMS_TOOL_REGISTRY_PATH.

The other advisory findings of the 2026-09-28 report are handled elsewhere or left out:

Validation

  • The lab's release-docs-audit.py against this branch, with release/3.5.0 as base:
    • DOC-CLASS-BRIEF: 0 of 141 new headers lack a class comment (before: 6).
    • DOC-CMAKE-OPTIONS: no new undocumented option (before: 3).
    • DOC-ENV-VARS: none undocumented (before: 4).
    • VERSION-STRINGS: clean.
  • The six headers compile on their own: g++ -std=c++20 -fsyntax-only, against a build tree of develop.
  • Doxygen 1.9.8 over the changed files, before and after:
    • no new warnings (7 each, all pre-existing);
    • each of the six classes now has its own brief description, and the enum has its own.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file (documentation and comments only; no entry)
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes (no code change; headers compile, audit and Doxygen as above)
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7


Generated by Claude Code

Summary by CodeRabbit

  • Documentation
    • Added guidance for configuring PeptDeep model downloads, including use of a mirror.
    • Documented OpenMS environment variables, external TOPP tool registration, and pyOpenMS stub-generation and stable-ABI options.
    • Expanded reference information for ONNX prediction, peptide retention-time inference, and XML object ownership.
    • Clarified existing tool and chemistry documentation.

…ronment variables

Release-readiness advisory checks E5, E6 and E7 before the 3.6.0 RC:

- E5: the main class of six headers new in 3.6 had no class comment.
  IsoelectricPoint's and ToolHandler's comments were separated from their
  class by an enum and a typedef, so Doxygen attached IsoelectricPoint's to the
  ProteomicsPkaScale enum and gave both classes no description; the enum and
  the typedef now come first. ONNXPredictorBase, PeptDeepRTInference and
  shared_xerces_ptr get a comment, and MapAlignerBase's "// @brief" becomes a
  doc comment.
- E6: OPENMS_PEPTDEEP_MODEL_URL is documented next to WITH_ONNX in the CMake
  parameters, PYOPENMS_GENERATE_STUBS and PYOPENMS_STABLE_ABI_VERSION in the
  pyOpenMS README.
- E7: a user FAQ entry lists the environment variables OpenMS reads, including
  MSFRAGGER_PATH, NOVOR_PATH and OPENMS_TOOL_REGISTRY_PATH (with its old name
  OPENMS_TTD_INTERNAL_PATH); the developer page on adding a TOPP tool explains
  how a tool built outside OpenMS registers itself.

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

coderabbitai Bot commented Sep 29, 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: 9c4ae648-ea1b-4129-86b6-45c6a57e031f

📥 Commits

Reviewing files that changed from the base of the PR and between 83fc232 and cc6abb4.

📒 Files selected for processing (10)
  • doc/doxygen/install/common-cmake-parameters.doxygen
  • doc/doxygen/public/user_FAQ.doxygen
  • doc/openms/docs/manual/develop/adding-new-tool-to-topp.md
  • src/openms/include/OpenMS/CHEMISTRY/IsoelectricPoint.h
  • src/openms/include/OpenMS/FORMAT/HANDLERS/StringManager.h
  • src/openms/include/OpenMS/ML/ONNX/ONNXPredictorBase.h
  • src/openms/include/OpenMS/ML/PEPTDEEP/PeptDeepRTInference.h
  • src/openms_cli/include/OpenMS/APPLICATIONS/MapAlignerBase.h
  • src/openms_cli/include/OpenMS/APPLICATIONS/ToolHandler.h
  • src/pyOpenMS/README.md

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


📝 Walkthrough

Walkthrough

This change adds documentation for OpenMS configuration and environment variables, TOPP tool registration, C++ APIs, and pyOpenMS build options. It also moves two existing declarations in C++ headers without changing them.

Changes

Documentation and Header Updates

Layer / File(s) Summary
OpenMS settings and tool registration
doc/doxygen/install/common-cmake-parameters.doxygen, doc/doxygen/public/user_FAQ.doxygen, doc/openms/docs/manual/develop/adding-new-tool-to-topp.md
Documents the PeptDeep model URL, OpenMS environment variables, and registration of externally built TOPP tools.
C++ header documentation and declaration placement
src/openms/include/OpenMS/CHEMISTRY/IsoelectricPoint.h, src/openms/include/OpenMS/FORMAT/HANDLERS/StringManager.h, src/openms/include/OpenMS/ML/ONNX/ONNXPredictorBase.h, src/openms/include/OpenMS/ML/PEPTDEEP/PeptDeepRTInference.h, src/openms_cli/include/OpenMS/APPLICATIONS/MapAlignerBase.h, src/openms_cli/include/OpenMS/APPLICATIONS/ToolHandler.h
Adds or adjusts header documentation. Moves ProteomicsPkaScale and ToolListType declarations without changing them.
pyOpenMS build options
src/pyOpenMS/README.md
Documents stub-generation and stable-ABI options, their defaults, and their described build behavior.

Priority: ➖ Normal

Change: Other

Merge Risk: ⚪ Minimal · up to cc6ab

This PR clarifies existing behavior without establishing a runtime or build regression. No actionable merge-blocking risk remains beyond normal checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 53.85% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 6 files. (4 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main changes: adding class comments and documenting build options and environment variables.
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.
Full details: Docstring Coverage

Explanation

Docstring coverage is 53.85% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 6 files. (4 skipped: 4 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 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 reads the model URL,
Then checks which tools are registered.
It finds the ONNX notes in place,
And pyOpenMS options clearly traced.
It hops through headers, pleased to see
Two declarations moved carefully.

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

@timosachsenberg
timosachsenberg merged commit d332d3a into develop Sep 29, 2026
15 checks passed
@timosachsenberg
timosachsenberg deleted the claude/confident-lovelace-muuw2w-advisory branch September 29, 2026 06:02
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