Skip to content

Remove GenericWrapper - #8981

Merged
timosachsenberg merged 2 commits into
developfrom
copilot/remove-generic-wrapper
Mar 24, 2026
Merged

timosachsenberg merged 2 commits into
developfrom
copilot/remove-generic-wrapper

Conversation

Copilot AI commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

Removes the GenericWrapper TOPP tool and all related infrastructure. GenericWrapper wrapped external tools via .ttd configuration files and was unused.

Deleted

  • src/topp/GenericWrapper.cpp — tool implementation
  • share/OpenMS/examples/TOPPAS/GenericWrapper_Rscript-generic.toppas — example pipeline

ToolHandler

  • Removed includeGenericWrapper parameter from getTOPPToolList() (now signature is getTOPPToolList())
  • Removed external .ttd loading machinery: getExternalTools_(), loadExternalToolConfig_(), getExternalToolConfigFiles_(), and their static members
  • getExternalToolsPath() retained (still used by ToolDescriptionFile_test)

Build / CMake

  • Removed from executables.cmake, src/topp/CMakeLists.txt, cwl_generation.cmake, knime_package_support.cmake

GenericWrapper special-cases removed from

  • TOPPBase.cpp — tool validation check and subsection comment
  • ToolDescription.cpp — duplicate-type error hint
  • INIUpdater.cpp (APPLICATIONS + TOPP) — tool_type preservation branch and getTOPPToolList(true) call
  • TOPPASBase.cpp — getTOPPToolList(true) call
  • TOPPASToolVertex.cpp — ETool: prefix comments
  • MascotRemoteQuery.cpp, FileConverter.cpp, TOPP.doxygen, TOPPDocumenter.cpp — doc references

Tests

  • Removed TOPPWRITEINI_GenericWrapper test and related REMOVE_ITEM guards from src/tests/topp/CMakeLists.txt
  • Removed GenericWrapper_ pipeline skip from src/tests/toppas/CMakeLists.txt
  • Updated ToolHandler_test.cpp to reflect simplified signature
Original prompt

This section details on the original issue you should resolve

<issue_title>discussion: remove GenericWrapper</issue_title>
<issue_description>does anyone use this?</issue_description>

Comments on the Issue (you are @copilot in this section)

@timosachsenberg @cbielow do you use this? @cbielow no. can be removed

⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.

Copilot AI changed the title [WIP] Remove GenericWrapper as it is not used Remove GenericWrapper Mar 24, 2026
Copilot AI requested a review from timosachsenberg March 24, 2026 10:46
@timosachsenberg
timosachsenberg marked this pull request as ready for review March 24, 2026 10:56
@timosachsenberg
timosachsenberg merged commit 9e3b9f2 into develop Mar 24, 2026
36 checks passed
@timosachsenberg
timosachsenberg deleted the copilot/remove-generic-wrapper branch March 24, 2026 12:32

@cbielow cbielow 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.

also ToolDescriptionHandler and ToolDescriptionFile can be removed

// special case of GenericWrapper: since we need the subSectionDefaults before pushing the cmd arguments in there
// but the 'type' is empty currently,
// we extract and set it beforehand
// extract '-type' from command line args upfront, since subsection defaults may depend on it

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.

I think there is a single tool left which has a -type now.
So the whole code below can be removed as well...

{
}

void ToolDescription::addExternalType(const String& type, const ToolExternalDetails& details)

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.

this stuff can go as welll

Comment on lines -46 to -48
TEST_TRUE(list.find("DecoyDatabase") != list.end())
TEST_TRUE(list.find("GenericWrapper") != list.end())
TEST_TRUE(list.size() > 30) // assume we have over 30 tools in there

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.

it deleted too much here...

timosachsenberg added a commit that referenced this pull request Mar 24, 2026
…eftovers

- Remove early '-type' extraction in TOPPBase::parseCommandLine_ (only needed for GenericWrapper subsection defaults)
- Remove ToolDescription::addExternalType() and append() methods (unused after GenericWrapper removal)
- Remove stray 'Internal::ToolDescription bla' variable and unused LogStream include
- Remove stale GenericWrapper assertion in ToolHandler_test
- Remove addExternalType/append test stubs in ToolDescription_test

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
timosachsenberg added a commit that referenced this pull request Mar 24, 2026
…eftovers (#8986)

- Remove early '-type' extraction in TOPPBase::parseCommandLine_ (only needed for GenericWrapper subsection defaults)
- Remove ToolDescription::addExternalType() and append() methods (unused after GenericWrapper removal)
- Remove stray 'Internal::ToolDescription bla' variable and unused LogStream include
- Remove stale GenericWrapper assertion in ToolHandler_test
- Remove addExternalType/append test stubs in ToolDescription_test

Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
github-actions Bot pushed a commit that referenced this pull request Mar 25, 2026
- Update QPX output filenames to quantms.* scheme (#8974)
- Add GenericWrapper removal (BREAKING) (#8981)
- Add ModifiedSincSmoother new algorithm (#8217)
- Add experimental BrukerTimsFile/BRUKER_TDF format support (#8975)

Co-authored-by: Copilot <[email protected]>
timosachsenberg pushed a commit that referenced this pull request Mar 25, 2026
- Update QPX output filenames to quantms.* scheme (#8974)
- Add GenericWrapper removal (BREAKING) (#8981)
- Add ModifiedSincSmoother new algorithm (#8217)
- Add experimental BrukerTimsFile/BRUKER_TDF format support (#8975)

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
timosachsenberg added a commit that referenced this pull request Jul 14, 2026
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 added a commit that referenced this pull request Jul 14, 2026
…lToolsPath accessor (#9735)

* cleanup: remove orphaned TOOLS/EXTERNAL .ttd tree and dead getExternalToolsPath 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]>

* cleanup: remove GenericWrapper-only R helper scripts orphaned by #8981

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]>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[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.

discussion: remove GenericWrapper

3 participants