Skip to content

Add version of modpepgen with incremental masses. - #6859

Closed
jpfeuffer wants to merge 11 commits into
developfrom
feat/Modpepgenmasses
Closed

jpfeuffer wants to merge 11 commits into
developfrom
feat/Modpepgenmasses

Conversation

@jpfeuffer

@jpfeuffer jpfeuffer commented May 12, 2023 •

Copy link
Copy Markdown
Contributor

Description

Checklist

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

How can I get additional information on failed tests during CI

Click to expand If your PR is failing you can check out

Advanced commands (admins / reviewer only)

Click to expand
  • /reformat (experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.
  • setting the label "NoJenkins" will skip tests for this PR on jenkins (saves resources e.g., on edits that do not affect tests)
  • commenting with rebuild jenkins will retrigger Jenkins-based CI builds

⚠️ Note: Once you opened a PR try to minimize the number of pushes to it as every push will trigger CI (automated builds and test) and is rather heavy on our infrastructure (e.g., if several pushes per day are performed).

Summary by CodeRabbit

  • New Features
    • Added mass-aware peptide variant generation to produce modified peptides with their calculated molecular masses.
    • Introduced integrated digestion and modification pipeline combining protein digestion with variable and fixed modification application.
    • Enhanced peptide modification utilities to track and return mass information alongside sequence variants.

@jpfeuffer
jpfeuffer requested a review from timosachsenberg May 12, 2023 12:28

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

Looks pretty much straight forward.

@jpfeuffer

Copy link
Copy Markdown
Contributor Author

ok then I can refactor the modmap building and uncomment the rest of the tests.

@timosachsenberg

Copy link
Copy Markdown
Contributor

Don't know how busy you are with other stuff but having one function for Digesting and Modifying a Protein would finally give us proper support for protein terminal modifications. But not high prio

@jpfeuffer

Copy link
Copy Markdown
Contributor Author

Yes and you can save computations by continuing enumeration in the presence of missed cleavages.

@jpfeuffer jpfeuffer mentioned this pull request Nov 29, 2023
5 tasks
mod_compatibility[C_TERM_MODIFICATION_INDEX].push_back(v);
}
}
else if (peptide_is_n_terminal && v->getTermSpecificity() == ResidueModification::PROTEIN_N_TERM)

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 has been added by me...

Comment on lines +372 to +379
else if (term_spec == ResidueModification::C_TERM && residue_index == (peptide.size() - 1))
{
mod_compatibility[C_TERM_MODIFICATION_INDEX].push_back(v);
}
else if (term_spec == ResidueModification::N_TERM && residue_index == 0)
{
mod_compatibility[N_TERM_MODIFICATION_INDEX].push_back(v);
}

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.

not sure why this is also handled here e.g. if this could lead to
two modifications (e.g., "Amidated (C-term)" and "Amidated (Protein C-term)" being applied redundantly...

Comment on lines +155 to +194
// test protein-terminal modifications
seq = AASequence::fromString("FAAAFFAAF"); // first residue will be target site
modNames.clear();
modNames << "Deamidated (Protein N-term F)";
variable_mods = ModifiedPeptideGenerator::getModifications(modNames);
is_c_terminal_peptide = false;
is_n_terminal_peptide = true;
ModifiedPeptideGenerator::generateVariableModifiedPeptidesWithMasses(variable_mods, seq, is_n_terminal_peptide, is_c_terminal_peptide, 3, modified_peptides, false);
TEST_EQUAL(modified_peptides.size(), 1); // modified peptide
TEST_EQUAL(modified_peptides[0].sequence.toString(), ".(Deamidated)FAAAFFAAF");
TEST_EQUAL(modified_peptides[0].mass, modified_peptides[0].sequence.getMonoWeight());
modified_peptides.clear();

is_c_terminal_peptide = false;
is_n_terminal_peptide = false;
ModifiedPeptideGenerator::generateVariableModifiedPeptidesWithMasses(variable_mods, seq, is_n_terminal_peptide, is_c_terminal_peptide, 3, modified_peptides, false);
TEST_EQUAL(modified_peptides.size(), 0);
modified_peptides.clear();

// Amidation is "C-term" and "Protein C-term" without AA preference in unimod
modNames.clear();
modNames << "Amidated (C-term)";
variable_mods = ModifiedPeptideGenerator::getModifications(modNames);
is_c_terminal_peptide = false;
is_n_terminal_peptide = false;
ModifiedPeptideGenerator::generateVariableModifiedPeptidesWithMasses(variable_mods, seq, is_n_terminal_peptide, is_c_terminal_peptide, 3, modified_peptides, false);
TEST_EQUAL(modified_peptides.size(), 1);
TEST_EQUAL(modified_peptides[0].sequence.toString(), "FAAAFFAAF.(Amidated)"); // always assigned because it is C-term of the peptide
TEST_EQUAL(modified_peptides[0].mass, modified_peptides[0].sequence.getMonoWeight());
modified_peptides.clear();

modNames.clear();
modNames << "Amidated (Protein C-term)";
variable_mods = ModifiedPeptideGenerator::getModifications(modNames);
is_c_terminal_peptide = false;
is_n_terminal_peptide = false;
ModifiedPeptideGenerator::generateVariableModifiedPeptidesWithMasses(variable_mods, seq, is_n_terminal_peptide, is_c_terminal_peptide, 3, modified_peptides, false);
TEST_EQUAL(modified_peptides.size(), 0); // not assigned because it is an internal peptide
modified_peptides.clear();
}

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.

added a few tests that indicate that it works

@timosachsenberg

timosachsenberg commented Dec 20, 2023 •

Copy link
Copy Markdown
Contributor

TODO in this PR:

  • move DigestAndModify to extra file

Follow up:

  • add to SimpleSearchEngine, PeptideSearchEngine
  • add python wrapper (.pxd file in pyopenms folder - TODO: how to handle StringView)
  • expand other modification code (e.g., apply fixed modifications, other getModifiedPeptides function) to also support terminal mods
  • currently doesn’t reuse mass calculations for miss cleaved peptides (not sure if a huge boost)

@timosachsenberg
timosachsenberg marked this pull request as ready for review December 20, 2023 12:43
@qodo-code-review

Copy link
Copy Markdown
Contributor

PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

CI Failure Feedback 🧐

Action: build-and-test (macos-14, xcode, 15.0.1)

Failed stage: Build [❌]

Failure summary:

The action failed due to the following reasons:

  • There was an error during the build process, as indicated by the message "Error(s) when building
    project".
  • The specific error was a missing 'build.ninja' file, which is required by the Ninja build system to
    proceed with the build. The error message "ninja: error: loading 'build.ninja': No such file or
    directory" confirms this issue.
  • The process completed with an exit code 255, indicating a failure in the build step.

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  macOS
    ...
    
    206:  ##[endgroup]
    207:  ##[group]Run DO_PACKAGE=$( [[ ( "" || "6859" == "nightly" || "6859" =~ release/* ) && "xcode" != "clang++" ]] && echo true || echo false)
    208:  �[36;1mDO_PACKAGE=$( [[ ( "" || "6859" == "nightly" || "6859" =~ release/* ) && "xcode" != "clang++" ]] && echo true || echo false)�[0m
    209:  �[36;1mecho $DO_PACKAGE�[0m
    210:  �[36;1mif [[ "macos-14" == ubuntu-* ]]; then�[0m
    211:  �[36;1m  echo "tp_folder=Linux" >> $GITHUB_OUTPUT�[0m
    212:  �[36;1m  echo "xvfb=xvfb-run -a" >> $GITHUB_OUTPUT�[0m
    213:  �[36;1m  echo "static_boost=OFF" >> $GITHUB_OUTPUT�[0m
    214:  �[36;1m  # always run doxygen on Ubuntu (because its fast), to detect Doxygen errors�[0m
    ...
    
    273:  �[36;1m  sudo add-apt-repository universe�[0m
    274:  �[36;1m  sudo apt update   �[0m
    275:  �[36;1m  sudo apt-get -qq install -y build-essential cmake autoconf patch libtool git automake ninja-build xvfb ccache�[0m
    276:  �[36;1m  sudo apt-get -qq install -y qtbase5-dev libqt5svg5-dev libqt5opengl5-dev�[0m
    277:  �[36;1m  sudo apt-get -qq install -y libeigen3-dev libboost-random-dev libboost-regex-dev libboost-iostreams-dev \�[0m
    278:  �[36;1m   libboost-date-time-dev libboost-math-dev libxerces-c-dev zlib1g-dev libsvm-dev libbz2-dev coinor-libcoinmp-dev libhdf5-dev�[0m
    279:  �[36;1m�[0m
    280:  �[36;1m  echo "cmake_prefix=" >> $GITHUB_OUTPUT�[0m
    281:  �[36;1m  ## always run doxygen on Ubuntu to detect Doxygen errors�[0m
    ...
    
    656:  shell: /bin/bash --noprofile --norc -e -o pipefail {0}
    657:  env:
    658:  TERM: xterm-256color
    659:  Qt5_DIR: /opt/homebrew/opt/qt@5/lib/cmake/Qt5
    660:  ##[endgroup]
    661:  Submodule 'THIRDPARTY' (https://github.com/OpenMS/THIRDPARTY) registered for path 'THIRDPARTY'
    662:  Cloning into '/Users/runner/work/OpenMS/OpenMS/OpenMS/THIRDPARTY'...
    663:  Submodule path 'THIRDPARTY': checked out 'd6594eb775ebca0255f0129d946d7e582b37ac37'
    664:  ##[group]Run # do not fail immediately
    665:  �[36;1m# do not fail immediately�[0m
    666:  �[36;1mset +e�[0m
    667:  �[36;1mmkdir $GITHUB_WORKSPACE/OpenMS/bld/�[0m
    668:  �[36;1m ctest --output-on-failure -V -S ../OpenMS/OpenMS/tools/ci/cibuild.cmake�[0m
    669:  �[36;1mretVal=$?�[0m
    670:  �[36;1mif [ $retVal -ne 0 ]; then�[0m
    671:  �[36;1m    echo -e "\033[0;31m Errors in build:"�[0m
    ...
    
    685:  CI_PROVIDER: GitHub-Actions
    686:  CMAKE_GENERATOR: Ninja
    687:  SOURCE_DIRECTORY: /Users/runner/work/OpenMS/OpenMS/OpenMS
    688:  BUILD_NAME: 6859-MacOS-ARM64-xcode-15.0.1-class-topp-1724
    689:  ENABLE_STYLE_TESTING: OFF
    690:  ENABLE_TOPP_TESTING: ON
    691:  ENABLE_CLASS_TESTING: ON
    692:  ENABLE_DOCS: OFF
    693:  ENABLE_GCC_WERROR: OFF
    ...
    
    705:  CCACHE_COMPRESS: true
    706:  CCACHE_COMPRESSLEVEL: 12
    707:  CCACHE_MAXSIZE: 400M
    708:  CCACHE_SLOPPINESS: time_macros,include_file_ctime,include_file_mtime
    709:  CCACHE_COMPILERCHECK: content
    710:  WITH_THERMORAWFILEPARSER_TEST: OFF
    711:  Eigen3_DIR: 
    712:  ##[endgroup]
    713:  tools/ci/cibuild.cmake: Loading the following vars from ENV if available: ADDRESS_SANITIZER;CMAKE_PREFIX_PATH;CMAKE_BUILD_TYPE;CMAKE_GENERATOR_PLATFORM;Boost_DEBUG;BOOST_USE_STATIC;OPENMS_CONTRIB_LIBS;ENABLE_CLASS_TESTING;ENABLE_GCC_WERROR;ENABLE_STYLE_TESTING;ENABLE_TOPP_TESTING;ENABLE_TUTORIALS;ENABLE_UPDATE_CHECK;MT_ENABLE_OPENMP;SEARCH_ENGINES_DIRECTORY;PACKAGE_TYPE;PYOPENMS;PY_MEMLEAK_DISABLE;PY_NO_OPTIMIZATION;PY_NO_OUTPUT;PY_NUM_MODULES;PY_NUM_THREADS;WITH_GUI;WITH_THERMORAWFILEPARSER_TEST
    714:  -- CTEST_SOURCE_DIRECTORY: /Users/runner/work/OpenMS/OpenMS/OpenMS
    715:  tools/ci/cibuild.cmake: Found ADDRESS_SANITIZER with value Off
    716:  tools/ci/cibuild.cmake: Found CMAKE_PREFIX_PATH with value /opt/homebrew/opt/qt@5/lib/cmake;/opt/homebrew/opt/qt@5
    717:  tools/ci/cibuild.cmake: Found BOOST_USE_STATIC with value OFF
    718:  tools/ci/cibuild.cmake: Found OPENMS_CONTRIB_LIBS with value /Users/runner/work/OpenMS/OpenMS/OpenMS/contrib
    719:  tools/ci/cibuild.cmake: Found ENABLE_CLASS_TESTING with value ON
    720:  tools/ci/cibuild.cmake: Found ENABLE_GCC_WERROR with value OFF
    ...
    
    735:  -- Found Git: /opt/homebrew/bin/git (found version "2.46.0")
    736:  Updating the repository: /Users/runner/work/OpenMS/OpenMS/OpenMS
    737:  Use GIT repository type
    738:  New revision of repository is: c4084ddd4140c4fbe08ebfe2db683d0afe14f068
    739:  Gathering version information (one . per revision):
    740:  Configure project
    741:  Each . represents 1024 bytes of output
    742:  ... Size of output: 2K
    743:  Error(s) when configuring the project
    744:  Submit files
    745:  SubmitURL: https://cdash.openms.de/submit.php?project=OpenMS
    746:  Uploaded: /Users/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1337/Update.xml
    747:  Uploaded: /Users/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1337/Configure.xml
    748:  Submission successful
    749:  Build project
    750:  Each symbol represents 1024 bytes of output.
    751:  '!' represents an error and '*' a warning.
    752:  ! Size of output: 0K
    753:  Error(s) when building project
    754:  1 Compiler errors
    755:  1 Compiler warnings
    756:  Submit files
    757:  SubmitURL: https://cdash.openms.de/submit.php?project=OpenMS
    758:  Uploaded: /Users/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1337/Build.xml
    759:  Submission successful
    760:  CMake Error at /Users/runner/work/OpenMS/OpenMS/OpenMS/tools/ci/cibuild.cmake:175 (message):
    761:  There were errors: Please check the build results at:
    762:  https://cdash.openms.de/index.php?project=OpenMS&begin=2023-01-01&end=2030-01-01&filtercount=1&field1=buildname&compare1=63&value1=6859-MacOS-ARM64-xcode-15%2E0%2E1-class-topp-1724
    763:  �[0;31m Errors in build:
    764:  ninja: error: loading 'build.ninja': No such file or directory
    765:  ##[error]Process completed with exit code 255.
    

    ✨ CI feedback usage guide:

    The CI feedback tool (/checks) automatically triggers when a PR has a failed check.
    The tool analyzes the failed checks and provides several feedbacks:

    • Failed stage
    • Failed test name
    • Failure summary
    • Relevant error logs

    In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:

    /checks "https://github.com/{repo_name}/actions/runs/{run_number}/job/{job_number}"
    

    where {repo_name} is the name of the repository, {run_number} is the run number of the failed check, and {job_number} is the job number of the failed check.

    Configuration options

    • enable_auto_checks_feedback - if set to true, the tool will automatically provide feedback when a check is failed. Default is true.
    • excluded_checks_list - a list of checks to exclude from the feedback, for example: ["check1", "check2"]. Default is an empty list.
    • enable_help_text - if set to true, the tool will provide a help message with the feedback. Default is true.
    • persistent_comment - if set to true, the tool will overwrite a previous checks comment with the new feedback. Default is true.
    • final_update_message - if persistent_comment is true and updating a previous checks message, the tool will also create a new message: "Persistent checks updated to latest commit". Default is true.

    See more information about the checks tool in the docs.

    @qodo-code-review

    Copy link
    Copy Markdown
    Contributor

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    CI Failure Feedback 🧐

    Action: build-and-test (macos-13, xcode, 14.2)

    Failed stage: Build [❌]

    Failure summary:

    The action failed due to the following reasons:

  • There was an error during the build process as indicated by the message "Error(s) when building
    project".
  • Specifically, the error "ninja: error: loading 'build.ninja': No such file or directory" suggests
    that the build system could not find the 'build.ninja' file, which is essential for the Ninja build
    system to execute the build commands.
  • This missing file likely caused the build process to terminate with an error, leading to the
    action's failure.

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  macOS
    ...
    
    226:  ##[endgroup]
    227:  ##[group]Run DO_PACKAGE=$( [[ ( "" || "6859" == "nightly" || "6859" =~ release/* ) && "xcode" != "clang++" ]] && echo true || echo false)
    228:  �[36;1mDO_PACKAGE=$( [[ ( "" || "6859" == "nightly" || "6859" =~ release/* ) && "xcode" != "clang++" ]] && echo true || echo false)�[0m
    229:  �[36;1mecho $DO_PACKAGE�[0m
    230:  �[36;1mif [[ "macos-13" == ubuntu-* ]]; then�[0m
    231:  �[36;1m  echo "tp_folder=Linux" >> $GITHUB_OUTPUT�[0m
    232:  �[36;1m  echo "xvfb=xvfb-run -a" >> $GITHUB_OUTPUT�[0m
    233:  �[36;1m  echo "static_boost=OFF" >> $GITHUB_OUTPUT�[0m
    234:  �[36;1m  # always run doxygen on Ubuntu (because its fast), to detect Doxygen errors�[0m
    ...
    
    293:  �[36;1m  sudo add-apt-repository universe�[0m
    294:  �[36;1m  sudo apt update   �[0m
    295:  �[36;1m  sudo apt-get -qq install -y build-essential cmake autoconf patch libtool git automake ninja-build xvfb ccache�[0m
    296:  �[36;1m  sudo apt-get -qq install -y qtbase5-dev libqt5svg5-dev libqt5opengl5-dev�[0m
    297:  �[36;1m  sudo apt-get -qq install -y libeigen3-dev libboost-random-dev libboost-regex-dev libboost-iostreams-dev \�[0m
    298:  �[36;1m   libboost-date-time-dev libboost-math-dev libxerces-c-dev zlib1g-dev libsvm-dev libbz2-dev coinor-libcoinmp-dev libhdf5-dev�[0m
    299:  �[36;1m�[0m
    300:  �[36;1m  echo "cmake_prefix=" >> $GITHUB_OUTPUT�[0m
    301:  �[36;1m  ## always run doxygen on Ubuntu to detect Doxygen errors�[0m
    ...
    
    620:  shell: /bin/bash --noprofile --norc -e -o pipefail {0}
    621:  env:
    622:  TERM: xterm-256color
    623:  Qt5_DIR: /usr/local/opt/qt@5/lib/cmake/Qt5
    624:  ##[endgroup]
    625:  Submodule 'THIRDPARTY' (https://github.com/OpenMS/THIRDPARTY) registered for path 'THIRDPARTY'
    626:  Cloning into '/Users/runner/work/OpenMS/OpenMS/OpenMS/THIRDPARTY'...
    627:  Submodule path 'THIRDPARTY': checked out 'd6594eb775ebca0255f0129d946d7e582b37ac37'
    628:  ##[group]Run # do not fail immediately
    629:  �[36;1m# do not fail immediately�[0m
    630:  �[36;1mset +e�[0m
    631:  �[36;1mmkdir $GITHUB_WORKSPACE/OpenMS/bld/�[0m
    632:  �[36;1m ctest --output-on-failure -V -S ../OpenMS/OpenMS/tools/ci/cibuild.cmake�[0m
    633:  �[36;1mretVal=$?�[0m
    634:  �[36;1mif [ $retVal -ne 0 ]; then�[0m
    635:  �[36;1m    echo -e "\033[0;31m Errors in build:"�[0m
    ...
    
    649:  CI_PROVIDER: GitHub-Actions
    650:  CMAKE_GENERATOR: Ninja
    651:  SOURCE_DIRECTORY: /Users/runner/work/OpenMS/OpenMS/OpenMS
    652:  BUILD_NAME: 6859-MacOS-X64-xcode-14.2-class-topp-1724
    653:  ENABLE_STYLE_TESTING: OFF
    654:  ENABLE_TOPP_TESTING: ON
    655:  ENABLE_CLASS_TESTING: ON
    656:  ENABLE_DOCS: OFF
    657:  ENABLE_GCC_WERROR: OFF
    ...
    
    669:  CCACHE_COMPRESS: true
    670:  CCACHE_COMPRESSLEVEL: 12
    671:  CCACHE_MAXSIZE: 400M
    672:  CCACHE_SLOPPINESS: time_macros,include_file_ctime,include_file_mtime
    673:  CCACHE_COMPILERCHECK: content
    674:  WITH_THERMORAWFILEPARSER_TEST: OFF
    675:  Eigen3_DIR: 
    676:  ##[endgroup]
    677:  tools/ci/cibuild.cmake: Loading the following vars from ENV if available: ADDRESS_SANITIZER;CMAKE_PREFIX_PATH;CMAKE_BUILD_TYPE;CMAKE_GENERATOR_PLATFORM;Boost_DEBUG;BOOST_USE_STATIC;OPENMS_CONTRIB_LIBS;ENABLE_CLASS_TESTING;ENABLE_GCC_WERROR;ENABLE_STYLE_TESTING;ENABLE_TOPP_TESTING;ENABLE_TUTORIALS;ENABLE_UPDATE_CHECK;MT_ENABLE_OPENMP;SEARCH_ENGINES_DIRECTORY;PACKAGE_TYPE;PYOPENMS;PY_MEMLEAK_DISABLE;PY_NO_OPTIMIZATION;PY_NO_OUTPUT;PY_NUM_MODULES;PY_NUM_THREADS;WITH_GUI;WITH_THERMORAWFILEPARSER_TEST
    678:  -- CTEST_SOURCE_DIRECTORY: /Users/runner/work/OpenMS/OpenMS/OpenMS
    679:  -- CTEST_BINARY_DIRECTORY: /Users/runner/work/OpenMS/OpenMS/OpenMS/bld
    680:  tools/ci/cibuild.cmake: Found ADDRESS_SANITIZER with value Off
    681:  tools/ci/cibuild.cmake: Found CMAKE_PREFIX_PATH with value /usr/local/opt/qt@5/lib/cmake;/usr/local/opt/qt@5
    682:  tools/ci/cibuild.cmake: Found BOOST_USE_STATIC with value OFF
    683:  tools/ci/cibuild.cmake: Found OPENMS_CONTRIB_LIBS with value /Users/runner/work/OpenMS/OpenMS/OpenMS/contrib
    684:  tools/ci/cibuild.cmake: Found ENABLE_CLASS_TESTING with value ON
    685:  tools/ci/cibuild.cmake: Found ENABLE_GCC_WERROR with value OFF
    ...
    
    699:  -- Found Git: /usr/local/bin/git (found version "2.46.0")
    700:  Updating the repository: /Users/runner/work/OpenMS/OpenMS/OpenMS
    701:  Use GIT repository type
    702:  New revision of repository is: c4084ddd4140c4fbe08ebfe2db683d0afe14f068
    703:  Gathering version information (one . per revision):
    704:  Configure project
    705:  Each . represents 1024 bytes of output
    706:  ... Size of output: 2K
    707:  Error(s) when configuring the project
    708:  Submit files
    709:  SubmitURL: https://cdash.openms.de/submit.php?project=OpenMS
    710:  Uploaded: /Users/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1338/Update.xml
    711:  Uploaded: /Users/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1338/Configure.xml
    712:  Submission successful
    713:  Build project
    714:  Each symbol represents 1024 bytes of output.
    715:  '!' represents an error and '*' a warning.
    716:  ! Size of output: 0K
    717:  Error(s) when building project
    718:  1 Compiler errors
    719:  1 Compiler warnings
    720:  Submit files
    721:  SubmitURL: https://cdash.openms.de/submit.php?project=OpenMS
    722:  CMake Error at /Users/runner/work/OpenMS/OpenMS/OpenMS/tools/ci/cibuild.cmake:175 (message):
    723:  Uploaded: /Users/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1338/Build.xml
    724:  There were errors: Please check the build results at:
    725:  Submission successful
    726:  https://cdash.openms.de/index.php?project=OpenMS&begin=2023-01-01&end=2030-01-01&filtercount=1&field1=buildname&compare1=63&value1=6859-MacOS-X64-xcode-14%2E2-class-topp-1724
    727:  �[0;31m Errors in build:
    728:  ninja: error: loading 'build.ninja': No such file or directory
    729:  ##[error]Process completed with exit code 255.
    

    ✨ CI feedback usage guide:

    The CI feedback tool (/checks) automatically triggers when a PR has a failed check.
    The tool analyzes the failed checks and provides several feedbacks:

    • Failed stage
    • Failed test name
    • Failure summary
    • Relevant error logs

    In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:

    /checks "https://github.com/{repo_name}/actions/runs/{run_number}/job/{job_number}"
    

    where {repo_name} is the name of the repository, {run_number} is the run number of the failed check, and {job_number} is the job number of the failed check.

    Configuration options

    • enable_auto_checks_feedback - if set to true, the tool will automatically provide feedback when a check is failed. Default is true.
    • excluded_checks_list - a list of checks to exclude from the feedback, for example: ["check1", "check2"]. Default is an empty list.
    • enable_help_text - if set to true, the tool will provide a help message with the feedback. Default is true.
    • persistent_comment - if set to true, the tool will overwrite a previous checks comment with the new feedback. Default is true.
    • final_update_message - if persistent_comment is true and updating a previous checks message, the tool will also create a new message: "Persistent checks updated to latest commit". Default is true.

    See more information about the checks tool in the docs.

    @qodo-code-review

    Copy link
    Copy Markdown
    Contributor

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    CI Failure Feedback 🧐

    Action: build-and-test (ubuntu-22.04, clang++, 15)

    Failed stage: Test [❌]

    Failed test name: Doxygen_Warning_test

    Failure summary:

    The action failed because the test Doxygen_Warning_test did not pass. The failure occurred due to
    the following reasons:

  • The doxygen-error.log file was not up to date, which is necessary for the Doxygen_Warning_test to
    run successfully.
  • The test specifically checks for Doxygen errors and warnings, indicating that there might be issues
    in the documentation generation process.

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  Ubuntu
    ...
    
    192:  ##[endgroup]
    193:  ##[group]Run DO_PACKAGE=$( [[ ( "" || "6859" == "nightly" || "6859" =~ release/* ) && "clang++" != "clang++" ]] && echo true || echo false)
    194:  �[36;1mDO_PACKAGE=$( [[ ( "" || "6859" == "nightly" || "6859" =~ release/* ) && "clang++" != "clang++" ]] && echo true || echo false)�[0m
    195:  �[36;1mecho $DO_PACKAGE�[0m
    196:  �[36;1mif [[ "ubuntu-22.04" == ubuntu-* ]]; then�[0m
    197:  �[36;1m  echo "tp_folder=Linux" >> $GITHUB_OUTPUT�[0m
    198:  �[36;1m  echo "xvfb=xvfb-run -a" >> $GITHUB_OUTPUT�[0m
    199:  �[36;1m  echo "static_boost=OFF" >> $GITHUB_OUTPUT�[0m
    200:  �[36;1m  # always run doxygen on Ubuntu (because its fast), to detect Doxygen errors�[0m
    ...
    
    259:  �[36;1m  sudo add-apt-repository universe�[0m
    260:  �[36;1m  sudo apt update   �[0m
    261:  �[36;1m  sudo apt-get -qq install -y build-essential cmake autoconf patch libtool git automake ninja-build xvfb ccache�[0m
    262:  �[36;1m  sudo apt-get -qq install -y qtbase5-dev libqt5svg5-dev libqt5opengl5-dev�[0m
    263:  �[36;1m  sudo apt-get -qq install -y libeigen3-dev libboost-random-dev libboost-regex-dev libboost-iostreams-dev \�[0m
    264:  �[36;1m   libboost-date-time-dev libboost-math-dev libxerces-c-dev zlib1g-dev libsvm-dev libbz2-dev coinor-libcoinmp-dev libhdf5-dev�[0m
    265:  �[36;1m�[0m
    266:  �[36;1m  echo "cmake_prefix=" >> $GITHUB_OUTPUT�[0m
    267:  �[36;1m  ## always run doxygen on Ubuntu to detect Doxygen errors�[0m
    ...
    
    1029:  �[36;1mdone�[0m
    1030:  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
    1031:  env:
    1032:  TERM: xterm-256color
    1033:  ##[endgroup]
    1034:  Submodule 'THIRDPARTY' (https://github.com/OpenMS/THIRDPARTY) registered for path 'THIRDPARTY'
    1035:  Cloning into '/home/runner/work/OpenMS/OpenMS/OpenMS/THIRDPARTY'...
    1036:  Submodule path 'THIRDPARTY': checked out 'd6594eb775ebca0255f0129d946d7e582b37ac37'
    1037:  ##[group]Run # do not fail immediately
    1038:  �[36;1m# do not fail immediately�[0m
    1039:  �[36;1mset +e�[0m
    1040:  �[36;1mmkdir $GITHUB_WORKSPACE/OpenMS/bld/�[0m
    1041:  �[36;1mxvfb-run -a ctest --output-on-failure -V -S ../OpenMS/OpenMS/tools/ci/cibuild.cmake�[0m
    1042:  �[36;1mretVal=$?�[0m
    1043:  �[36;1mif [ $retVal -ne 0 ]; then�[0m
    1044:  �[36;1m    echo -e "\033[0;31m Errors in build:"�[0m
    ...
    
    1057:  CI_PROVIDER: GitHub-Actions
    1058:  CMAKE_GENERATOR: Ninja
    1059:  SOURCE_DIRECTORY: /home/runner/work/OpenMS/OpenMS/OpenMS
    1060:  BUILD_NAME: 6859-Linux-X64-clang++-15-class-topp-1724
    1061:  ENABLE_STYLE_TESTING: OFF
    1062:  ENABLE_TOPP_TESTING: ON
    1063:  ENABLE_CLASS_TESTING: ON
    1064:  ENABLE_DOCS: ON
    1065:  ENABLE_GCC_WERROR: OFF
    ...
    
    1079:  CCACHE_MAXSIZE: 400M
    1080:  CCACHE_SLOPPINESS: time_macros,include_file_ctime,include_file_mtime
    1081:  CCACHE_COMPILERCHECK: content
    1082:  WITH_THERMORAWFILEPARSER_TEST: OFF
    1083:  Eigen3_DIR: 
    1084:  ##[endgroup]
    1085:  -- CTEST_SOURCE_DIRECTORY: /home/runner/work/OpenMS/OpenMS/OpenMS
    1086:  -- CTEST_BINARY_DIRECTORY: /home/runner/work/OpenMS/OpenMS/OpenMS/bld
    1087:  tools/ci/cibuild.cmake: Loading the following vars from ENV if available: ADDRESS_SANITIZER;CMAKE_PREFIX_PATH;CMAKE_BUILD_TYPE;CMAKE_GENERATOR_PLATFORM;Boost_DEBUG;BOOST_USE_STATIC;OPENMS_CONTRIB_LIBS;ENABLE_CLASS_TESTING;ENABLE_GCC_WERROR;ENABLE_STYLE_TESTING;ENABLE_TOPP_TESTING;ENABLE_TUTORIALS;ENABLE_UPDATE_CHECK;MT_ENABLE_OPENMP;SEARCH_ENGINES_DIRECTORY;PACKAGE_TYPE;PYOPENMS;PY_MEMLEAK_DISABLE;PY_NO_OPTIMIZATION;PY_NO_OUTPUT;PY_NUM_MODULES;PY_NUM_THREADS;WITH_GUI;WITH_THERMORAWFILEPARSER_TEST
    1088:  tools/ci/cibuild.cmake: Found ADDRESS_SANITIZER with value Off
    1089:  tools/ci/cibuild.cmake: Found CMAKE_PREFIX_PATH with value 
    1090:  tools/ci/cibuild.cmake: Found BOOST_USE_STATIC with value OFF
    1091:  tools/ci/cibuild.cmake: Found OPENMS_CONTRIB_LIBS with value /home/runner/work/OpenMS/OpenMS/OpenMS/contrib
    1092:  tools/ci/cibuild.cmake: Found ENABLE_CLASS_TESTING with value ON
    1093:  tools/ci/cibuild.cmake: Found ENABLE_GCC_WERROR with value OFF
    ...
    
    1114:  ....... Size of output: 6K
    1115:  Submit files
    1116:  SubmitURL: https://cdash.openms.de/submit.php?project=OpenMS
    1117:  Uploaded: /home/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1335/Update.xml
    1118:  Uploaded: /home/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1335/Configure.xml
    1119:  Submission successful
    1120:  Build project
    1121:  Each symbol represents 1024 bytes of output.
    1122:  '!' represents an error and '*' a warning.
    ...
    
    1136:  ..................................................  Size: 722K
    1137:  ..................................................  Size: 786K
    1138:  ..................................................  Size: 850K
    1139:  ..................................................  Size: 850K
    1140:  ..................................................  Size: 914K
    1141:  ..................................................  Size: 978K
    1142:  ..................................................  Size: 1042K
    1143:  ........................................... Size of output: 1043K
    1144:  0 Compiler errors
    ...
    
    1319:  Start  656: TOPPWRITEINI_IDFilter
    1320:  74/2351 Test  #654: TOPPWRITEINI_IDFileConverter ...............................   Passed    0.03 sec
    1321:  Start  658: TOPPWRITEINI_IDMapper
    1322:  75/2351 Test  #658: TOPPWRITEINI_IDMapper ......................................   Passed    0.02 sec
    1323:  Start  660: TOPPWRITEINI_IDMassAccuracy
    1324:  76/2351 Test  #660: TOPPWRITEINI_IDMassAccuracy ................................   Passed    0.02 sec
    1325:  Start  662: TOPPWRITEINI_IDMerger
    1326:  77/2351 Test  #662: TOPPWRITEINI_IDMerger ......................................   Passed    0.02 sec
    1327:  Start  664: TOPPWRITEINI_IDPosteriorErrorProbability
    1328:  78/2351 Test  #664: TOPPWRITEINI_IDPosteriorErrorProbability ...................   Passed    0.02 sec
    ...
    
    2337:  Start 1950: TOPP_FalseDiscoveryRate_4
    2338:  583/2351 Test #1948: TOPP_FalseDiscoveryRate_3 ..................................   Passed    0.21 sec
    2339:  Start 1952: TOPP_FalseDiscoveryRate_5
    2340:  584/2351 Test #1944: TOPP_FalseDiscoveryRate_1 ..................................   Passed    0.26 sec
    2341:  Start 1954: TOPP_FalseDiscoveryRate_6
    2342:  585/2351 Test #1950: TOPP_FalseDiscoveryRate_4 ..................................   Passed    0.17 sec
    2343:  Start 1956: TOPP_FalseDiscoveryRate_7
    2344:  586/2351 Test #1954: TOPP_FalseDiscoveryRate_6 ..................................   Passed    0.12 sec
    2345:  Start 1958: TOPP_IDPosteriorErrorProbability_1
    2346:  587/2351 Test #1952: TOPP_FalseDiscoveryRate_5 ..................................   Passed    0.16 sec
    2347:  Start 1960: TOPP_IDPosteriorErrorProbability_2
    2348:  588/2351 Test #1960: TOPP_IDPosteriorErrorProbability_2 .........................   Passed    0.09 sec
    2349:  Start 1962: TOPP_IDPosteriorErrorProbability_3
    2350:  589/2351 Test #1962: TOPP_IDPosteriorErrorProbability_3 .........................   Passed    0.02 sec
    2351:  Start 1964: TOPP_IDPosteriorErrorProbability_4
    2352:  590/2351 Test #1956: TOPP_FalseDiscoveryRate_7 ..................................   Passed    0.15 sec
    2353:  Start 1966: TOPP_IDPosteriorErrorProbability_5
    2354:  591/2351 Test #1958: TOPP_IDPosteriorErrorProbability_1 .........................   Passed    0.14 sec
    2355:  Start 1968: TOPP_IDPosteriorErrorProbability_6
    2356:  592/2351 Test #1964: TOPP_IDPosteriorErrorProbability_4 .........................   Passed    0.02 sec
    2357:  Start 1971: TOPP_IDPosteriorErrorProbability_8
    2358:  593/2351 Test #1971: TOPP_IDPosteriorErrorProbability_8 .........................   Passed    0.02 sec
    2359:  Start 1973: TOPP_ProteinQuantifier_1
    2360:  594/2351 Test #1973: TOPP_ProteinQuantifier_1 ...................................   Passed    0.03 sec
    2361:  Start 1976: TOPP_ProteinQuantifier_2
    2362:  595/2351 Test #1976: TOPP_ProteinQuantifier_2 ...................................   Passed    0.03 sec
    2363:  Start 1979: TOPP_ProteinQuantifier_3
    2364:  596/2351 Test #1966: TOPP_IDPosteriorErrorProbability_5 .........................   Passed    0.09 sec
    2365:  Start 1982: TOPP_ProteinQuantifier_4
    2366:  597/2351 Test #1982: TOPP_ProteinQuantifier_4 ...................................   Passed    0.02 sec
    2367:  Start 1984: TOPP_ProteinQuantifier_5
    2368:  598/2351 Test #1984: TOPP_ProteinQuantifier_5 ...................................   Passed    0.02 sec
    2369:  Start 1986: TOPP_ProteinQuantifier_6
    2370:  599/2351 Test #1986: TOPP_ProteinQuantifier_6 ...................................   Passed    0.02 sec
    2371:  Start 1988: TOPP_ProteinQuantifier_7
    2372:  600/2351 Test #1968: TOPP_IDPosteriorErrorProbability_6 .........................   Passed    0.15 sec
    ...
    
    3119:  Start  249: LinearRegression_test
    3120:  974/2351 Test  #249: LinearRegression_test ......................................   Passed    0.02 sec
    3121:  Start  250: MathFunctions_test
    3122:  975/2351 Test  #250: MathFunctions_test .........................................   Passed    0.02 sec
    3123:  Start  251: NNLS_test
    3124:  976/2351 Test  #251: NNLS_test ..................................................   Passed    0.02 sec
    3125:  Start  252: NonNegativeLeastSquaresSolver_test
    3126:  977/2351 Test  #252: NonNegativeLeastSquaresSolver_test .........................   Passed    0.02 sec
    3127:  Start  253: PosteriorErrorProbabilityModel_test
    3128:  978/2351 Test  #239: BilinearInterpolation_test .................................   Passed    0.38 sec
    3129:  Start  254: QuadraticRegression_test
    3130:  979/2351 Test  #254: QuadraticRegression_test ...................................   Passed    0.02 sec
    3131:  Start  255: RANSAC_test
    3132:  980/2351 Test  #255: RANSAC_test ................................................   Passed    0.02 sec
    3133:  Start  256: RANSACModel_test
    3134:  981/2351 Test  #256: RANSACModel_test ...........................................   Passed    0.02 sec
    3135:  Start  257: RANSACModelLinear_test
    3136:  982/2351 Test  #253: PosteriorErrorProbabilityModel_test ........................   Passed    0.14 sec
    ...
    
    3715:  Start  547: CachedMzML_test
    3716:  1272/2351 Test  #547: CachedMzML_test ............................................   Passed    0.32 sec
    3717:  Start  548: CachedMzMLHandler_test
    3718:  1273/2351 Test  #548: CachedMzMLHandler_test .....................................   Passed    0.39 sec
    3719:  Start  549: Contaminants_test
    3720:  1274/2351 Test  #549: Contaminants_test ..........................................   Passed    0.03 sec
    3721:  Start  550: DBSuitability_test
    3722:  1275/2351 Test  #550: DBSuitability_test .........................................   Passed    0.02 sec
    3723:  Start  551: FragmentMassError_test
    3724:  1276/2351 Test  #551: FragmentMassError_test .....................................   Passed    0.03 sec
    ...
    
    3847:  Start  657: TOPPWRITEINI_IDFilter_SectionName
    3848:  1338/2351 Test  #655: TOPPWRITEINI_IDFileConverter_SectionName ...................   Passed    0.00 sec
    3849:  Start  659: TOPPWRITEINI_IDMapper_SectionName
    3850:  1339/2351 Test  #659: TOPPWRITEINI_IDMapper_SectionName ..........................   Passed    0.00 sec
    3851:  Start  661: TOPPWRITEINI_IDMassAccuracy_SectionName
    3852:  1340/2351 Test  #661: TOPPWRITEINI_IDMassAccuracy_SectionName ....................   Passed    0.00 sec
    3853:  Start  663: TOPPWRITEINI_IDMerger_SectionName
    3854:  1341/2351 Test  #657: TOPPWRITEINI_IDFilter_SectionName ..........................   Passed    0.01 sec
    3855:  Start  665: TOPPWRITEINI_IDPosteriorErrorProbability_SectionName
    3856:  1342/2351 Test  #663: TOPPWRITEINI_IDMerger_SectionName ..........................   Passed    0.00 sec
    3857:  Start  667: TOPPWRITEINI_IDRipper_SectionName
    3858:  1343/2351 Test  #665: TOPPWRITEINI_IDPosteriorErrorProbability_SectionName .......   Passed    0.00 sec
    ...
    
    4137:  Start  903: TOPPWRITECTD_IDFilter
    4138:  1483/2351 Test  #902: TOPPWRITECTD_IDFileConverter ...............................   Passed    0.03 sec
    4139:  Start  904: TOPPWRITECTD_IDMapper
    4140:  1484/2351 Test  #904: TOPPWRITECTD_IDMapper ......................................   Passed    0.02 sec
    4141:  Start  905: TOPPWRITECTD_IDMassAccuracy
    4142:  1485/2351 Test  #905: TOPPWRITECTD_IDMassAccuracy ................................   Passed    0.03 sec
    4143:  Start  906: TOPPWRITECTD_IDMerger
    4144:  1486/2351 Test  #906: TOPPWRITECTD_IDMerger ......................................   Passed    0.03 sec
    4145:  Start  907: TOPPWRITECTD_IDPosteriorErrorProbability
    4146:  1487/2351 Test  #903: TOPPWRITECTD_IDFilter ......................................   Passed    0.12 sec
    4147:  Start  908: TOPPWRITECTD_IDRipper
    4148:  1488/2351 Test  #907: TOPPWRITECTD_IDPosteriorErrorProbability ...................   Passed    0.03 sec
    ...
    
    5361:  Start 1951: TOPP_FalseDiscoveryRate_4_out1
    5362:  2095/2351 Test #1951: TOPP_FalseDiscoveryRate_4_out1 .............................   Passed    0.04 sec
    5363:  Start 1953: TOPP_FalseDiscoveryRate_5_out1
    5364:  2096/2351 Test #1953: TOPP_FalseDiscoveryRate_5_out1 .............................   Passed    0.04 sec
    5365:  Start 1955: TOPP_FalseDiscoveryRate_6_out1
    5366:  2097/2351 Test #1949: TOPP_FalseDiscoveryRate_3_out1 .............................   Passed    0.10 sec
    5367:  Start 1957: TOPP_FalseDiscoveryRate_7_out1
    5368:  2098/2351 Test #1955: TOPP_FalseDiscoveryRate_6_out1 .............................   Passed    0.03 sec
    5369:  Start 1959: TOPP_IDPosteriorErrorProbability_1_out1
    5370:  2099/2351 Test #1957: TOPP_FalseDiscoveryRate_7_out1 .............................   Passed    0.02 sec
    5371:  Start 1961: TOPP_IDPosteriorErrorProbability_2_out1
    5372:  2100/2351 Test #1959: TOPP_IDPosteriorErrorProbability_1_out1 ....................   Passed    0.02 sec
    5373:  Start 1963: TOPP_IDPosteriorErrorProbability_3_out1
    5374:  2101/2351 Test #1963: TOPP_IDPosteriorErrorProbability_3_out1 ....................   Passed    0.02 sec
    5375:  Start 1965: TOPP_IDPosteriorErrorProbability_4_out1
    5376:  2102/2351 Test #1961: TOPP_IDPosteriorErrorProbability_2_out1 ....................   Passed    0.04 sec
    5377:  Start 1967: TOPP_IDPosteriorErrorProbability_5_out1
    5378:  2103/2351 Test #1965: TOPP_IDPosteriorErrorProbability_4_out1 ....................   Passed    0.02 sec
    5379:  Start 1969: TOPP_IDPosteriorErrorProbability_6_out1
    5380:  2104/2351 Test #1967: TOPP_IDPosteriorErrorProbability_5_out1 ....................   Passed    0.02 sec
    5381:  Start 1970: TOPP_IDPosteriorErrorProbability_7
    5382:  2105/2351 Test #1969: TOPP_IDPosteriorErrorProbability_6_out1 ....................   Passed    0.02 sec
    5383:  Start 1972: TOPP_IDPosteriorErrorProbability_8_out1
    5384:  2106/2351 Test #1972: TOPP_IDPosteriorErrorProbability_8_out1 ....................   Passed    0.02 sec
    ...
    
    5392:  2110/2351 Test #1978: TOPP_ProteinQuantifier_2_out2 ..............................   Passed    0.01 sec
    5393:  Start 1980: TOPP_ProteinQuantifier_3_out1
    5394:  2111/2351 Test #1980: TOPP_ProteinQuantifier_3_out1 ..............................   Passed    0.01 sec
    5395:  Start 1981: TOPP_ProteinQuantifier_3_out2
    5396:  2112/2351 Test #1981: TOPP_ProteinQuantifier_3_out2 ..............................   Passed    0.02 sec
    5397:  Start 1983: TOPP_ProteinQuantifier_4_out1
    5398:  2113/2351 Test #1983: TOPP_ProteinQuantifier_4_out1 ..............................   Passed    0.02 sec
    5399:  Start 1985: TOPP_ProteinQuantifier_5_out1
    5400:  2114/2351 Test #1970: TOPP_IDPosteriorErrorProbability_7 .........................   Passed    0.14 sec
    ...
    
    5796:  2312/2351 Test #2287: TOPP_Epifany_1_out .........................................   Passed    0.22 sec
    5797:  Start 2315: TOPP_MassTraceExtractor_3_flat_json_out
    5798:  2313/2351 Test #2313: TOPP_MassTraceExtractor_2_out_flat_json ....................   Passed    0.02 sec
    5799:  Start 2317: TOPP_MassTraceExtractor_3_json_out
    5800:  2314/2351 Test #2317: TOPP_MassTraceExtractor_3_json_out .........................   Passed    0.02 sec
    5801:  Start 2318: TOPP_ExecutePipeline_1
    5802:  2315/2351 Test #2315: TOPP_MassTraceExtractor_3_flat_json_out ....................   Passed    0.02 sec
    5803:  Start 2319: Doxygen_Warning_test
    5804:  2316/2351 Test #2319: Doxygen_Warning_test .......................................***Failed    0.00 sec
    5805:  Note: Please make sure to run the 'doc' target before running this test, so the 'doxygen-error.log' is up to date.
    5806:  Doxygen version: 1.9.1
    5807:  Opening '/home/runner/work/OpenMS/OpenMS/OpenMS/bld/doc/doxygen/doxygen-error.log' to check for doxygen errors...
    5808:  ----------- ERRORS/WARNINGS -----------------
    ...
    
    5878:  Start 2350: Tutorial_TOPP
    5879:  2347/2351 Test #2350: Tutorial_TOPP ..............................................   Passed    0.02 sec
    5880:  Start 2351: Tutorial_Unlabeled
    5881:  2348/2351 Test #2351: Tutorial_Unlabeled .........................................   Passed    0.02 sec
    5882:  2349/2351 Test  #464: SimpleSVM_test .............................................   Passed   33.81 sec
    5883:  2350/2351 Test #2318: TOPP_ExecutePipeline_1 .....................................   Passed    4.62 sec
    5884:  Start   22: StopWatch_test
    5885:  2351/2351 Test   #22: StopWatch_test .............................................   Passed    0.35 sec
    5886:  99% tests passed, 1 tests failed out of 2351
    5887:  Total Test time (real) = 112.91 sec
    5888:  The following tests FAILED:
    5889:  2319 - Doxygen_Warning_test (Failed)
    5890:  Internal ctest changing into directory: /home/runner/work/OpenMS/OpenMS/OpenMS/bld/doc/doxygen
    5891:  Submit files
    5892:  Send to group: Continuous
    5893:  SubmitURL: https://cdash.openms.de/submit.php?project=OpenMS
    5894:  Uploaded: /home/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1335/Test.xml
    5895:  Uploaded: /home/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1335/Done.xml
    5896:  Submission successful
    5897:  CMake Error at /home/runner/work/OpenMS/OpenMS/OpenMS/tools/ci/citest.cmake:44 (message):
    5898:  There were errors: Please check the test results at:
    5899:  https://cdash.openms.de/index.php?project=OpenMS&begin=2023-01-01&end=2030-01-01&filtercount=1&field1=buildname&compare1=63&value1=6859-Linux-X64-clang%2B%2B-15-class-topp-1724
    5900:  ##[error]Process completed with exit code 255.
    

    ✨ CI feedback usage guide:

    The CI feedback tool (/checks) automatically triggers when a PR has a failed check.
    The tool analyzes the failed checks and provides several feedbacks:

    • Failed stage
    • Failed test name
    • Failure summary
    • Relevant error logs

    In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:

    /checks "https://github.com/{repo_name}/actions/runs/{run_number}/job/{job_number}"
    

    where {repo_name} is the name of the repository, {run_number} is the run number of the failed check, and {job_number} is the job number of the failed check.

    Configuration options

    • enable_auto_checks_feedback - if set to true, the tool will automatically provide feedback when a check is failed. Default is true.
    • excluded_checks_list - a list of checks to exclude from the feedback, for example: ["check1", "check2"]. Default is an empty list.
    • enable_help_text - if set to true, the tool will provide a help message with the feedback. Default is true.
    • persistent_comment - if set to true, the tool will overwrite a previous checks comment with the new feedback. Default is true.
    • final_update_message - if persistent_comment is true and updating a previous checks message, the tool will also create a new message: "Persistent checks updated to latest commit". Default is true.

    See more information about the checks tool in the docs.

    @qodo-code-review

    Copy link
    Copy Markdown
    Contributor

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    CI Failure Feedback 🧐

    Action: build-and-test (ubuntu-22.04, g++, 11)

    Failed stage: Test [❌]

    Failed test name: Doxygen_Warning_test

    Failure summary:

    The action failed because the test Doxygen_Warning_test failed.

  • The failure occurred because there were errors or warnings detected in the Doxygen documentation
    generation process.
  • The log suggests ensuring that the 'doc' target is run before executing this test to update the
    doxygen-error.log.

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  Ubuntu
    ...
    
    192:  ##[endgroup]
    193:  ##[group]Run DO_PACKAGE=$( [[ ( "" || "6859" == "nightly" || "6859" =~ release/* ) && "g++" != "clang++" ]] && echo true || echo false)
    194:  �[36;1mDO_PACKAGE=$( [[ ( "" || "6859" == "nightly" || "6859" =~ release/* ) && "g++" != "clang++" ]] && echo true || echo false)�[0m
    195:  �[36;1mecho $DO_PACKAGE�[0m
    196:  �[36;1mif [[ "ubuntu-22.04" == ubuntu-* ]]; then�[0m
    197:  �[36;1m  echo "tp_folder=Linux" >> $GITHUB_OUTPUT�[0m
    198:  �[36;1m  echo "xvfb=xvfb-run -a" >> $GITHUB_OUTPUT�[0m
    199:  �[36;1m  echo "static_boost=OFF" >> $GITHUB_OUTPUT�[0m
    200:  �[36;1m  # always run doxygen on Ubuntu (because its fast), to detect Doxygen errors�[0m
    ...
    
    259:  �[36;1m  sudo add-apt-repository universe�[0m
    260:  �[36;1m  sudo apt update   �[0m
    261:  �[36;1m  sudo apt-get -qq install -y build-essential cmake autoconf patch libtool git automake ninja-build xvfb ccache�[0m
    262:  �[36;1m  sudo apt-get -qq install -y qtbase5-dev libqt5svg5-dev libqt5opengl5-dev�[0m
    263:  �[36;1m  sudo apt-get -qq install -y libeigen3-dev libboost-random-dev libboost-regex-dev libboost-iostreams-dev \�[0m
    264:  �[36;1m   libboost-date-time-dev libboost-math-dev libxerces-c-dev zlib1g-dev libsvm-dev libbz2-dev coinor-libcoinmp-dev libhdf5-dev�[0m
    265:  �[36;1m�[0m
    266:  �[36;1m  echo "cmake_prefix=" >> $GITHUB_OUTPUT�[0m
    267:  �[36;1m  ## always run doxygen on Ubuntu to detect Doxygen errors�[0m
    ...
    
    1028:  �[36;1mdone�[0m
    1029:  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
    1030:  env:
    1031:  TERM: xterm-256color
    1032:  ##[endgroup]
    1033:  Submodule 'THIRDPARTY' (https://github.com/OpenMS/THIRDPARTY) registered for path 'THIRDPARTY'
    1034:  Cloning into '/home/runner/work/OpenMS/OpenMS/OpenMS/THIRDPARTY'...
    1035:  Submodule path 'THIRDPARTY': checked out 'd6594eb775ebca0255f0129d946d7e582b37ac37'
    1036:  ##[group]Run # do not fail immediately
    1037:  �[36;1m# do not fail immediately�[0m
    1038:  �[36;1mset +e�[0m
    1039:  �[36;1mmkdir $GITHUB_WORKSPACE/OpenMS/bld/�[0m
    1040:  �[36;1mxvfb-run -a ctest --output-on-failure -V -S ../OpenMS/OpenMS/tools/ci/cibuild.cmake�[0m
    1041:  �[36;1mretVal=$?�[0m
    1042:  �[36;1mif [ $retVal -ne 0 ]; then�[0m
    1043:  �[36;1m    echo -e "\033[0;31m Errors in build:"�[0m
    ...
    
    1056:  CI_PROVIDER: GitHub-Actions
    1057:  CMAKE_GENERATOR: Ninja
    1058:  SOURCE_DIRECTORY: /home/runner/work/OpenMS/OpenMS/OpenMS
    1059:  BUILD_NAME: 6859-Linux-X64-g++-11-class-topp-1724
    1060:  ENABLE_STYLE_TESTING: OFF
    1061:  ENABLE_TOPP_TESTING: ON
    1062:  ENABLE_CLASS_TESTING: ON
    1063:  ENABLE_DOCS: ON
    1064:  ENABLE_GCC_WERROR: OFF
    ...
    
    1078:  CCACHE_MAXSIZE: 400M
    1079:  CCACHE_SLOPPINESS: time_macros,include_file_ctime,include_file_mtime
    1080:  CCACHE_COMPILERCHECK: content
    1081:  WITH_THERMORAWFILEPARSER_TEST: OFF
    1082:  Eigen3_DIR: 
    1083:  ##[endgroup]
    1084:  -- CTEST_SOURCE_DIRECTORY: /home/runner/work/OpenMS/OpenMS/OpenMS
    1085:  -- CTEST_BINARY_DIRECTORY: /home/runner/work/OpenMS/OpenMS/OpenMS/bld
    1086:  tools/ci/cibuild.cmake: Loading the following vars from ENV if available: ADDRESS_SANITIZER;CMAKE_PREFIX_PATH;CMAKE_BUILD_TYPE;CMAKE_GENERATOR_PLATFORM;Boost_DEBUG;BOOST_USE_STATIC;OPENMS_CONTRIB_LIBS;ENABLE_CLASS_TESTING;ENABLE_GCC_WERROR;ENABLE_STYLE_TESTING;ENABLE_TOPP_TESTING;ENABLE_TUTORIALS;ENABLE_UPDATE_CHECK;MT_ENABLE_OPENMP;SEARCH_ENGINES_DIRECTORY;PACKAGE_TYPE;PYOPENMS;PY_MEMLEAK_DISABLE;PY_NO_OPTIMIZATION;PY_NO_OUTPUT;PY_NUM_MODULES;PY_NUM_THREADS;WITH_GUI;WITH_THERMORAWFILEPARSER_TEST
    1087:  tools/ci/cibuild.cmake: Found ADDRESS_SANITIZER with value Off
    1088:  tools/ci/cibuild.cmake: Found CMAKE_PREFIX_PATH with value 
    1089:  tools/ci/cibuild.cmake: Found BOOST_USE_STATIC with value OFF
    1090:  tools/ci/cibuild.cmake: Found OPENMS_CONTRIB_LIBS with value /home/runner/work/OpenMS/OpenMS/OpenMS/contrib
    1091:  tools/ci/cibuild.cmake: Found ENABLE_CLASS_TESTING with value ON
    1092:  tools/ci/cibuild.cmake: Found ENABLE_GCC_WERROR with value OFF
    ...
    
    1113:  ....... Size of output: 6K
    1114:  Submit files
    1115:  SubmitURL: https://cdash.openms.de/submit.php?project=OpenMS
    1116:  Uploaded: /home/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1337/Update.xml
    1117:  Uploaded: /home/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1337/Configure.xml
    1118:  Submission successful
    1119:  Build project
    1120:  Each symbol represents 1024 bytes of output.
    1121:  '!' represents an error and '*' a warning.
    ...
    
    1135:  ..................................................  Size: 722K
    1136:  ..................................................  Size: 786K
    1137:  ..................................................  Size: 850K
    1138:  ..................................................  Size: 850K
    1139:  ..................................................  Size: 914K
    1140:  ..................................................  Size: 978K
    1141:  ..................................................  Size: 1042K
    1142:  ........................................... Size of output: 1043K
    1143:  0 Compiler errors
    ...
    
    1318:  Start  656: TOPPWRITEINI_IDFilter
    1319:  74/2351 Test  #654: TOPPWRITEINI_IDFileConverter ...............................   Passed    0.02 sec
    1320:  Start  658: TOPPWRITEINI_IDMapper
    1321:  75/2351 Test  #658: TOPPWRITEINI_IDMapper ......................................   Passed    0.02 sec
    1322:  Start  660: TOPPWRITEINI_IDMassAccuracy
    1323:  76/2351 Test  #660: TOPPWRITEINI_IDMassAccuracy ................................   Passed    0.02 sec
    1324:  Start  662: TOPPWRITEINI_IDMerger
    1325:  77/2351 Test  #662: TOPPWRITEINI_IDMerger ......................................   Passed    0.02 sec
    1326:  Start  664: TOPPWRITEINI_IDPosteriorErrorProbability
    1327:  78/2351 Test  #664: TOPPWRITEINI_IDPosteriorErrorProbability ...................   Passed    0.02 sec
    ...
    
    2336:  Start 1950: TOPP_FalseDiscoveryRate_4
    2337:  583/2351 Test #1950: TOPP_FalseDiscoveryRate_4 ..................................   Passed    0.09 sec
    2338:  Start 1952: TOPP_FalseDiscoveryRate_5
    2339:  584/2351 Test #1946: TOPP_FalseDiscoveryRate_2 ..................................   Passed    0.22 sec
    2340:  Start 1954: TOPP_FalseDiscoveryRate_6
    2341:  585/2351 Test #1948: TOPP_FalseDiscoveryRate_3 ..................................   Passed    0.23 sec
    2342:  Start 1956: TOPP_FalseDiscoveryRate_7
    2343:  586/2351 Test #1952: TOPP_FalseDiscoveryRate_5 ..................................   Passed    0.10 sec
    2344:  Start 1958: TOPP_IDPosteriorErrorProbability_1
    2345:  587/2351 Test #1958: TOPP_IDPosteriorErrorProbability_1 .........................   Passed    0.08 sec
    2346:  Start 1960: TOPP_IDPosteriorErrorProbability_2
    2347:  588/2351 Test #1956: TOPP_FalseDiscoveryRate_7 ..................................   Passed    0.15 sec
    2348:  Start 1962: TOPP_IDPosteriorErrorProbability_3
    2349:  589/2351 Test #1954: TOPP_FalseDiscoveryRate_6 ..................................   Passed    0.19 sec
    2350:  Start 1964: TOPP_IDPosteriorErrorProbability_4
    2351:  590/2351 Test #1962: TOPP_IDPosteriorErrorProbability_3 .........................   Passed    0.03 sec
    2352:  Start 1966: TOPP_IDPosteriorErrorProbability_5
    2353:  591/2351 Test #1964: TOPP_IDPosteriorErrorProbability_4 .........................   Passed    0.02 sec
    2354:  Start 1968: TOPP_IDPosteriorErrorProbability_6
    2355:  592/2351 Test #1960: TOPP_IDPosteriorErrorProbability_2 .........................   Passed    0.13 sec
    2356:  Start 1971: TOPP_IDPosteriorErrorProbability_8
    2357:  593/2351 Test #1966: TOPP_IDPosteriorErrorProbability_5 .........................   Passed    0.09 sec
    2358:  Start 1973: TOPP_ProteinQuantifier_1
    2359:  594/2351 Test #1971: TOPP_IDPosteriorErrorProbability_8 .........................   Passed    0.03 sec
    2360:  Start 1976: TOPP_ProteinQuantifier_2
    2361:  595/2351 Test #1973: TOPP_ProteinQuantifier_1 ...................................   Passed    0.02 sec
    2362:  Start 1979: TOPP_ProteinQuantifier_3
    2363:  596/2351 Test #1976: TOPP_ProteinQuantifier_2 ...................................   Passed    0.03 sec
    2364:  Start 1982: TOPP_ProteinQuantifier_4
    2365:  597/2351 Test #1982: TOPP_ProteinQuantifier_4 ...................................   Passed    0.03 sec
    2366:  Start 1984: TOPP_ProteinQuantifier_5
    2367:  598/2351 Test #1968: TOPP_IDPosteriorErrorProbability_6 .........................   Passed    0.14 sec
    ...
    
    3118:  Start  249: LinearRegression_test
    3119:  974/2351 Test  #249: LinearRegression_test ......................................   Passed    0.02 sec
    3120:  Start  250: MathFunctions_test
    3121:  975/2351 Test  #250: MathFunctions_test .........................................   Passed    0.02 sec
    3122:  Start  251: NNLS_test
    3123:  976/2351 Test  #251: NNLS_test ..................................................   Passed    0.02 sec
    3124:  Start  252: NonNegativeLeastSquaresSolver_test
    3125:  977/2351 Test  #252: NonNegativeLeastSquaresSolver_test .........................   Passed    0.02 sec
    3126:  Start  253: PosteriorErrorProbabilityModel_test
    ...
    
    3129:  979/2351 Test  #254: QuadraticRegression_test ...................................   Passed    0.02 sec
    3130:  Start  255: RANSAC_test
    3131:  980/2351 Test  #255: RANSAC_test ................................................   Passed    0.02 sec
    3132:  Start  256: RANSACModel_test
    3133:  981/2351 Test  #256: RANSACModel_test ...........................................   Passed    0.02 sec
    3134:  Start  257: RANSACModelLinear_test
    3135:  982/2351 Test  #257: RANSACModelLinear_test .....................................   Passed    0.03 sec
    3136:  Start  258: RANSACModelQuadratic_test
    3137:  983/2351 Test  #253: PosteriorErrorProbabilityModel_test ........................   Passed    0.15 sec
    ...
    
    3714:  Start  547: CachedMzML_test
    3715:  1272/2351 Test  #547: CachedMzML_test ............................................   Passed    0.29 sec
    3716:  Start  548: CachedMzMLHandler_test
    3717:  1273/2351 Test  #548: CachedMzMLHandler_test .....................................   Passed    0.41 sec
    3718:  Start  549: Contaminants_test
    3719:  1274/2351 Test  #549: Contaminants_test ..........................................   Passed    0.03 sec
    3720:  Start  550: DBSuitability_test
    3721:  1275/2351 Test  #550: DBSuitability_test .........................................   Passed    0.02 sec
    3722:  Start  551: FragmentMassError_test
    3723:  1276/2351 Test  #551: FragmentMassError_test .....................................   Passed    0.03 sec
    ...
    
    3846:  Start  657: TOPPWRITEINI_IDFilter_SectionName
    3847:  1338/2351 Test  #655: TOPPWRITEINI_IDFileConverter_SectionName ...................   Passed    0.00 sec
    3848:  Start  659: TOPPWRITEINI_IDMapper_SectionName
    3849:  1339/2351 Test  #659: TOPPWRITEINI_IDMapper_SectionName ..........................   Passed    0.00 sec
    3850:  Start  661: TOPPWRITEINI_IDMassAccuracy_SectionName
    3851:  1340/2351 Test  #661: TOPPWRITEINI_IDMassAccuracy_SectionName ....................   Passed    0.00 sec
    3852:  Start  663: TOPPWRITEINI_IDMerger_SectionName
    3853:  1341/2351 Test  #657: TOPPWRITEINI_IDFilter_SectionName ..........................   Passed    0.01 sec
    3854:  Start  665: TOPPWRITEINI_IDPosteriorErrorProbability_SectionName
    3855:  1342/2351 Test  #663: TOPPWRITEINI_IDMerger_SectionName ..........................   Passed    0.00 sec
    3856:  Start  667: TOPPWRITEINI_IDRipper_SectionName
    3857:  1343/2351 Test  #665: TOPPWRITEINI_IDPosteriorErrorProbability_SectionName .......   Passed    0.00 sec
    ...
    
    4136:  Start  903: TOPPWRITECTD_IDFilter
    4137:  1483/2351 Test  #902: TOPPWRITECTD_IDFileConverter ...............................   Passed    0.03 sec
    4138:  Start  904: TOPPWRITECTD_IDMapper
    4139:  1484/2351 Test  #904: TOPPWRITECTD_IDMapper ......................................   Passed    0.03 sec
    4140:  Start  905: TOPPWRITECTD_IDMassAccuracy
    4141:  1485/2351 Test  #905: TOPPWRITECTD_IDMassAccuracy ................................   Passed    0.03 sec
    4142:  Start  906: TOPPWRITECTD_IDMerger
    4143:  1486/2351 Test  #906: TOPPWRITECTD_IDMerger ......................................   Passed    0.03 sec
    4144:  Start  907: TOPPWRITECTD_IDPosteriorErrorProbability
    4145:  1487/2351 Test  #907: TOPPWRITECTD_IDPosteriorErrorProbability ...................   Passed    0.03 sec
    ...
    
    5360:  Start 1951: TOPP_FalseDiscoveryRate_4_out1
    5361:  2095/2351 Test #1951: TOPP_FalseDiscoveryRate_4_out1 .............................   Passed    0.02 sec
    5362:  Start 1953: TOPP_FalseDiscoveryRate_5_out1
    5363:  2096/2351 Test #1953: TOPP_FalseDiscoveryRate_5_out1 .............................   Passed    0.03 sec
    5364:  Start 1955: TOPP_FalseDiscoveryRate_6_out1
    5365:  2097/2351 Test #1955: TOPP_FalseDiscoveryRate_6_out1 .............................   Passed    0.03 sec
    5366:  Start 1957: TOPP_FalseDiscoveryRate_7_out1
    5367:  2098/2351 Test #1957: TOPP_FalseDiscoveryRate_7_out1 .............................   Passed    0.02 sec
    5368:  Start 1959: TOPP_IDPosteriorErrorProbability_1_out1
    5369:  2099/2351 Test #1959: TOPP_IDPosteriorErrorProbability_1_out1 ....................   Passed    0.02 sec
    5370:  Start 1961: TOPP_IDPosteriorErrorProbability_2_out1
    5371:  2100/2351 Test #1949: TOPP_FalseDiscoveryRate_3_out1 .............................   Passed    0.12 sec
    5372:  Start 1963: TOPP_IDPosteriorErrorProbability_3_out1
    5373:  2101/2351 Test #1963: TOPP_IDPosteriorErrorProbability_3_out1 ....................   Passed    0.02 sec
    5374:  Start 1965: TOPP_IDPosteriorErrorProbability_4_out1
    5375:  2102/2351 Test #1961: TOPP_IDPosteriorErrorProbability_2_out1 ....................   Passed    0.03 sec
    5376:  Start 1967: TOPP_IDPosteriorErrorProbability_5_out1
    5377:  2103/2351 Test #1967: TOPP_IDPosteriorErrorProbability_5_out1 ....................   Passed    0.02 sec
    5378:  Start 1969: TOPP_IDPosteriorErrorProbability_6_out1
    5379:  2104/2351 Test #1965: TOPP_IDPosteriorErrorProbability_4_out1 ....................   Passed    0.02 sec
    5380:  Start 1970: TOPP_IDPosteriorErrorProbability_7
    5381:  2105/2351 Test #1969: TOPP_IDPosteriorErrorProbability_6_out1 ....................   Passed    0.02 sec
    5382:  Start 1972: TOPP_IDPosteriorErrorProbability_8_out1
    5383:  2106/2351 Test #1972: TOPP_IDPosteriorErrorProbability_8_out1 ....................   Passed    0.02 sec
    5384:  Start 1974: TOPP_ProteinQuantifier_1_out1
    5385:  2107/2351 Test #1974: TOPP_ProteinQuantifier_1_out1 ..............................   Passed    0.02 sec
    5386:  Start 1975: TOPP_ProteinQuantifier_1_out2
    5387:  2108/2351 Test #1975: TOPP_ProteinQuantifier_1_out2 ..............................   Passed    0.02 sec
    5388:  Start 1977: TOPP_ProteinQuantifier_2_out1
    5389:  2109/2351 Test #1970: TOPP_IDPosteriorErrorProbability_7 .........................   Passed    0.09 sec
    ...
    
    5795:  2312/2351 Test #2287: TOPP_Epifany_1_out .........................................   Passed    0.23 sec
    5796:  Start 2315: TOPP_MassTraceExtractor_3_flat_json_out
    5797:  2313/2351 Test #2313: TOPP_MassTraceExtractor_2_out_flat_json ....................   Passed    0.02 sec
    5798:  Start 2317: TOPP_MassTraceExtractor_3_json_out
    5799:  2314/2351 Test #2315: TOPP_MassTraceExtractor_3_flat_json_out ....................   Passed    0.02 sec
    5800:  Start 2318: TOPP_ExecutePipeline_1
    5801:  2315/2351 Test #2317: TOPP_MassTraceExtractor_3_json_out .........................   Passed    0.02 sec
    5802:  Start 2319: Doxygen_Warning_test
    5803:  2316/2351 Test #2319: Doxygen_Warning_test .......................................***Failed    0.00 sec
    5804:  Note: Please make sure to run the 'doc' target before running this test, so the 'doxygen-error.log' is up to date.
    5805:  Doxygen version: 1.9.1
    5806:  Opening '/home/runner/work/OpenMS/OpenMS/OpenMS/bld/doc/doxygen/doxygen-error.log' to check for doxygen errors...
    5807:  ----------- ERRORS/WARNINGS -----------------
    ...
    
    5877:  Start 2350: Tutorial_TOPP
    5878:  2347/2351 Test #2350: Tutorial_TOPP ..............................................   Passed    0.02 sec
    5879:  Start 2351: Tutorial_Unlabeled
    5880:  2348/2351 Test #2351: Tutorial_Unlabeled .........................................   Passed    0.01 sec
    5881:  2349/2351 Test  #464: SimpleSVM_test .............................................   Passed   36.94 sec
    5882:  2350/2351 Test #2318: TOPP_ExecutePipeline_1 .....................................   Passed    4.40 sec
    5883:  Start   22: StopWatch_test
    5884:  2351/2351 Test   #22: StopWatch_test .............................................   Passed    0.35 sec
    5885:  99% tests passed, 1 tests failed out of 2351
    5886:  Total Test time (real) = 115.23 sec
    5887:  The following tests FAILED:
    5888:  2319 - Doxygen_Warning_test (Failed)
    5889:  Internal ctest changing into directory: /home/runner/work/OpenMS/OpenMS/OpenMS/bld/doc/doxygen
    5890:  Submit files
    5891:  Send to group: Continuous
    5892:  SubmitURL: https://cdash.openms.de/submit.php?project=OpenMS
    5893:  Uploaded: /home/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1337/Test.xml
    5894:  Uploaded: /home/runner/work/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1337/Done.xml
    5895:  Submission successful
    5896:  CMake Error at /home/runner/work/OpenMS/OpenMS/OpenMS/tools/ci/citest.cmake:44 (message):
    5897:  There were errors: Please check the test results at:
    5898:  https://cdash.openms.de/index.php?project=OpenMS&begin=2023-01-01&end=2030-01-01&filtercount=1&field1=buildname&compare1=63&value1=6859-Linux-X64-g%2B%2B-11-class-topp-1724
    5899:  ##[error]Process completed with exit code 255.
    

    ✨ CI feedback usage guide:

    The CI feedback tool (/checks) automatically triggers when a PR has a failed check.
    The tool analyzes the failed checks and provides several feedbacks:

    • Failed stage
    • Failed test name
    • Failure summary
    • Relevant error logs

    In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:

    /checks "https://github.com/{repo_name}/actions/runs/{run_number}/job/{job_number}"
    

    where {repo_name} is the name of the repository, {run_number} is the run number of the failed check, and {job_number} is the job number of the failed check.

    Configuration options

    • enable_auto_checks_feedback - if set to true, the tool will automatically provide feedback when a check is failed. Default is true.
    • excluded_checks_list - a list of checks to exclude from the feedback, for example: ["check1", "check2"]. Default is an empty list.
    • enable_help_text - if set to true, the tool will provide a help message with the feedback. Default is true.
    • persistent_comment - if set to true, the tool will overwrite a previous checks comment with the new feedback. Default is true.
    • final_update_message - if persistent_comment is true and updating a previous checks message, the tool will also create a new message: "Persistent checks updated to latest commit". Default is true.

    See more information about the checks tool in the docs.

    @qodo-code-review

    Copy link
    Copy Markdown
    Contributor

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    CI Failure Feedback 🧐

    Action: build-and-test (windows-2022, cl.exe, default)

    Failed stage: Test [❌]

    Failed test name: BilinearInterpolation_test

    Failure summary:

    The action failed due to the following test failures:

  • BilinearInterpolation_test failed because the test at line 173 did not meet the expected condition.
  • ModifiedPeptideGenerator_test failed due to mismatched values in tests at lines 165 and 183.
  • Doxygen_Warning_test failed because it detected errors or warnings in the Doxygen documentation.

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  Microsoft Windows Server 2022
    ...
    
    205:  ##[endgroup]
    206:  ##[group]Run DO_PACKAGE=$( [[ ( "" || "6859" == "nightly" || "6859" =~ release/* ) && "cl.exe" != "clang++" ]] && echo true || echo false)
    207:  �[36;1mDO_PACKAGE=$( [[ ( "" || "6859" == "nightly" || "6859" =~ release/* ) && "cl.exe" != "clang++" ]] && echo true || echo false)�[0m
    208:  �[36;1mecho $DO_PACKAGE�[0m
    209:  �[36;1mif [[ "windows-2022" == ubuntu-* ]]; then�[0m
    210:  �[36;1m  echo "tp_folder=Linux" >> $GITHUB_OUTPUT�[0m
    211:  �[36;1m  echo "xvfb=xvfb-run -a" >> $GITHUB_OUTPUT�[0m
    212:  �[36;1m  echo "static_boost=OFF" >> $GITHUB_OUTPUT�[0m
    213:  �[36;1m  # always run doxygen on Ubuntu (because its fast), to detect Doxygen errors�[0m
    ...
    
    288:  �[36;1m        # 'ARM' is supported.�[0m
    289:  �[36;1m        $arch�[0m
    290:  �[36;1m    }�[0m
    291:  �[36;1m}�[0m
    292:  �[36;1m�[0m
    293:  �[36;1mNew-Variable arch -Value (Normalize-Arch 'x64') -Option Constant�[0m
    294:  �[36;1m�[0m
    295:  �[36;1mfunction Locate-VSWhere {�[0m
    296:  �[36;1m    $path = Get-Command 'vswhere' -ErrorAction SilentlyContinue�[0m
    ...
    
    357:  �[36;1m    $script_name = 'VsDevCmd.bat'�[0m
    358:  �[36;1m    $script_path = Join-Path $tools_path $script_name�[0m
    359:  �[36;1m�[0m
    360:  �[36;1m    if (!(Test-Path $script_path -Type Leaf)) {�[0m
    361:  �[36;1m        throw "Couldn't find script '$script_name'"�[0m
    362:  �[36;1m    }�[0m
    363:  �[36;1m�[0m
    364:  �[36;1m    # OK, the following issue is royally stupid.  At one point, I�[0m
    365:  �[36;1m    # started getting errors like this:�[0m
    366:  �[36;1m    #�[0m
    367:  �[36;1m    #     Conversion from JSON failed with error: Unexpected character encountered while parsing value: W.�[0m
    ...
    
    372:  �[36;1m    # which is insanely low.  I don't know what it does if the input�[0m
    373:  �[36;1m    # exceeds the nesting depth of 2, but I do know that starting from�[0m
    374:  �[36;1m    # Powershell 7.1, ConvertTo-Json prints a "helpful" warning in this�[0m
    375:  �[36;1m    # case.  The warning looks like this:�[0m
    376:  �[36;1m    #�[0m
    377:  �[36;1m    #     WARNING: Resulting JSON is truncated as serialization has exceeded the set depth of 2.�[0m
    378:  �[36;1m    #�[0m
    379:  �[36;1m    # Apparently, PowerShell on windows-2016 images got upgraded, hence�[0m
    380:  �[36;1m    # the failure to parse the letter W.  I _accidentally_ fixed it by�[0m
    ...
    
    1457:  �[36;1m  sudo add-apt-repository universe�[0m
    1458:  �[36;1m  sudo apt update   �[0m
    1459:  �[36;1m  sudo apt-get -qq install -y build-essential cmake autoconf patch libtool git automake ninja-build xvfb ccache�[0m
    1460:  �[36;1m  sudo apt-get -qq install -y qtbase5-dev libqt5svg5-dev libqt5opengl5-dev�[0m
    1461:  �[36;1m  sudo apt-get -qq install -y libeigen3-dev libboost-random-dev libboost-regex-dev libboost-iostreams-dev \�[0m
    1462:  �[36;1m   libboost-date-time-dev libboost-math-dev libxerces-c-dev zlib1g-dev libsvm-dev libbz2-dev coinor-libcoinmp-dev libhdf5-dev�[0m
    1463:  �[36;1m�[0m
    1464:  �[36;1m  echo "cmake_prefix=" >> $GITHUB_OUTPUT�[0m
    1465:  �[36;1m  ## always run doxygen on Ubuntu to detect Doxygen errors�[0m
    ...
    
    1801:  Downloading package from source 'https://community.chocolatey.org/api/v2/'
    1802:  Ghostscript v10.3.1 [Approved]
    1803:  Ghostscript package files install completed. Performing other installation steps.
    1804:  The install of Ghostscript was successful.
    1805:  Deployed to 'C:\ProgramData\chocolatey\lib\Ghostscript'
    1806:  Downloading package from source 'https://community.chocolatey.org/api/v2/'
    1807:  graphviz v12.1.0 [Approved]
    1808:  graphviz package files install completed. Performing other installation steps.
    1809:  Attempt to use original download file name failed for 'C:\ProgramData\chocolatey\lib\Graphviz\tools\graphviz-12.1.0 (64-bit) EXE installer.exe'.
    ...
    
    2542:  Python3_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.11.9\x64
    2543:  Qt5_Dir: D:\a\OpenMS\Qt\5.15.2\msvc2019_64
    2544:  QT_PLUGIN_PATH: D:\a\OpenMS\Qt\5.15.2\msvc2019_64\plugins
    2545:  QML2_IMPORT_PATH: D:\a\OpenMS\Qt\5.15.2\msvc2019_64\qml
    2546:  ##[endgroup]
    2547:  Submodule 'THIRDPARTY' (https://github.com/OpenMS/THIRDPARTY) registered for path 'THIRDPARTY'
    2548:  Cloning into 'D:/a/OpenMS/OpenMS/OpenMS/THIRDPARTY'...
    2549:  Submodule path 'THIRDPARTY': checked out 'd6594eb775ebca0255f0129d946d7e582b37ac37'
    2550:  ##[group]Run # do not fail immediately
    2551:  �[36;1m# do not fail immediately�[0m
    2552:  �[36;1mset +e�[0m
    2553:  �[36;1mmkdir $GITHUB_WORKSPACE/OpenMS/bld/�[0m
    2554:  �[36;1m ctest --output-on-failure -V -S ../OpenMS/OpenMS/tools/ci/cibuild.cmake�[0m
    2555:  �[36;1mretVal=$?�[0m
    2556:  �[36;1mif [ $retVal -ne 0 ]; then�[0m
    2557:  �[36;1m    echo -e "\033[0;31m Errors in build:"�[0m
    ...
    
    2777:  CI_PROVIDER: GitHub-Actions
    2778:  CMAKE_GENERATOR: Ninja
    2779:  SOURCE_DIRECTORY: D:\a\OpenMS\OpenMS/OpenMS
    2780:  BUILD_NAME: 6859-Windows-X64-cl.exe-default-class-topp-1724
    2781:  ENABLE_STYLE_TESTING: OFF
    2782:  ENABLE_TOPP_TESTING: ON
    2783:  ENABLE_CLASS_TESTING: ON
    2784:  ENABLE_DOCS: OFF
    2785:  ENABLE_GCC_WERROR: OFF
    ...
    
    2798:  CCACHE_COMPRESSLEVEL: 12
    2799:  CCACHE_MAXSIZE: 400M
    2800:  CCACHE_SLOPPINESS: time_macros,include_file_ctime,include_file_mtime
    2801:  CCACHE_COMPILERCHECK: content
    2802:  WITH_THERMORAWFILEPARSER_TEST: OFF
    2803:  Eigen3_DIR: C:\ProgramData\chocolatey\lib\eigen\share\cmake
    2804:  ##[endgroup]
    2805:  -- CTEST_SOURCE_DIRECTORY: D:\a\OpenMS\OpenMS/OpenMS
    2806:  tools/ci/cibuild.cmake: Loading the following vars from ENV if available: ADDRESS_SANITIZER;CMAKE_PREFIX_PATH;CMAKE_BUILD_TYPE;CMAKE_GENERATOR_PLATFORM;Boost_DEBUG;BOOST_USE_STATIC;OPENMS_CONTRIB_LIBS;ENABLE_CLASS_TESTING;ENABLE_GCC_WERROR;ENABLE_STYLE_TESTING;ENABLE_TOPP_TESTING;ENABLE_TUTORIALS;ENABLE_UPDATE_CHECK;MT_ENABLE_OPENMP;SEARCH_ENGINES_DIRECTORY;PACKAGE_TYPE;PYOPENMS;PY_MEMLEAK_DISABLE;PY_NO_OPTIMIZATION;PY_NO_OUTPUT;PY_NUM_MODULES;PY_NUM_THREADS;WITH_GUI;WITH_THERMORAWFILEPARSER_TEST
    2807:  tools/ci/cibuild.cmake: Found ADDRESS_SANITIZER with value Off
    2808:  -- CTEST_BINARY_DIRECTORY: D:\a\OpenMS\OpenMS/OpenMS/bld
    2809:  tools/ci/cibuild.cmake: Found CMAKE_PREFIX_PATH with value /lib/cmake;
    2810:  tools/ci/cibuild.cmake: Found BOOST_USE_STATIC with value ON
    2811:  tools/ci/cibuild.cmake: Found OPENMS_CONTRIB_LIBS with value D:\a\OpenMS\OpenMS/OpenMS/contrib
    2812:  tools/ci/cibuild.cmake: Found ENABLE_CLASS_TESTING with value ON
    2813:  tools/ci/cibuild.cmake: Found ENABLE_GCC_WERROR with value OFF
    ...
    
    2834:  ......... Size of output: 8K
    2835:  Submit files
    2836:  SubmitURL: https://cdash.openms.de/submit.php?project=OpenMS
    2837:  Uploaded: D:/a/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1336/Update.xml
    2838:  Uploaded: D:/a/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1336/Configure.xml
    2839:  Submission successful
    2840:  Build project
    2841:  Each symbol represents 1024 bytes of output.
    2842:  '!' represents an error and '*' a warning.
    ...
    
    2857:  ..................................................  Size: 1084K
    2858:  ..................................................  Size: 1084K
    2859:  ..................................................  Size: 1084K
    2860:  ..................................................  Size: 1084K
    2861:  ..................................................  Size: 1084K
    2862:  ..................................................  Size: 1084K
    2863:  ..................................................  Size: 1084K
    2864:  ................................... Size of output: 1084K
    2865:  0 Compiler errors
    ...
    
    3247:  Start  656: TOPPWRITEINI_IDFilter
    3248:  74/2351 Test  #654: TOPPWRITEINI_IDFileConverter ...............................   Passed    0.04 sec
    3249:  Start  658: TOPPWRITEINI_IDMapper
    3250:  75/2351 Test  #658: TOPPWRITEINI_IDMapper ......................................   Passed    0.04 sec
    3251:  Start  660: TOPPWRITEINI_IDMassAccuracy
    3252:  76/2351 Test  #660: TOPPWRITEINI_IDMassAccuracy ................................   Passed    0.03 sec
    3253:  Start  662: TOPPWRITEINI_IDMerger
    3254:  77/2351 Test  #662: TOPPWRITEINI_IDMerger ......................................   Passed    0.03 sec
    3255:  Start  664: TOPPWRITEINI_IDPosteriorErrorProbability
    3256:  78/2351 Test  #664: TOPPWRITEINI_IDPosteriorErrorProbability ...................   Passed    0.03 sec
    ...
    
    4265:  Start 1950: TOPP_FalseDiscoveryRate_4
    4266:  583/2351 Test #1944: TOPP_FalseDiscoveryRate_1 ..................................   Passed    0.26 sec
    4267:  Start 1952: TOPP_FalseDiscoveryRate_5
    4268:  584/2351 Test #1948: TOPP_FalseDiscoveryRate_3 ..................................   Passed    0.22 sec
    4269:  Start 1954: TOPP_FalseDiscoveryRate_6
    4270:  585/2351 Test #1950: TOPP_FalseDiscoveryRate_4 ..................................   Passed    0.17 sec
    4271:  Start 1956: TOPP_FalseDiscoveryRate_7
    4272:  586/2351 Test #1952: TOPP_FalseDiscoveryRate_5 ..................................   Passed    0.17 sec
    4273:  Start 1958: TOPP_IDPosteriorErrorProbability_1
    4274:  587/2351 Test #1954: TOPP_FalseDiscoveryRate_6 ..................................   Passed    0.22 sec
    4275:  Start 1960: TOPP_IDPosteriorErrorProbability_2
    4276:  588/2351 Test #1958: TOPP_IDPosteriorErrorProbability_1 .........................   Passed    0.14 sec
    4277:  Start 1962: TOPP_IDPosteriorErrorProbability_3
    4278:  589/2351 Test #1956: TOPP_FalseDiscoveryRate_7 ..................................   Passed    0.17 sec
    4279:  Start 1964: TOPP_IDPosteriorErrorProbability_4
    4280:  590/2351 Test #1962: TOPP_IDPosteriorErrorProbability_3 .........................   Passed    0.04 sec
    4281:  Start 1966: TOPP_IDPosteriorErrorProbability_5
    4282:  591/2351 Test #1964: TOPP_IDPosteriorErrorProbability_4 .........................   Passed    0.04 sec
    4283:  Start 1968: TOPP_IDPosteriorErrorProbability_6
    4284:  592/2351 Test #1960: TOPP_IDPosteriorErrorProbability_2 .........................   Passed    0.19 sec
    4285:  Start 1971: TOPP_IDPosteriorErrorProbability_8
    4286:  593/2351 Test #1968: TOPP_IDPosteriorErrorProbability_6 .........................   Passed    0.12 sec
    4287:  Start 1973: TOPP_ProteinQuantifier_1
    4288:  594/2351 Test #1971: TOPP_IDPosteriorErrorProbability_8 .........................   Passed    0.04 sec
    4289:  Start 1976: TOPP_ProteinQuantifier_2
    4290:  595/2351 Test #1966: TOPP_IDPosteriorErrorProbability_5 .........................   Passed    0.18 sec
    ...
    
    5022:  961/2351 Test  #235: SpectrumAccessQuadMZTransforming_test ......................   Passed    0.04 sec
    5023:  Start  237: SiriusFragmentAnnotation_test
    5024:  962/2351 Test  #237: SiriusFragmentAnnotation_test ..............................   Passed    0.05 sec
    5025:  Start  238: BasicStatistics_test
    5026:  963/2351 Test  #232: MSDataChainingConsumer_test ................................   Passed    0.22 sec
    5027:  Start  239: BilinearInterpolation_test
    5028:  964/2351 Test  #238: BasicStatistics_test .......................................   Passed    0.05 sec
    5029:  Start  240: BSpline2d_test
    5030:  965/2351 Test  #239: BilinearInterpolation_test .................................***Failed    0.05 sec
    ...
    
    5040:  : passed
    5041:  checking ContainerType const& getData() const ... : passed
    5042:  checking template< typename SourceContainer > void setData( SourceContainer const & data ) ... 
    5043:  -  line 173:  TEST_NOT_EQUAL(bifd.getData(),bifd3.getData()): got ' 10000      0      0 
    5044:  10010      0  10012 
    5045:  ', forbidden is ' 10000      0      0 
    5046:  10010      0  10012 
    5047:  '
    5048:  : failed
    ...
    
    5090:  : passed
    5091:  checking (void addValue( KeyType arg_pos_0, KeyType arg_pos_1, ValueType arg_value )) ... 
    5092:  : passed
    5093:  checking (ValueType value( KeyType arg_pos_0, KeyType arg_pos_1 ) const) ... 
    5094:  : passed
    5095:  checking (created temporary files)...
    5096:  : passed
    5097:  Output of successful tests were suppressed. Set the environment variable 'OPENMS_TEST_VERBOSE=True' to enable them.
    5098:  FAILED
    5099:  Failed lines: 173 
    ...
    
    5116:  Start  249: LinearRegression_test
    5117:  974/2351 Test  #248: LinearInterpolation_test ...................................   Passed    0.04 sec
    5118:  Start  250: MathFunctions_test
    5119:  975/2351 Test  #249: LinearRegression_test ......................................   Passed    0.04 sec
    5120:  Start  251: NNLS_test
    5121:  976/2351 Test  #250: MathFunctions_test .........................................   Passed    0.04 sec
    5122:  Start  252: NonNegativeLeastSquaresSolver_test
    5123:  977/2351 Test  #251: NNLS_test ..................................................   Passed    0.04 sec
    5124:  Start  253: PosteriorErrorProbabilityModel_test
    ...
    
    5129:  980/2351 Test  #255: RANSAC_test ................................................   Passed    0.03 sec
    5130:  Start  256: RANSACModel_test
    5131:  981/2351 Test  #256: RANSACModel_test ...........................................   Passed    0.04 sec
    5132:  Start  257: RANSACModelLinear_test
    5133:  982/2351 Test  #257: RANSACModelLinear_test .....................................   Passed    0.05 sec
    5134:  Start  258: RANSACModelQuadratic_test
    5135:  983/2351 Test  #258: RANSACModelQuadratic_test ..................................   Passed    0.04 sec
    5136:  Start  259: ROCCurve_test
    5137:  984/2351 Test  #253: PosteriorErrorProbabilityModel_test ........................   Passed    0.23 sec
    ...
    
    5507:  1169/2351 Test  #444: MetaboliteSpectralMatching_test ............................   Passed    0.04 sec
    5508:  Start  445: ModifiedPeptideGenerator_test
    5509:  1170/2351 Test  #434: MapAlignmentAlgorithmPoseClustering_test ...................   Passed    1.07 sec
    5510:  Start  446: NeedlemanWunsch_test
    5511:  1171/2351 Test  #446: NeedlemanWunsch_test .......................................   Passed    0.78 sec
    5512:  Start  447: PeptideIndexing_test
    5513:  1172/2351 Test  #447: PeptideIndexing_test .......................................   Passed    1.17 sec
    5514:  Start  448: PeptideAndProteinQuant_test
    5515:  1173/2351 Test  #445: ModifiedPeptideGenerator_test ..............................***Failed    2.41 sec
    ...
    
    5517:  : passed
    5518:  checking ~ModifiedPeptideGenerator() ... : passed
    5519:  Warning: no subtests performed in '~ModifiedPeptideGenerator()' (line 45)!
    5520:  checking (static void applyFixedModifications(const ModifiedPeptideGenerator::MapToResidueType& fixed_mods, AASequence& peptide)) ... 
    5521:  : passed
    5522:  checking (static void generateVariableModifiedPeptidesWithMasses(const ModifiedPeptideGenerator::MapToResidueType& var_mods, const AASequence& peptide, Size max_variable_mods_per_peptide, std::vector< AASequence > &all_modified_peptides, bool keep_unmodified=true)) ... 
    5523:  -  line 165:  TEST_EQUAL(modified_peptides[0].mass,modified_peptides[0].sequence.getMonoWeight()): got '962.454', expected '962.454'
    5524:  -  line 183:  TEST_EQUAL(modified_peptides[0].mass,modified_peptides[0].sequence.getMonoWeight()): got '960.486', expected '960.486'
    5525:  : failed
    ...
    
    5527:  : passed
    5528:  checking [EXTRA] multithreaded example ... 
    5529:  : passed
    5530:  checking [EXTRA] ModifiedPeptideGenerator::getModifications ... 
    5531:  : passed
    5532:  checking (created temporary files)...
    5533:  : passed
    5534:  Output of successful tests were suppressed. Set the environment variable 'OPENMS_TEST_VERBOSE=True' to enable them.
    5535:  FAILED
    5536:  Failed lines: 165 183 
    ...
    
    5733:  Start  547: CachedMzML_test
    5734:  1272/2351 Test  #547: CachedMzML_test ............................................   Passed    0.21 sec
    5735:  Start  548: CachedMzMLHandler_test
    5736:  1273/2351 Test  #548: CachedMzMLHandler_test .....................................   Passed    0.22 sec
    5737:  Start  549: Contaminants_test
    5738:  1274/2351 Test  #549: Contaminants_test ..........................................   Passed    0.04 sec
    5739:  Start  550: DBSuitability_test
    5740:  1275/2351 Test  #550: DBSuitability_test .........................................   Passed    0.05 sec
    5741:  Start  551: FragmentMassError_test
    5742:  1276/2351 Test  #551: FragmentMassError_test .....................................   Passed    0.04 sec
    ...
    
    5865:  Start  657: TOPPWRITEINI_IDFilter_SectionName
    5866:  1338/2351 Test  #655: TOPPWRITEINI_IDFileConverter_SectionName ...................   Passed    0.02 sec
    5867:  Start  659: TOPPWRITEINI_IDMapper_SectionName
    5868:  1339/2351 Test  #657: TOPPWRITEINI_IDFilter_SectionName ..........................   Passed    0.03 sec
    5869:  Start  661: TOPPWRITEINI_IDMassAccuracy_SectionName
    5870:  1340/2351 Test  #659: TOPPWRITEINI_IDMapper_SectionName ..........................   Passed    0.03 sec
    5871:  Start  663: TOPPWRITEINI_IDMerger_SectionName
    5872:  1341/2351 Test  #661: TOPPWRITEINI_IDMassAccuracy_SectionName ....................   Passed    0.02 sec
    5873:  Start  665: TOPPWRITEINI_IDPosteriorErrorProbability_SectionName
    5874:  1342/2351 Test  #663: TOPPWRITEINI_IDMerger_SectionName ..........................   Passed    0.02 sec
    5875:  Start  667: TOPPWRITEINI_IDRipper_SectionName
    5876:  1343/2351 Test  #665: TOPPWRITEINI_IDPosteriorErrorProbability_SectionName .......   Passed    0.02 sec
    ...
    
    6155:  Start  903: TOPPWRITECTD_IDFilter
    6156:  1483/2351 Test  #902: TOPPWRITECTD_IDFileConverter ...............................   Passed    0.04 sec
    6157:  Start  904: TOPPWRITECTD_IDMapper
    6158:  1484/2351 Test  #904: TOPPWRITECTD_IDMapper ......................................   Passed    0.03 sec
    6159:  Start  905: TOPPWRITECTD_IDMassAccuracy
    6160:  1485/2351 Test  #905: TOPPWRITECTD_IDMassAccuracy ................................   Passed    0.04 sec
    6161:  Start  906: TOPPWRITECTD_IDMerger
    6162:  1486/2351 Test  #906: TOPPWRITECTD_IDMerger ......................................   Passed    0.04 sec
    6163:  Start  907: TOPPWRITECTD_IDPosteriorErrorProbability
    6164:  1487/2351 Test  #903: TOPPWRITECTD_IDFilter ......................................   Passed    0.17 sec
    6165:  Start  908: TOPPWRITECTD_IDRipper
    6166:  1488/2351 Test  #907: TOPPWRITECTD_IDPosteriorErrorProbability ...................   Passed    0.04 sec
    ...
    
    7379:  Start 1951: TOPP_FalseDiscoveryRate_4_out1
    7380:  2095/2351 Test #1951: TOPP_FalseDiscoveryRate_4_out1 .............................   Passed    0.05 sec
    7381:  Start 1953: TOPP_FalseDiscoveryRate_5_out1
    7382:  2096/2351 Test #1953: TOPP_FalseDiscoveryRate_5_out1 .............................   Passed    0.07 sec
    7383:  Start 1955: TOPP_FalseDiscoveryRate_6_out1
    7384:  2097/2351 Test #1949: TOPP_FalseDiscoveryRate_3_out1 .............................   Passed    0.18 sec
    7385:  Start 1957: TOPP_FalseDiscoveryRate_7_out1
    7386:  2098/2351 Test #1957: TOPP_FalseDiscoveryRate_7_out1 .............................   Passed    0.03 sec
    7387:  Start 1959: TOPP_IDPosteriorErrorProbability_1_out1
    7388:  2099/2351 Test #1955: TOPP_FalseDiscoveryRate_6_out1 .............................   Passed    0.08 sec
    7389:  Start 1961: TOPP_IDPosteriorErrorProbability_2_out1
    7390:  2100/2351 Test #1959: TOPP_IDPosteriorErrorProbability_1_out1 ....................   Passed    0.04 sec
    7391:  Start 1963: TOPP_IDPosteriorErrorProbability_3_out1
    7392:  2101/2351 Test #1963: TOPP_IDPosteriorErrorProbability_3_out1 ....................   Passed    0.03 sec
    7393:  Start 1965: TOPP_IDPosteriorErrorProbability_4_out1
    7394:  2102/2351 Test #1961: TOPP_IDPosteriorErrorProbability_2_out1 ....................   Passed    0.08 sec
    7395:  Start 1967: TOPP_IDPosteriorErrorProbability_5_out1
    7396:  2103/2351 Test #1965: TOPP_IDPosteriorErrorProbability_4_out1 ....................   Passed    0.03 sec
    7397:  Start 1969: TOPP_IDPosteriorErrorProbability_6_out1
    7398:  2104/2351 Test #1967: TOPP_IDPosteriorErrorProbability_5_out1 ....................   Passed    0.04 sec
    7399:  Start 1970: TOPP_IDPosteriorErrorProbability_7
    7400:  2105/2351 Test #1969: TOPP_IDPosteriorErrorProbability_6_out1 ....................   Passed    0.04 sec
    7401:  Start 1972: TOPP_IDPosteriorErrorProbability_8_out1
    7402:  2106/2351 Test #1972: TOPP_IDPosteriorErrorProbability_8_out1 ....................   Passed    0.03 sec
    7403:  Start 1974: TOPP_ProteinQuantifier_1_out1
    7404:  2107/2351 Test #1974: TOPP_ProteinQuantifier_1_out1 ..............................   Passed    0.03 sec
    7405:  Start 1975: TOPP_ProteinQuantifier_1_out2
    7406:  2108/2351 Test #1975: TOPP_ProteinQuantifier_1_out2 ..............................   Passed    0.04 sec
    7407:  Start 1977: TOPP_ProteinQuantifier_2_out1
    7408:  2109/2351 Test #1970: TOPP_IDPosteriorErrorProbability_7 .........................   Passed    0.16 sec
    ...
    
    7814:  2312/2351 Test #2311: TOPP_MassTraceExtractor_1_out_flat_json ....................   Passed    0.05 sec
    7815:  Start 2315: TOPP_MassTraceExtractor_3_flat_json_out
    7816:  2313/2351 Test #2313: TOPP_MassTraceExtractor_2_out_flat_json ....................   Passed    0.04 sec
    7817:  Start 2317: TOPP_MassTraceExtractor_3_json_out
    7818:  2314/2351 Test #2315: TOPP_MassTraceExtractor_3_flat_json_out ....................   Passed    0.04 sec
    7819:  Start 2318: TOPP_ExecutePipeline_1
    7820:  2315/2351 Test #2317: TOPP_MassTraceExtractor_3_json_out .........................   Passed    0.04 sec
    7821:  Start 2319: Doxygen_Warning_test
    7822:  2316/2351 Test #2319: Doxygen_Warning_test .......................................***Failed    0.01 sec
    7823:  Note: Please make sure to run the 'doc' target before running this test, so the 'doxygen-error.log' is up to date.
    7824:  Doxygen version: 1.12.0
    7825:  Opening 'D:/a/OpenMS/OpenMS/OpenMS/bld/doc/doxygen/doxygen-error.log' to check for doxygen errors...
    7826:  ----------- ERRORS/WARNINGS -----------------
    ...
    
    7896:  Start 2350: Tutorial_TOPP
    7897:  2347/2351 Test #2349: Tutorial_TheoreticalSpectrumGenerator ......................   Passed    0.04 sec
    7898:  Start 2351: Tutorial_Unlabeled
    7899:  2348/2351 Test #2350: Tutorial_TOPP ..............................................   Passed    0.03 sec
    7900:  2349/2351 Test #2351: Tutorial_Unlabeled .........................................   Passed    0.03 sec
    7901:  2350/2351 Test #2318: TOPP_ExecutePipeline_1 .....................................   Passed    3.70 sec
    7902:  Start   22: StopWatch_test
    7903:  2351/2351 Test   #22: StopWatch_test .............................................   Passed    0.36 sec
    7904:  99% tests passed, 3 tests failed out of 2351
    7905:  Total Test time (real) = 154.31 sec
    7906:  The following tests FAILED:
    7907:  239 - BilinearInterpolation_test (Failed)
    7908:  445 - ModifiedPeptideGenerator_test (Failed)
    7909:  2319 - Doxygen_Warning_test (Failed)
    7910:  Internal ctest changing into directory: D:/a/OpenMS/OpenMS/OpenMS/bld/doc/doxygen
    7911:  Submit files
    7912:  Send to group: Continuous
    7913:  SubmitURL: https://cdash.openms.de/submit.php?project=OpenMS
    7914:  Uploaded: D:/a/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1336/Test.xml
    7915:  Uploaded: D:/a/OpenMS/OpenMS/OpenMS/bld/Testing/20240905-1336/Done.xml
    7916:  Submission successful
    7917:  CMake Error at D:/a/OpenMS/OpenMS/OpenMS/tools/ci/citest.cmake:44 (message):
    7918:  There were errors: Please check the test results at:
    7919:  https://cdash.openms.de/index.php?project=OpenMS&begin=2023-01-01&end=2030-01-01&filtercount=1&field1=buildname&compare1=63&value1=6859-Windows-X64-cl%2Eexe-default-class-topp-1724
    7920:  ##[error]Process completed with exit code 127.
    

    ✨ CI feedback usage guide:

    The CI feedback tool (/checks) automatically triggers when a PR has a failed check.
    The tool analyzes the failed checks and provides several feedbacks:

    • Failed stage
    • Failed test name
    • Failure summary
    • Relevant error logs

    In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:

    /checks "https://github.com/{repo_name}/actions/runs/{run_number}/job/{job_number}"
    

    where {repo_name} is the name of the repository, {run_number} is the run number of the failed check, and {job_number} is the job number of the failed check.

    Configuration options

    • enable_auto_checks_feedback - if set to true, the tool will automatically provide feedback when a check is failed. Default is true.
    • excluded_checks_list - a list of checks to exclude from the feedback, for example: ["check1", "check2"]. Default is an empty list.
    • enable_help_text - if set to true, the tool will provide a help message with the feedback. Default is true.
    • persistent_comment - if set to true, the tool will overwrite a previous checks comment with the new feedback. Default is true.
    • final_update_message - if persistent_comment is true and updating a previous checks message, the tool will also create a new message: "Persistent checks updated to latest commit". Default is true.

    See more information about the checks tool in the docs.

    @timosachsenberg

    Copy link
    Copy Markdown
    Contributor

    I think this might not be 100% finshed so please don't merge yet

    @coderabbitai coderabbitai Bot mentioned this pull request Sep 18, 2025
    5 tasks
    @github-actions github-actions Bot added the Stale label Nov 21, 2025
    @github-actions github-actions Bot closed this Dec 8, 2025
    @jpfeuffer jpfeuffer reopened this Dec 8, 2025
    @jpfeuffer jpfeuffer removed the Stale label Dec 8, 2025
    @coderabbitai

    coderabbitai Bot commented Feb 11, 2026

    Copy link
    Copy Markdown
    Contributor
    📝 Walkthrough

    Walkthrough

    This PR extends the ModifiedPeptideGenerator class with mass-tracking capabilities and introduces a new DigestAndModify utility class for streamlined peptide digestion and modification generation. New functions generate modified peptide variants while tracking associated masses, and a helper method variant supports SequenceMassPair operations.

    Changes

    Cohort / File(s) Summary
    API Extensions
    src/openms/include/OpenMS/CHEMISTRY/ModifiedPeptideGenerator.h
    Added SequenceMassPair nested struct for pairing sequences with masses, introduced applyVariableModifications() and generateVariableModifiedPeptidesWithMasses() public functions, and extended applyAllModsAtIdxAndExtend_() signature to support SequenceMassPair variants.
    New DigestAndModify Class
    src/openms/include/OpenMS/CHEMISTRY/ModifiedPeptideGenerator.h
    Introduced public DigestAndModify class with configurable digestion and modification settings, including constructor, getPeptides() method, and accessor functions for digestion parameters and modification maps.
    Implementation
    src/openms/source/CHEMISTRY/ModifiedPeptideGenerator.cpp
    Implemented generateVariableModifiedPeptidesWithMasses() function and added new applyAllModsAtIdxAndExtend_() overload for mass-aware SequenceMassPair processing while maintaining backward compatibility.
    Test Coverage
    src/tests/class_tests/openms/source/ModifiedPeptideGenerator_test.cpp
    Added comprehensive unit tests for generateVariableModifiedPeptidesWithMasses() covering empty peptides, terminal modifications, multiple modification scenarios, and edge cases.

    Sequence Diagram(s)

    sequenceDiagram
        actor Client
        participant DAM as DigestAndModify
        participant PD as ProteaseDigestion
        participant MPG as ModifiedPeptideGenerator
        participant ModDB as Modification Database
    
        Client->>DAM: getPeptides(protein_sequence)
        activate DAM
        DAM->>PD: digest(protein_sequence)
        activate PD
        PD-->>DAM: peptide_fragments[]
        deactivate PD
        
        loop for each peptide fragment
            DAM->>MPG: generateVariableModifiedPeptidesWithMasses(var_mods, peptide)
            activate MPG
            MPG->>ModDB: lookup modification specs
            activate ModDB
            ModDB-->>MPG: modification deltas
            deactivate ModDB
            MPG->>MPG: enumerate modifications up to max limit
            MPG->>MPG: compute mass for each variant
            MPG-->>DAM: SequenceMassPair[]
            deactivate MPG
        end
        
        DAM-->>Client: modified_peptides[]
        deactivate DAM
    
    Loading

    Poem

    🐰 Whiskers twitching with delight,
    Peptides now paired with masses bright,
    DigestAndModify hops along,
    Bringing order to mod-generation's song!
    Terminal specificity, checked with care,
    Chemistry magic floats through the air! 🧪✨

    🚥 Pre-merge checks | ✅ 2 | ❌ 1
    ❌ Failed checks (1 warning)
    Check name Status Explanation Resolution
    Docstring Coverage ⚠️ Warning Docstring coverage is 28.57% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
    ✅ Passed checks (2 passed)
    Check name Status Explanation
    Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
    Title check ✅ Passed The title accurately reflects the main change: adding a new version of the modified peptide generator that tracks incremental masses alongside sequences.

    ✏️ Tip: You can configure your own custom pre-merge checks in the settings.

    ✨ Finishing touches
    • 📝 Generate docstrings
    🧪 Generate unit tests (beta)
    • Create PR with unit tests
    • Post copyable unit tests in a comment
    • Commit unit tests in branch feat/Modpepgenmasses

    Tip

    Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


    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 and usage tips.

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

    Actionable comments posted: 5

    🤖 Fix all issues with AI agents
    In `@src/openms/include/OpenMS/CHEMISTRY/ModifiedPeptideGenerator.h`:
    - Around line 92-116: The Doxygen for generateVariableModifiedPeptidesWithMasses
    is out of sync with the declaration: reorder the `@param` entries to match the
    function signature order (var_mods, peptide, peptide_is_n_terminal,
    peptide_is_c_terminal, max_variable_mods_per_peptide, all_modified_peptides,
    keep_original) and rename the final `@param` from keep_unmodified to keep_original
    (and update its description accordingly) so the doc parameters exactly match the
    function parameter names and order.
    - Around line 55-74: The Doxygen parameter name for applyVariableModifications
    is inconsistent with the function declaration: the doc uses keep_unmodified
    while the signature uses keep_original; update either the declaration parameter
    name in applyVariableModifications to keep_unmodified or change the Doxygen to
    document keep_original so they match, and ensure the `@param` description remains
    accurate for the chosen symbol (applyVariableModifications, var_mods, peptide,
    max_variable_mods_per_peptide, all_modified_peptides,
    keep_original/keep_unmodified).
    - Around line 76-90: Add a Doxygen `@brief` block for the public struct
    SequenceMassPair and update its constructors: remove noexcept from the lvalue
    copy constructor SequenceMassPair(const AASequence& s, double m) (since copying
    AASequence may throw) but keep noexcept on the move constructor
    SequenceMassPair(AASequence&& s, double m), and ensure the member initializer
    lists follow the declaration order (mass then sequence) to avoid warnings;
    reference SequenceMassPair, its two constructors, and members mass and sequence
    when making these changes.
    - Around line 165-187: In getPeptides, the terminal flags are swapped and the
    C-terminal check is wrong: set peptide_is_n_terminal = (start == 0) (keep as is)
    and set peptide_is_c_terminal = (end == protein_sequence.size()) (not
    peptide.size()-1), then call
    ModifiedPeptideGenerator::generateVariableModifiedPeptidesWithMasses with the
    arguments in the correct order (pass peptide_is_n_terminal as the 3rd parameter
    and peptide_is_c_terminal as the 4th) so N- and C-terminal variable mods are
    applied correctly.
    
    In `@src/tests/class_tests/openms/source/ModifiedPeptideGenerator_test.cpp`:
    - Line 90: Update the test's START_SECTION description to match the actual
    function signature for generateVariableModifiedPeptidesWithMasses: replace the
    incorrect std::vector< AASequence > &all_modified_peptides reference with
    std::vector<SequenceMassPair>& all_modified_peptides (and remove any lingering
    AASequence-only wording); ensure the signature in the START_SECTION exactly
    matches "static void generateVariableModifiedPeptidesWithMasses(const
    ModifiedPeptideGenerator::MapToResidueType& var_mods, const AASequence& peptide,
    Size max_variable_mods_per_peptide, std::vector<SequenceMassPair>&
    all_modified_peptides, bool keep_unmodified=true)" so the test metadata aligns
    with the actual function.
    
    🧹 Nitpick comments (5)
    src/openms/include/OpenMS/CHEMISTRY/ModifiedPeptideGenerator.h (2)

    140-163: DigestAndModify class is missing Doxygen documentation and is defined entirely inline in the header.

    The class, its constructor, and getPeptides lack @brief Doxygen documentation. Per coding guidelines, new public classes and methods require Doxygen with @brief. Also, the class body and all method implementations are fully inline in the header — guidelines recommend pairing each .h with a .cpp and keeping one class per file. I understand from PR comments that moving this to a separate file is a known TODO, so flagging this as a reminder.

    As per coding guidelines: "Add Doxygen comments for new public methods and classes", "One class per file; pair each .h header file with a corresponding .cpp implementation file".


    224-224: Redundant blank line before closing brace.

    Static analysis (CodeFactor) flagged this.

    Suggested fix
         const ModifiedPeptideGenerator::MapToResidueType& getFixedMods() const 
         {
           return fixed_mods_;
    -    }    
    -
    +    }
       };
    src/openms/source/CHEMISTRY/ModifiedPeptideGenerator.cpp (2)

    268-421: Significant code duplication with applyVariableModifications.

    This function is nearly identical to applyVariableModifications (lines 132–266), differing only in:

    1. Operating on SequenceMassPair instead of AASequence
    2. Computing and propagating the initial mass
    3. Handling PROTEIN_N_TERM / PROTEIN_C_TERM in the terminal-mods loop (lines 325–338)

    The PROTEIN_N_TERM/PROTEIN_C_TERM handling is a genuine improvement over the existing function. Consider backporting that logic to applyVariableModifications as well, and refactoring both functions to share the common compatibility-map construction logic to reduce duplication. CodeFactor also flagged this as a complex method.


    362-366: Stale TODO comment copied from existing function.

    The comment on lines 362–365 says "currently no explicit support in OpenMS for protein C-term and protein N-term" followed by "TODO This is not true anymore!" — but this new function does handle PROTEIN_N_TERM and PROTEIN_C_TERM in the terminal-mods section above (lines 325–338). The TODO was copied verbatim from applyVariableModifications and is misleading here. Consider removing or updating the comment.

    src/tests/class_tests/openms/source/ModifiedPeptideGenerator_test.cpp (1)

    90-195: Good test coverage for the new mass-tracking function, but missing multi-modification combinatoric tests and DigestAndModify tests.

    The existing applyVariableModifications test section includes extensive multi-site tests (2 sites with combinatorics, 3 sites with 2 mods, 3 sites with 3 mods, occupied sites, terminal + residue mods). The new generateVariableModifiedPeptidesWithMasses tests stop at single-site scenarios and terminal mods, missing the combinatoric cases where mass tracking is most likely to have subtle bugs (accumulated mass deltas across multiple mods).

    Additionally, there are no tests for the new DigestAndModify class at all — its getPeptides method, terminal detection logic, and interaction with digestion + modification are untested.

    I understand from PR comments that tests may be re-enabled after refactoring, but flagging for tracking.

    Based on learnings: "Write unit tests for new functionality" and "Always run and extend tests when making code changes; do not skip tests".

    Comment on lines +55 to 74
    /**
    * @brief Apply variable modifications to a peptide.
    *
    * This function applies variable modifications to a given peptide based on the provided mapping
    * of modifications to residue types. It generates all possible modified peptide variants
    * considering the specified constraints such as the maximum number of variable modifications
    * allowed per peptide and whether unmodified peptides should be retained.
    *
    * @param var_mods A mapping of modifications to residue types.
    * @param peptide The original peptide to which modifications will be applied.
    * @param max_variable_mods_per_peptide The maximum number of variable modifications allowed per peptide.
    * @param all_modified_peptides Output container. Generated modified peptides are appended.
    * @param keep_unmodified Flag indicating whether unmodified peptides should be retained.
    */
    static void applyVariableModifications(
    const MapToResidueType& var_mods,
    const AASequence& peptide,
    Size max_variable_mods_per_peptide,
    std::vector<AASequence>& all_modified_peptides,
    bool keep_original=true);

    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.

    ⚠️ Potential issue | 🟡 Minor

    Parameter name mismatch between Doxygen and declaration.

    The Doxygen documents @param keep_unmodified (line 67) but the function declaration uses keep_original (line 74). This inconsistency can confuse callers.

    Suggested fix
    -    * `@param` keep_unmodified Flag indicating whether unmodified peptides should be retained.
    +    * `@param` keep_original Flag indicating whether unmodified peptides should be retained.
    📝 Committable suggestion

    ‼️ IMPORTANT
    Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

    Suggested change
    /**
    * @brief Apply variable modifications to a peptide.
    *
    * This function applies variable modifications to a given peptide based on the provided mapping
    * of modifications to residue types. It generates all possible modified peptide variants
    * considering the specified constraints such as the maximum number of variable modifications
    * allowed per peptide and whether unmodified peptides should be retained.
    *
    * @param var_mods A mapping of modifications to residue types.
    * @param peptide The original peptide to which modifications will be applied.
    * @param max_variable_mods_per_peptide The maximum number of variable modifications allowed per peptide.
    * @param all_modified_peptides Output container. Generated modified peptides are appended.
    * @param keep_unmodified Flag indicating whether unmodified peptides should be retained.
    */
    static void applyVariableModifications(
    const MapToResidueType& var_mods,
    const AASequence& peptide,
    Size max_variable_mods_per_peptide,
    std::vector<AASequence>& all_modified_peptides,
    bool keep_original=true);
    /**
    * `@brief` Apply variable modifications to a peptide.
    *
    * This function applies variable modifications to a given peptide based on the provided mapping
    * of modifications to residue types. It generates all possible modified peptide variants
    * considering the specified constraints such as the maximum number of variable modifications
    * allowed per peptide and whether unmodified peptides should be retained.
    *
    * `@param` var_mods A mapping of modifications to residue types.
    * `@param` peptide The original peptide to which modifications will be applied.
    * `@param` max_variable_mods_per_peptide The maximum number of variable modifications allowed per peptide.
    * `@param` all_modified_peptides Output container. Generated modified peptides are appended.
    * `@param` keep_original Flag indicating whether unmodified peptides should be retained.
    */
    static void applyVariableModifications(
    const MapToResidueType& var_mods,
    const AASequence& peptide,
    Size max_variable_mods_per_peptide,
    std::vector<AASequence>& all_modified_peptides,
    bool keep_original=true);
    🤖 Prompt for AI Agents
    In `@src/openms/include/OpenMS/CHEMISTRY/ModifiedPeptideGenerator.h` around lines
    55 - 74, The Doxygen parameter name for applyVariableModifications is
    inconsistent with the function declaration: the doc uses keep_unmodified while
    the signature uses keep_original; update either the declaration parameter name
    in applyVariableModifications to keep_unmodified or change the Doxygen to
    document keep_original so they match, and ensure the `@param` description remains
    accurate for the chosen symbol (applyVariableModifications, var_mods, peptide,
    max_variable_mods_per_peptide, all_modified_peptides,
    keep_original/keep_unmodified).
    

    Comment on lines +76 to +90
    struct SequenceMassPair
    {
    SequenceMassPair(const AASequence& s, double m) noexcept :
    mass(m),
    sequence(s)
    {}

    SequenceMassPair(AASequence&& s, double m) noexcept :
    mass(m),
    sequence(std::move(s))
    {}

    double mass{};
    AASequence sequence;
    };

    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.

    ⚠️ Potential issue | 🟡 Minor

    SequenceMassPair: member initialization order differs from declaration order.

    The constructors initialize mass before sequence, but mass is declared before sequence (lines 88-89), so the initialization order happens to match here. However, the Doxygen @brief documentation is missing for this public struct, which is required per coding guidelines.

    Also, the noexcept on the lvalue constructor (line 78) is potentially incorrect — copying an AASequence may allocate and could throw. Only the move constructor (line 83) should be noexcept.

    Suggested fix
    +    /// `@brief` Pairs an AASequence with its monoisotopic mass.
         struct SequenceMassPair
         {
    -      SequenceMassPair(const AASequence& s, double m) noexcept :
    +      SequenceMassPair(const AASequence& s, double m) :
             mass(m), 
             sequence(s)
             {}

    As per coding guidelines: src/openms/include/OpenMS/**/*.h: "Add Doxygen comments for new public methods and classes" and use @brief tag (required).

    📝 Committable suggestion

    ‼️ IMPORTANT
    Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

    Suggested change
    struct SequenceMassPair
    {
    SequenceMassPair(const AASequence& s, double m) noexcept :
    mass(m),
    sequence(s)
    {}
    SequenceMassPair(AASequence&& s, double m) noexcept :
    mass(m),
    sequence(std::move(s))
    {}
    double mass{};
    AASequence sequence;
    };
    /// `@brief` Pairs an AASequence with its monoisotopic mass.
    struct SequenceMassPair
    {
    SequenceMassPair(const AASequence& s, double m) :
    mass(m),
    sequence(s)
    {}
    SequenceMassPair(AASequence&& s, double m) noexcept :
    mass(m),
    sequence(std::move(s))
    {}
    double mass{};
    AASequence sequence;
    };
    🤖 Prompt for AI Agents
    In `@src/openms/include/OpenMS/CHEMISTRY/ModifiedPeptideGenerator.h` around lines
    76 - 90, Add a Doxygen `@brief` block for the public struct SequenceMassPair and
    update its constructors: remove noexcept from the lvalue copy constructor
    SequenceMassPair(const AASequence& s, double m) (since copying AASequence may
    throw) but keep noexcept on the move constructor SequenceMassPair(AASequence&&
    s, double m), and ensure the member initializer lists follow the declaration
    order (mass then sequence) to avoid warnings; reference SequenceMassPair, its
    two constructors, and members mass and sequence when making these changes.
    

    Comment on lines +92 to +116
    /**
    * @brief Apply variable modifications to a peptide to obtain the modified sequence and mass.
    *
    * This function applies variable modifications to a given peptide based on the provided mapping
    * of modifications to residue types. It generates all possible modified peptide variants
    * considering the specified constraints such as the maximum number of variable modifications
    * allowed per peptide and whether unmodified peptides should be retained. Additionally, it
    * calculates and stores the monoisotopic mass of each modified peptide.
    *
    * @param var_mods A mapping of modifications to residue types.
    * @param peptide The original peptide to which modifications will be applied.
    * @param max_variable_mods_per_peptide The maximum number of variable modifications allowed per peptide.
    * @param peptide_is_n_terminal Whether the peptide is N-terminal in the protein sequence. Needed to correctly apply terminal modifications.
    * @param peptide_is_c_terminal Whether the peptide is C-terminal. Needed to correctly apply terminal modifications.
    * @param all_modified_peptides Output container. Generated modified peptides with their masses are appended.
    * @param keep_unmodified Flag indicating whether unmodified peptides should be retained.
    */
    static void generateVariableModifiedPeptidesWithMasses(
    const MapToResidueType& var_mods,
    const AASequence& peptide,
    bool peptide_is_n_terminal,
    bool peptide_is_c_terminal,
    Size max_variable_mods_per_peptide,
    std::vector<SequenceMassPair>& all_modified_peptides,
    bool keep_original=true);

    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.

    ⚠️ Potential issue | 🟡 Minor

    Doxygen parameter order doesn't match the function signature.

    In the Doxygen block (lines 101-107), @param peptide_is_n_terminal appears before @param peptide_is_c_terminal, which matches the signature. However, @param max_variable_mods_per_peptide is listed before the terminal params in the signature but after them in the doc. Minor, but the param doc order should follow the declaration order for clarity.

    Also note the last param is documented as keep_unmodified but the declaration uses keep_original — these should be consistent.

    🤖 Prompt for AI Agents
    In `@src/openms/include/OpenMS/CHEMISTRY/ModifiedPeptideGenerator.h` around lines
    92 - 116, The Doxygen for generateVariableModifiedPeptidesWithMasses is out of
    sync with the declaration: reorder the `@param` entries to match the function
    signature order (var_mods, peptide, peptide_is_n_terminal,
    peptide_is_c_terminal, max_variable_mods_per_peptide, all_modified_peptides,
    keep_original) and rename the final `@param` from keep_unmodified to keep_original
    (and update its description accordingly) so the doc parameters exactly match the
    function parameter names and order.
    

    Comment on lines +165 to +187
    void getPeptides(const StringView& protein_sequence, std::vector<ModifiedPeptideGenerator::SequenceMassPair>& modified_peptides)
    {
    std::vector<std::pair<Size, Size>> output;
    digestor_.digestUnmodified(protein_sequence, output, min_length_, max_length_);

    for (const auto&[start, end] : output)
    {
    AASequence peptide = AASequence::fromString(protein_sequence.substr(start, end - start).getString());
    ModifiedPeptideGenerator::applyFixedModifications(fixed_mods_, peptide); // this could be done on protein level. not sure if worth the rewrite

    // determine if peptide is C-terminal, N-terminal, both (or none of them) and pass it to ensure modifications are correctly applied
    bool peptide_is_n_terminal = (start == 0);
    bool peptide_is_c_terminal = (end == peptide.size() - 1);
    ModifiedPeptideGenerator::generateVariableModifiedPeptidesWithMasses(variable_mods_,
    peptide,
    peptide_is_c_terminal,
    peptide_is_n_terminal,
    max_variable_mods_per_peptide_,
    modified_peptides,
    true);
    }
    return;
    }

    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.

    ⚠️ Potential issue | 🔴 Critical

    🧩 Analysis chain

    🏁 Script executed:

    #!/bin/bash
    # Verify the parameter order of generateVariableModifiedPeptidesWithMasses declaration
    # and check what digestUnmodified returns (start, end semantics)
    echo "=== Declaration of generateVariableModifiedPeptidesWithMasses ==="
    rg -n "generateVariableModifiedPeptidesWithMasses" --type cpp --type-add 'cpp:*.h' -A 8
    
    echo ""
    echo "=== digestUnmodified signature and documentation ==="
    rg -n "digestUnmodified" --type cpp --type-add 'cpp:*.h' -B 5 -A 10

    Repository: OpenMS/OpenMS

    Length of output: 50369


    Critical: swapped peptide_is_n_terminal / peptide_is_c_terminal arguments and incorrect C-terminal check.

    The function generateVariableModifiedPeptidesWithMasses expects peptide_is_n_terminal as the 3rd argument and peptide_is_c_terminal as the 4th (declared at lines 109–116), but the call at lines 178–181 passes them in reverse order. This silently swaps the terminal flags, causing protein N-terminal modifications to be applied to C-terminal peptides and vice versa.

    Additionally, the C-terminal check on line 177 compares end (a position in the protein sequence) against peptide.size() - 1 (the peptide length minus one). Since end is exclusive (as shown by the substr(start, end - start) usage on line 172), it should compare against protein_sequence.size() to determine if the peptide extends to the end of the protein.

    Proposed fix
             // determine if peptide is C-terminal, N-terminal, both (or none of them) and pass it to ensure modifications are correctly applied
             bool peptide_is_n_terminal = (start == 0);
    -        bool peptide_is_c_terminal = (end == peptide.size() - 1);
    +        bool peptide_is_c_terminal = (end == protein_sequence.size());
             ModifiedPeptideGenerator::generateVariableModifiedPeptidesWithMasses(variable_mods_, 
               peptide,
    -          peptide_is_c_terminal,
               peptide_is_n_terminal,
    +          peptide_is_c_terminal,
               max_variable_mods_per_peptide_, 
               modified_peptides, 
               true);
    🤖 Prompt for AI Agents
    In `@src/openms/include/OpenMS/CHEMISTRY/ModifiedPeptideGenerator.h` around lines
    165 - 187, In getPeptides, the terminal flags are swapped and the C-terminal
    check is wrong: set peptide_is_n_terminal = (start == 0) (keep as is) and set
    peptide_is_c_terminal = (end == protein_sequence.size()) (not peptide.size()-1),
    then call ModifiedPeptideGenerator::generateVariableModifiedPeptidesWithMasses
    with the arguments in the correct order (pass peptide_is_n_terminal as the 3rd
    parameter and peptide_is_c_terminal as the 4th) so N- and C-terminal variable
    mods are applied correctly.
    

    }
    END_SECTION

    START_SECTION((static void generateVariableModifiedPeptidesWithMasses(const ModifiedPeptideGenerator::MapToResidueType& var_mods, const AASequence& peptide, Size max_variable_mods_per_peptide, std::vector< AASequence > &all_modified_peptides, bool keep_unmodified=true)))

    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.

    ⚠️ Potential issue | 🟡 Minor

    START_SECTION description does not match the actual function signature.

    The section description references std::vector< AASequence > &all_modified_peptides but the function under test uses std::vector<SequenceMassPair>&. This was likely copy-pasted from the applyVariableModifications test section.

    Suggested fix
    -START_SECTION((static void generateVariableModifiedPeptidesWithMasses(const ModifiedPeptideGenerator::MapToResidueType& var_mods, const AASequence& peptide, Size max_variable_mods_per_peptide, std::vector< AASequence > &all_modified_peptides, bool keep_unmodified=true)))
    +START_SECTION((static void generateVariableModifiedPeptidesWithMasses(const ModifiedPeptideGenerator::MapToResidueType& var_mods, const AASequence& peptide, bool peptide_is_n_terminal, bool peptide_is_c_terminal, Size max_variable_mods_per_peptide, std::vector<ModifiedPeptideGenerator::SequenceMassPair>& all_modified_peptides, bool keep_original=true)))
    📝 Committable suggestion

    ‼️ IMPORTANT
    Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

    Suggested change
    START_SECTION((static void generateVariableModifiedPeptidesWithMasses(const ModifiedPeptideGenerator::MapToResidueType& var_mods, const AASequence& peptide, Size max_variable_mods_per_peptide, std::vector< AASequence > &all_modified_peptides, bool keep_unmodified=true)))
    START_SECTION((static void generateVariableModifiedPeptidesWithMasses(const ModifiedPeptideGenerator::MapToResidueType& var_mods, const AASequence& peptide, bool peptide_is_n_terminal, bool peptide_is_c_terminal, Size max_variable_mods_per_peptide, std::vector<ModifiedPeptideGenerator::SequenceMassPair>& all_modified_peptides, bool keep_original=true)))
    🤖 Prompt for AI Agents
    In `@src/tests/class_tests/openms/source/ModifiedPeptideGenerator_test.cpp` at
    line 90, Update the test's START_SECTION description to match the actual
    function signature for generateVariableModifiedPeptidesWithMasses: replace the
    incorrect std::vector< AASequence > &all_modified_peptides reference with
    std::vector<SequenceMassPair>& all_modified_peptides (and remove any lingering
    AASequence-only wording); ensure the signature in the START_SECTION exactly
    matches "static void generateVariableModifiedPeptidesWithMasses(const
    ModifiedPeptideGenerator::MapToResidueType& var_mods, const AASequence& peptide,
    Size max_variable_mods_per_peptide, std::vector<SequenceMassPair>&
    all_modified_peptides, bool keep_unmodified=true)" so the test metadata aligns
    with the actual function.
    

    @timosachsenberg

    Copy link
    Copy Markdown
    Contributor

    To keep our PR queue easier to manage, we will start closing stale PRs more frequently. This also makes it easier to automate handling of PRs that are still work in progress. Please do not take this personally—closed PRs can always be reopened or continued in a fresh PR when needed.

    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.

    3 participants