Skip to content

cleanup: remove orphaned TOOLS/EXTERNAL .ttd tree and dead getExternalToolsPath accessor - #9735

Merged
timosachsenberg merged 2 commits into
developfrom
cleanup/remove-external-ttd-tools
Jul 14, 2026
Merged

timosachsenberg merged 2 commits into
developfrom
cleanup/remove-external-ttd-tools

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

What

Removes vestigial content orphaned by the removal of GenericWrapper (#8981):

  1. The share/OpenMS/TOOLS/EXTERNAL .ttd tree and the dead ToolHandler::getExternalToolsPath() accessor.
  2. Ten share/OpenMS/SCRIPTS/*.R helpers that were invoked only through those .ttd wrappers.

Why

TOOLS/EXTERNAL held .ttd (tool-type description) files that drove GenericWrapper — a generic adapter for wrapping external command-line programs. GenericWrapper was removed in #8981, and since then nothing loads any of this at runtime:

  • ToolHandler's .ttd loader (getInternalToolConfigFiles_) only ever scans TOOLS/INTERNAL (+ OS subdir + OPENMS_TTD_INTERNAL_PATH), never TOOLS/EXTERNAL.
  • ToolHandler::getExternalToolsPath() had zero callers (only its declaration, a doc note, and two tests). The header even documented that the directory "is not currently scanned".
  • The R helper scripts (ProduceQCFigures_*.R, mzTab2tsv_*.R, Rscript_generic_example.R) were reachable only via the deleted Rscript_*.ttd / Rscript_generic.ttd wrappers — no C++ code, test, or doc references them.

All of it was nonetheless still shipped to users via the blanket install(DIRECTORY share/OpenMS/ ...) rule.

Changes

  • Delete share/OpenMS/TOOLS/EXTERNAL (25 files).
  • Delete 10 orphaned SCRIPTS/*.R: Rscript_generic_example.R, ProduceQCFigures_{acc,idmap,inj,rt_acc,setid,tic}.R, mzTab2tsv_{PEP,PRT,PSM}.R.
  • Remove ToolHandler::getExternalToolsPath() (declaration, definition, stale doc @note).
  • ToolDescriptionFile (the .ttd parser) is still live — it backs TOOLS/INTERNAL / OPENMS_TTD_INTERNAL_PATH loading — so parser coverage is preserved: two .ttd files are relocated into the test-data tree as ToolDescriptionFile_test_{1,2}.ttd and loaded via OPENMS_GET_TEST_DATA_PATH instead of scanning the deleted directory.
  • ToolHandler_test: drop the getExternalToolsPath section and fix a copy-paste bug where the getInternalToolsPath section actually called the external accessor.

Left untouched (verified still live)

  • SCRIPTS/InternalCalibration_*.R (loaded via RWrapper::runScript), ProteomicsLFQ.R, plot_trafo.R, ropenms.R.
  • XSL/QcML_report_sheet.xsl (loaded via File::find), XSL/ConsensusXML.xsl / IdXML.xsl (source of the web-hosted stylesheets referenced by emitted output files).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Changes
    • Removed legacy external tool definitions and QC/utility script integrations (including Percolator/ProteinProphet/Tandem conversion helpers, RAW directory conversion, QC figure generation, and mail).
    • Tool discovery now loads only supported internal tool descriptions; external tool directory support has been removed.
  • Tests
    • Updated tool-description tests to rely on dedicated sample configurations.
    • Adjusted ToolHandler coverage to validate internal tool discovery instead of external tool discovery.

…lToolsPath accessor

The share/OpenMS/TOOLS/EXTERNAL directory held GenericWrapper tool-type
descriptions (.ttd). GenericWrapper was removed in #8981, and nothing has
loaded these files at runtime since: ToolHandler only scans TOOLS/INTERNAL,
and ToolHandler::getExternalToolsPath() had zero callers in the codebase.
The files were still shipped via the blanket share/ install rule.

- Delete share/OpenMS/TOOLS/EXTERNAL (25 files).
- Remove ToolHandler::getExternalToolsPath() and its doc note.
- ToolDescriptionFile is still live (loads TOOLS/INTERNAL / OPENMS_TTD_INTERNAL_PATH),
  so preserve parser coverage: relocate two .ttd files into the test-data tree as
  ToolDescriptionFile_test_{1,2}.ttd and load them via OPENMS_GET_TEST_DATA_PATH.
- ToolHandler_test: drop the getExternalToolsPath section and fix a copy-paste bug
  where the getInternalToolsPath section called the external accessor.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

External TTD configurations and related R scripts were removed. ToolHandler no longer exposes the external tools path, while tests use fixed external-tool fixtures and validate internal tool path discovery.

Changes

Tool definition cleanup

Layer / File(s) Summary
Remove external tool path API
src/openms/include/OpenMS/APPLICATIONS/ToolHandler.h, src/openms/source/APPLICATIONS/ToolHandler.cpp
The external tools path documentation, declaration, and implementation were removed; internal tool path handling remains.
Use deterministic TTD test fixtures
src/tests/class_tests/openms/data/ToolDescriptionFile_test_*.ttd, src/tests/class_tests/openms/source/ToolDescriptionFile_test.cpp, src/tests/class_tests/openms/source/ToolHandler_test.cpp
Tests now load explicit external-tool fixtures and validate the internal tools path instead of scanning external tool definitions.

Suggested reviewers: jpfeuffer

Poem

A rabbit tidies wrappers away,
While fixed test fixtures hop into play.
External paths leave the trail,
Internal checks now prevail.
Clean shelves brighten the day!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main cleanup: removing the orphaned EXTERNAL .ttd tree and the unused getExternalToolsPath accessor.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cleanup/remove-external-ttd-tools

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

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/tests/class_tests/openms/source/ToolDescriptionFile_test.cpp (1)

53-53: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Use appropriate boolean assertion macros.

As per coding guidelines, prefer using TEST_TRUE(expr) or TEST_FALSE(expr) over comparing to a boolean literal with TEST_EQUAL.

♻️ Proposed refactor
-    TEST_EQUAL(!tds.empty(), true)
+    TEST_FALSE(tds.empty())
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/tests/class_tests/openms/source/ToolDescriptionFile_test.cpp` at line 53,
Replace the TEST_EQUAL boolean-literal comparison in the relevant test with the
appropriate TEST_TRUE assertion for the !tds.empty() expression.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@src/tests/class_tests/openms/source/ToolDescriptionFile_test.cpp`:
- Line 53: Replace the TEST_EQUAL boolean-literal comparison in the relevant
test with the appropriate TEST_TRUE assertion for the !tds.empty() expression.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 47915d70-b182-4bb9-8258-1b16a511b358

📥 Commits

Reviewing files that changed from the base of the PR and between 79e97f8 and 248a43e.

📒 Files selected for processing (28)
  • share/OpenMS/TOOLS/EXTERNAL/Hardkloer.ttd
  • share/OpenMS/TOOLS/EXTERNAL/LINUX/TPP_ProteinProphet.ttd
  • share/OpenMS/TOOLS/EXTERNAL/LINUX/mail.ttd
  • share/OpenMS/TOOLS/EXTERNAL/MSGFtoPercolator.ttd
  • share/OpenMS/TOOLS/EXTERNAL/MascotPercolator.ttd
  • share/OpenMS/TOOLS/EXTERNAL/QCExporter.ttd
  • share/OpenMS/TOOLS/EXTERNAL/RawDirConvert.ttd
  • share/OpenMS/TOOLS/EXTERNAL/ReadMe.txt
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_generic.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_mzTab2tsv_PEP.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_mzTab2tsv_PRT.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_mzTab2tsv_PSM.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_acc.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_idmap.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_rt_acc.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_setid.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_tic.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_trapfill.ttd
  • share/OpenMS/TOOLS/EXTERNAL/TEMPLATE.ttd_
  • share/OpenMS/TOOLS/EXTERNAL/TPP_RefreshParser.ttd
  • share/OpenMS/TOOLS/EXTERNAL/WINDOWS/TPP_ProteinProphet.ttd
  • share/OpenMS/TOOLS/EXTERNAL/XTandemToPercolator.ttd
  • src/openms/include/OpenMS/APPLICATIONS/ToolHandler.h
  • src/openms/source/APPLICATIONS/ToolHandler.cpp
  • src/tests/class_tests/openms/data/ToolDescriptionFile_test_1.ttd
  • src/tests/class_tests/openms/data/ToolDescriptionFile_test_2.ttd
  • src/tests/class_tests/openms/source/ToolDescriptionFile_test.cpp
  • src/tests/class_tests/openms/source/ToolHandler_test.cpp
💤 Files with no reviewable changes (24)
  • share/OpenMS/TOOLS/EXTERNAL/TPP_RefreshParser.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_mzTab2tsv_PSM.ttd
  • share/OpenMS/TOOLS/EXTERNAL/LINUX/mail.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_mzTab2tsv_PEP.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_acc.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_mzTab2tsv_PRT.ttd
  • share/OpenMS/TOOLS/EXTERNAL/XTandemToPercolator.ttd
  • share/OpenMS/TOOLS/EXTERNAL/RawDirConvert.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_rt_acc.ttd
  • share/OpenMS/TOOLS/EXTERNAL/LINUX/TPP_ProteinProphet.ttd
  • share/OpenMS/TOOLS/EXTERNAL/WINDOWS/TPP_ProteinProphet.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_trapfill.ttd
  • share/OpenMS/TOOLS/EXTERNAL/ReadMe.txt
  • share/OpenMS/TOOLS/EXTERNAL/TEMPLATE.ttd_
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_generic.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_tic.ttd
  • share/OpenMS/TOOLS/EXTERNAL/QCExporter.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_idmap.ttd
  • src/openms/include/OpenMS/APPLICATIONS/ToolHandler.h
  • share/OpenMS/TOOLS/EXTERNAL/MascotPercolator.ttd
  • src/openms/source/APPLICATIONS/ToolHandler.cpp
  • share/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_setid.ttd
  • share/OpenMS/TOOLS/EXTERNAL/MSGFtoPercolator.ttd
  • share/OpenMS/TOOLS/EXTERNAL/Hardkloer.ttd

These SCRIPTS/*.R helpers were invoked exclusively through the TOOLS/EXTERNAL
.ttd GenericWrapper wrappers removed in the previous commit (GenericWrapper
itself was removed in #8981). None are referenced by any C++ code, test, or
documentation:

- Rscript_generic_example.R  (Rscript_generic.ttd; header names TOPP:GenericWrapper)
- ProduceQCFigures_{acc,idmap,inj,rt_acc,setid,tic}.R  (Rscript_qcfigures_*.ttd)
- mzTab2tsv_{PEP,PRT,PSM}.R  (Rscript_mzTab2tsv_*.ttd)

Still-live SCRIPTS helpers (InternalCalibration_*.R via RWrapper::runScript,
ProteomicsLFQ.R, plot_trafo.R, ropenms.R) are left untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@timosachsenberg
timosachsenberg merged commit f504593 into develop Jul 14, 2026
18 checks passed
@timosachsenberg
timosachsenberg deleted the cleanup/remove-external-ttd-tools branch July 14, 2026 08:58
timosachsenberg added a commit that referenced this pull request Jul 16, 2026
Backfills two CHANGELOG entries for recently merged PRs that didn't
add their own: the .NET 8 runtime documentation for Thermo RAW
reading (#9736) and the orphaned TOOLS/EXTERNAL .ttd tree cleanup
(#9735).


Claude-Session: https://claude.ai/code/session_013Z55BhHGVUXUwARSR3GjoN

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