Repository navigation
cleanup: remove orphaned TOOLS/EXTERNAL .ttd tree and dead getExternalToolsPath accessor - #9735
Conversation
…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]>
📝 WalkthroughWalkthroughExternal TTD configurations and related R scripts were removed. ChangesTool definition cleanup
Suggested reviewers: Poem
🚥 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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/tests/class_tests/openms/source/ToolDescriptionFile_test.cpp (1)
53-53: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueUse appropriate boolean assertion macros.
As per coding guidelines, prefer using
TEST_TRUE(expr)orTEST_FALSE(expr)over comparing to a boolean literal withTEST_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
📒 Files selected for processing (28)
share/OpenMS/TOOLS/EXTERNAL/Hardkloer.ttdshare/OpenMS/TOOLS/EXTERNAL/LINUX/TPP_ProteinProphet.ttdshare/OpenMS/TOOLS/EXTERNAL/LINUX/mail.ttdshare/OpenMS/TOOLS/EXTERNAL/MSGFtoPercolator.ttdshare/OpenMS/TOOLS/EXTERNAL/MascotPercolator.ttdshare/OpenMS/TOOLS/EXTERNAL/QCExporter.ttdshare/OpenMS/TOOLS/EXTERNAL/RawDirConvert.ttdshare/OpenMS/TOOLS/EXTERNAL/ReadMe.txtshare/OpenMS/TOOLS/EXTERNAL/Rscript_generic.ttdshare/OpenMS/TOOLS/EXTERNAL/Rscript_mzTab2tsv_PEP.ttdshare/OpenMS/TOOLS/EXTERNAL/Rscript_mzTab2tsv_PRT.ttdshare/OpenMS/TOOLS/EXTERNAL/Rscript_mzTab2tsv_PSM.ttdshare/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_acc.ttdshare/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_idmap.ttdshare/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_rt_acc.ttdshare/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_setid.ttdshare/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_tic.ttdshare/OpenMS/TOOLS/EXTERNAL/Rscript_qcfigures_trapfill.ttdshare/OpenMS/TOOLS/EXTERNAL/TEMPLATE.ttd_share/OpenMS/TOOLS/EXTERNAL/TPP_RefreshParser.ttdshare/OpenMS/TOOLS/EXTERNAL/WINDOWS/TPP_ProteinProphet.ttdshare/OpenMS/TOOLS/EXTERNAL/XTandemToPercolator.ttdsrc/openms/include/OpenMS/APPLICATIONS/ToolHandler.hsrc/openms/source/APPLICATIONS/ToolHandler.cppsrc/tests/class_tests/openms/data/ToolDescriptionFile_test_1.ttdsrc/tests/class_tests/openms/data/ToolDescriptionFile_test_2.ttdsrc/tests/class_tests/openms/source/ToolDescriptionFile_test.cppsrc/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]>
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]>
What
Removes vestigial content orphaned by the removal of
GenericWrapper(#8981):share/OpenMS/TOOLS/EXTERNAL.ttdtree and the deadToolHandler::getExternalToolsPath()accessor.share/OpenMS/SCRIPTS/*.Rhelpers that were invoked only through those.ttdwrappers.Why
TOOLS/EXTERNALheld.ttd(tool-type description) files that droveGenericWrapper— a generic adapter for wrapping external command-line programs.GenericWrapperwas removed in #8981, and since then nothing loads any of this at runtime:ToolHandler's.ttdloader (getInternalToolConfigFiles_) only ever scansTOOLS/INTERNAL(+ OS subdir +OPENMS_TTD_INTERNAL_PATH), neverTOOLS/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".ProduceQCFigures_*.R,mzTab2tsv_*.R,Rscript_generic_example.R) were reachable only via the deletedRscript_*.ttd/Rscript_generic.ttdwrappers — 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
share/OpenMS/TOOLS/EXTERNAL(25 files).SCRIPTS/*.R:Rscript_generic_example.R,ProduceQCFigures_{acc,idmap,inj,rt_acc,setid,tic}.R,mzTab2tsv_{PEP,PRT,PSM}.R.ToolHandler::getExternalToolsPath()(declaration, definition, stale doc@note).ToolDescriptionFile(the.ttdparser) is still live — it backsTOOLS/INTERNAL/OPENMS_TTD_INTERNAL_PATHloading — so parser coverage is preserved: two.ttdfiles are relocated into the test-data tree asToolDescriptionFile_test_{1,2}.ttdand loaded viaOPENMS_GET_TEST_DATA_PATHinstead of scanning the deleted directory.ToolHandler_test: drop thegetExternalToolsPathsection and fix a copy-paste bug where thegetInternalToolsPathsection actually called the external accessor.Left untouched (verified still live)
SCRIPTS/InternalCalibration_*.R(loaded viaRWrapper::runScript),ProteomicsLFQ.R,plot_trafo.R,ropenms.R.XSL/QcML_report_sheet.xsl(loaded viaFile::find),XSL/ConsensusXML.xsl/IdXML.xsl(source of the web-hosted stylesheets referenced by emitted output files).🤖 Generated with Claude Code
Summary by CodeRabbit