Skip to content

Remove macos intel bump Ubuntu to 24.04 - #8450

Merged
poshul merged 23 commits into
developfrom
remove_macos_intel
Dec 13, 2025
Merged

poshul merged 23 commits into
developfrom
remove_macos_intel

Conversation

@poshul

@poshul poshul commented Dec 9, 2025 •

Copy link
Copy Markdown
Collaborator

@jpfeuffer can I get a sanity check that this isn't going to break anything else?

Summary by CodeRabbit

  • Bug Fixes

    • Added bounds/validation for intensity computations and fixed signed/unsigned index issues.
    • Restricted compiler-specific diagnostic pragmas to clang-only to avoid cross-compiler warnings.
  • Chores

    • Aligned CI runners/toolchains, raised macOS deployment target to 14, removed Intel macOS builds, and simplified artifact/copy steps.
    • Modernized GUI signal-slot bindings, adjusted compiler flags, and improved CI submission/reporting behavior.
  • Documentation

    • Minor changelog wording correction.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Dec 9, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Updates CI matrices/runners and macOS deployment target; guards Clang-only pragmas with #ifdef __clang__; modernizes Qt signal-slot calls; aligns index types with Eigen/container expectations; adds small safety checks/initializations; tweaks compiler flags and CDash per-submit submission handling.

Changes

Cohort / File(s) Summary
CI workflows
​.github/workflows/openms_ci_matrix_full.yml, ​.github/workflows/pyopenms-wheels.yml, ​.github/workflows/test_pyopenms.yml
Update runner OS/toolchains (Windows→windows-2025, Ubuntu→24.04, macOS→macos-14/Xcode 15.4), bump compilers, set MACOSX_DEPLOYMENT_TARGET 12→14, simplify THIRDPARTY copy logic, adjust matrices and artifact steps (remove macOS‑intel build block).
CI/CD submission logic
tools/ci/cibuild.cmake
Convert CDash/ctest handling to per-submit submissions; capture per-submit return values/errors and track overall submission failures with _any_submit_failed.
Compiler flags
cmake/compiler_flags.cmake
Add -Wno-psabi to GNU++ compile options.
Clang pragma conditionalization
src/.../FORMAT/InspectOutfile.cpp, src/.../FORMAT/MzTabFile.cpp, src/.../KERNEL/MSSpectrum.cpp, src/topp/MzTabExporter.cpp, src/topp/QCCalculator.cpp, many src/tests/class_tests/openms/source/*, src/topp/*
Wrap #pragma clang diagnostic push/ignored/pop with #ifdef __clang__ guards across sources and tests to avoid emitting Clang-specific pragmas on non-Clang compilers.
Qt signal-slot & menu/action modernization
src/openms_gui/source/VISUAL/APPLICATIONS/INIFileEditorWindow.cpp, src/openms_gui/source/VISUAL/APPLICATIONS/TOPPASBase.cpp, src/openms_gui/source/VISUAL/TOPPViewMenu.cpp
Replace old SLOT() macro connections with pointer-to-member slot syntax and standardize addAction() parameter ordering/overload usage.
Index/loop type alignment (tests & code)
src/tests/class_tests/openms/source/*QuantitationMethod*_test.cpp, src/tests/.../Matrix_test.cpp, src/tests/.../MRMScoring_test.cpp, src/tests/.../NonNegativeLeastSquaresSolver_test.cpp, src/tests/.../Residue_test.cpp, others
Change iteration index types from size_t/int to Eigen::Index (and some int→size_t) to match Eigen/container index expectations.
FragmentIndex adjustments
src/openms/source/ANALYSIS/ID/FragmentIndex.cpp, src/openms/include/OpenMS/ANALYSIS/ID/FragmentIndex.h
Use protein_idx for parallel loop indexing, pass explicit pair<uint16_t,uint16_t> endpoints to emplace_back, and update copyright notice.
JSON type-safety fixes
src/openms/source/CHEMISTRY/RibonucleotideDB.cpp
Replace implicit JSON accesses with explicit .get<...>() and .dump(); use e->get<double>() for monoisotopic mass extraction.
Bounds checks & initializations
src/openms/source/ANALYSIS/ID/HyperScore.cpp, src/openms/source/FEATUREFINDER/ElutionModelFitter.cpp, src/openms/source/FEATUREFINDER/FeatureFinderIdentificationAlgorithm.cpp
Add guard for intensity_sum length in HyperScore, initialize MassTrace::max_rt for artificial zero traces, and initialize RTRegion with {start,end,ChargeMap()}.
Signed/unsigned & cast fixes
src/openms/source/FORMAT/HANDLERS/MzMLHandler.cpp, src/openms_gui/source/VISUAL/TOPPASOutputFolderVertex.cpp, various tests
Cast loop bounds/indices to SignedSize/Size/size_t to avoid signed/unsigned comparison issues.
GUI/window API change
src/openms_gui/source/VISUAL/SpectraIDViewTab.cpp
Use fragment_window_->activateWindow() instead of QApplication::setActiveWindow(...).
Changelog/text
CHANGELOG
Minor wording edit: macOS Intel release notice adjusted to past tense.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Points needing extra attention:

  • Consistency and placement of #ifdef __clang__ guards across many source and test files.
  • Correctness of Eigen Eigen::Index substitutions in tests (ensure no implicit type/overflow issues).
  • Validation of Qt connection replacements and addAction() overload choices preserving shortcuts/flags.
  • Verify cibuild.cmake per-submit error capture/propagation logic and messaging.
  • Confirm HyperScore early-return threshold and any downstream assumptions about returned value.

Possibly related PRs

Suggested labels

Review effort 2/5

Suggested reviewers

  • jpfeuffer

Poem

A rabbit hops through code and CI,
I guard pragmas where clang may lie,
I tweak indices, bind a slot,
Per‑submit checks — I nibble a dot,
Pipelines hum as carrots fly 🐰✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 17.39% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ 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 clearly summarizes the main changes: removing macOS Intel support and upgrading Ubuntu to 24.04. It accurately reflects the primary objectives visible throughout the changeset (workflow updates, compiler/OS bumps, and macOS Intel deprecation notice in CHANGELOG).
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch remove_macos_intel

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 157ba0f and ac7da05.

📒 Files selected for processing (1)
  • .github/workflows/openms_ci_matrix_full.yml (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
  • GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
  • GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
  • GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
  • GitHub Check: build-win
  • GitHub Check: build-lnx
  • GitHub Check: build-macos-arm
  • GitHub Check: build-lnx-arm
  • GitHub Check: cppcheck-test
🔇 Additional comments (3)
.github/workflows/openms_ci_matrix_full.yml (3)

46-78: Matrix configuration updates look good. The OS/compiler upgrades are well-chosen: Windows 2025 + MSVC 14.44, macOS 14 + Xcode 15.4 (Intel support removed), and Ubuntu 24.04 + modern compilers (GCC 13, Clang 17) are reasonable for a maintained project. The addition of ubuntu-24.04-arm is a nice touch for multi-arch coverage.


353-375: THIRDPARTY copy simplification is good. Removing the macOS-specific conditional branching (line 365) and using a flat THIRDPARTY/All structure is a clean simplification now that Intel support is removed and the matrix is consolidated to macos-14.


438-438: MACOSX_DEPLOYMENT_TARGET correctly set to 14.0. The conditional ternary properly targets macOS 14 only for macOS runners and leaves the variable empty for other platforms.


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: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
.github/workflows/pyopenms-wheels.yml (1)

727-735: Artifact download will fail - macOS-X64-wheels no longer produced.

The publish job still attempts to download macOS-X64-wheels artifact (lines 727-731), but since the build-macos job (which produced Intel/x64 wheels) has been removed from this workflow, this artifact will not exist.

This will cause the publish job to fail with an artifact not found error.

You need to remove the macOS-X64-wheels download step:

-    - name: Download artifacts
-      uses: actions/download-artifact@v4
-      with:
-          name: macOS-X64-wheels
-          path: /home/runner/work/OpenMS/OpenMS/macOS-X64-wheels
.github/workflows/openms_ci_matrix_full.yml (1)

55-61: Verify the macOS runner label.

The value macos-26 is not a valid GitHub Actions macOS runner. As of December 2025, the available runners are macos-latest (mapped to macos-15), macos-15, macos-14, and macos-13 (deprecated).

However, the compiler version "26.0" is valid—Xcode 26 was released in September 2025.

Did you intend macos-15 or macos-latest instead?

🧹 Nitpick comments (2)
.github/workflows/pyopenms-wheels.yml (2)

638-641: Consider removing dead code for macOS Intel Miniconda installation.

The conditional block for installing Miniconda on macOS X64 (lines 638-641) is now dead code since macos-latest on GitHub Actions resolves to ARM64 runners, and there's no explicit x64 macOS in the test matrix.

This is not a bug but could be cleaned up for clarity.

-          elif [[ "${{ runner.os }}" == "macOS" && "${{ runner.arch }}" == "X64" ]]; then
-            MINICONDA_FILENAME=Miniconda3-latest-MacOSX-x86_64.sh
-            curl -o $MINICONDA_FILENAME "https://repo.anaconda.com/miniconda/$MINICONDA_FILENAME"
-            bash ${MINICONDA_FILENAME} -b -f -p $HOME/miniconda3

668-670: Dead code for macOS X64 conda-forge config.

Similarly, this conditional for adding conda-forge channel on macOS X64 is now dead code and can be removed.

-        if [[ "${{ runner.os }}" == "macOS" && "${{ runner.arch }}" == "X64" ]]; then
-          conda config --add channels conda-forge
-        fi
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 76025a9 and 9c1d192.

📒 Files selected for processing (3)
  • .github/workflows/openms_ci_matrix_full.yml (10 hunks)
  • .github/workflows/pyopenms-wheels.yml (1 hunks)
  • CHANGELOG (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Be aware of OpenMS dependencies and external libraries

Applied to files:

  • CHANGELOG
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: build-lnx
  • GitHub Check: build-lnx-arm
  • GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
  • GitHub Check: build-and-test (ubuntu-22.04-arm, g++, 11)
  • GitHub Check: build-and-test (macos-26, xcode, 26.0)
  • GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
  • GitHub Check: build-and-test (windows-2022, cl.exe, 14.36)
  • GitHub Check: build-macos-arm
  • GitHub Check: build-win
  • GitHub Check: cppcheck-test
🔇 Additional comments (6)
CHANGELOG (1)

23-24: LGTM!

The tense change from "is going to be" to "was" correctly reflects that macOS Intel support has now been officially dropped as of this PR.

.github/workflows/openms_ci_matrix_full.yml (4)

451-451: Confirm Parquet support is intentionally disabled.

WITH_PARQUET is set to "OFF" here. The AI summary mentions "Parquet support toggling" and the pyopenms-wheels.yml still has WITH_PARQUET: "ON".

Is disabling Parquet in the main CI workflow intentional? If so, consider adding a comment explaining why it's disabled here but enabled in the pyopenms workflow.


552-585: Architecture-agnostic conditions look correct.

The removal of architecture-specific guards (runner.arch != 'arm64' or similar) from the documentation, tarball, and artifact upload steps makes sense for this PR's goal of simplifying the CI matrix. This ensures these artifacts are produced from whichever Ubuntu build runs first, regardless of architecture.


165-165: Verify changelog creation condition.

The condition now checks startsWith(matrix.os, 'ubuntu') without an architecture qualifier. This means the changelog will be created from whichever Ubuntu runner executes this step first. Given the matrix includes both ubuntu-22.04 and ubuntu-22.04-arm, this should still work correctly since both will run with matrix.compiler != 'clang++'.


418-418: Fix the cibuild.cmake path to remove duplicate "OpenMS" directory.

The path ../OpenMS/OpenMS/tools/ci/cibuild.cmake is incorrect. The actual file is located at tools/ci/cibuild.cmake in the repository root. From the build working directory ($GITHUB_WORKSPACE/OpenMS/bld/), the correct relative path should be ../tools/ci/cibuild.cmake.

Change line 418 to use: ../tools/ci/cibuild.cmake

⛔ Skipped due to learnings
Learnt from: pjones
Repo: OpenMS/OpenMS PR: 8042
File: doc/doxygen/install/install-linux.doxygen:37-37
Timestamp: 2025-05-23T10:58:51.257Z
Learning: In the OpenMS project, Doxygen is run with a non-standard working directory, so snippet paths that may look incorrect (like "../../tools/ci/deps-ubuntu.sh" in doc/doxygen/install/install-linux.doxygen) are actually correct. The snippet markers in shell scripts use the format "# [marker_name]" rather than the alternative "#! [marker_name]" format.
.github/workflows/pyopenms-wheels.yml (1)

614-620: LGTM - macOS Intel correctly removed from test matrix.

The test job dependencies and matrix have been updated to reflect the removal of macOS Intel builds. The build-macos-arm is included in needs, and the test matrix no longer includes macOS Intel entries.

@poshul poshul changed the title Remove macos intel Remove macos intel bump Ubuntu to 24.04 Dec 9, 2025

@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: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
.github/workflows/pyopenms-wheels.yml (1)

638-650: Remove dead code handling macOS X64 Miniconda installation.

Lines 638–645 contain a conditional that will never execute on modern GitHub runners since macos-latest only provides ARM64 architecture. The condition "${{ runner.arch }}" == "X64" for macOS is unreachable with the current test matrix at line 620.

Similarly, lines 668–670 have another unreachable condition for the same reason.

These dead code paths should be removed to clarify the supported configurations and avoid confusion about what actually runs.

Apply this diff to remove the unreachable X64 Miniconda installation:

          elif [[ "${{ runner.os }}" == "macOS" && "${{ runner.arch }}" == "ARM64"  ]]; then
            MINICONDA_FILENAME=Miniconda3-latest-MacOSX-arm64.sh
            curl -o $MINICONDA_FILENAME "https://repo.anaconda.com/miniconda/$MINICONDA_FILENAME"
            bash ${MINICONDA_FILENAME} -b -f -p $HOME/miniconda3
-          elif [[ "${{ runner.os }}" == "macOS" && "${{ runner.arch }}" == "X64" ]]; then
-            MINICONDA_FILENAME=Miniconda3-latest-MacOSX-x86_64.sh
-            curl -o $MINICONDA_FILENAME "https://repo.anaconda.com/miniconda/$MINICONDA_FILENAME"
-            bash ${MINICONDA_FILENAME} -b -f -p $HOME/miniconda3
          elif [[ "${{ runner.os }}" == "Windows" ]]; then

And remove the unreachable conda config logic:

        echo $PYTHON_VERSIONS
-        if [[ "${{ runner.os }}" == "macOS" && "${{ runner.arch }}" == "X64" ]]; then
-          conda config --add channels conda-forge
-        fi

        for py in $(echo "${PYTHON_VERSIONS}" | jq -r '.[]'); do
.github/workflows/openms_ci_matrix_full.yml (1)

136-160: Update macOS contrib paths for compatibility with macos-26.

The hardcoded contrib paths at lines 139–140 specify outdated versions:

  • contrib_os_ver=10.15.5/ (macOS Catalina, 2019)
  • contrib_compiler=appleclang-11.0.0/ (Xcode 11, 2019)

These are set for all macOS builds without version-specific branching. With macos-26 in the matrix, verify that the contrib repository provides prebuilt binaries at these paths. If not, update them to match currently available versions in the contrib repository that are compatible with Xcode 26.0 and macOS Sequoia or later.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ffc029a and 5d9838b.

📒 Files selected for processing (2)
  • .github/workflows/openms_ci_matrix_full.yml (2 hunks)
  • .github/workflows/pyopenms-wheels.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
  • GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
  • GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
  • GitHub Check: build-and-test (macos-26, xcode, 26.0)
  • GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
  • GitHub Check: build-lnx-arm
  • GitHub Check: build-win
  • GitHub Check: build-lnx
  • GitHub Check: build-macos-arm
  • GitHub Check: cppcheck-test
🔇 Additional comments (2)
.github/workflows/openms_ci_matrix_full.yml (2)

46-78: Confirm macOS 26 runner availability and verify all matrix entries are available.

The CI matrix has been updated with newer OS versions:

  • Windows: windows-2025 (line 46)
  • macOS: macos-26 with XCode 26.0 (lines 55, 61)
  • Ubuntu: ubuntu-24.04 with GCC 13 (lines 65, 68, 72, 74, 76, 78)

These are relatively recent OS versions for GitHub Actions runners. Confirm that:

  1. macos-26 runner label is available and stable on GitHub Actions
  2. All compiler versions specified are present on these runners

You can verify runner availability by checking the GitHub Actions documentation or testing a workflow dispatch with these runner labels. If macos-26 is not yet available or causes issues, you may need to use macos-latest with explicit Xcode version selection instead.


353-375: THIRDPARTY structure correctly supports unified binary handling.

The THIRDPARTY setup is properly implemented for multi-platform builds. The submodule is initialized in line 358 (git submodule update --init THIRDPARTY) and binaries are copied from OpenMS/THIRDPARTY/All/* in line 365. The comment on line 361 ("use flat THIRDPARTY structure") confirms this is the intended design. No OS-specific THIRDPARTY paths or conditional logic are present in the workflow, indicating the macOS Intel-specific handling was successfully removed and the unified approach is correct.

Comment thread .github/workflows/pyopenms-wheels.yml Resolved
@jpfeuffer

Copy link
Copy Markdown
Contributor

No I think it is fine.
But check the coderabbit comments. They look correct but I am not sure if you fixed them already.
It also mentions that quite some if cases in the steps could be removed now.

@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: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5d9838b and 461509f.

📒 Files selected for processing (21)
  • .github/workflows/pyopenms-wheels.yml (1 hunks)
  • src/openms/source/CHEMISTRY/RibonucleotideDB.cpp (3 hunks)
  • src/openms/source/CHEMISTRY/Tagger.cpp (1 hunks)
  • src/openms/source/FORMAT/InspectOutfile.cpp (2 hunks)
  • src/openms/source/FORMAT/MzTabFile.cpp (2 hunks)
  • src/openms/source/KERNEL/MSSpectrum.cpp (2 hunks)
  • src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/CachedMzML_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/ConstRefVector_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/DPosition_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/IDFilter_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/IsotopeDistribution_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/ParamCTDFile_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/ParamJSONFile_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/String_test.cpp (2 hunks)
  • src/topp/MzTabExporter.cpp (2 hunks)
  • src/topp/QCCalculator.cpp (2 hunks)
✅ Files skipped from review due to trivial changes (3)
  • src/openms/source/FORMAT/InspectOutfile.cpp
  • src/openms/source/FORMAT/MzTabFile.cpp
  • src/openms/source/CHEMISTRY/Tagger.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/pyopenms-wheels.yml
🧰 Additional context used
📓 Path-based instructions (2)
src/tests/class_tests/openms/**/*.cpp

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Write unit tests for new functionality

Files:

  • src/tests/class_tests/openms/source/IDFilter_test.cpp
  • src/tests/class_tests/openms/source/ConstRefVector_test.cpp
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/DPosition_test.cpp
  • src/tests/class_tests/openms/source/ParamJSONFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp
  • src/tests/class_tests/openms/source/ParamCTDFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzML_test.cpp
  • src/tests/class_tests/openms/source/IsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/String_test.cpp
  • src/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
src/openms/**/*.{cpp,h,hpp,cc,cxx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/openms/**/*.{cpp,h,hpp,cc,cxx}: Follow the existing C++ coding conventions in the codebase
Use the established naming patterns for classes, methods, and variables
Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)
Follow the established error handling patterns
Utilize OpenMS logging mechanisms
Be mindful of memory usage when processing large datasets
Consider algorithmic complexity for data processing operations
Use appropriate OpenMS containers and algorithms

Files:

  • src/openms/source/KERNEL/MSSpectrum.cpp
  • src/openms/source/CHEMISTRY/RibonucleotideDB.cpp
🧠 Learnings (16)
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/**/*.cpp : Write unit tests for new functionality

Applied to files:

  • src/tests/class_tests/openms/source/IDFilter_test.cpp
  • src/topp/MzTabExporter.cpp
  • src/tests/class_tests/openms/source/ConstRefVector_test.cpp
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/DPosition_test.cpp
  • src/tests/class_tests/openms/source/ParamJSONFile_test.cpp
  • src/openms/source/KERNEL/MSSpectrum.cpp
  • src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp
  • src/tests/class_tests/openms/source/ParamCTDFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzML_test.cpp
  • src/tests/class_tests/openms/source/IsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/String_test.cpp
  • src/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/*Test.cpp : Follow naming convention: `ClassNameTest.cpp` for `ClassName`

Applied to files:

  • src/tests/class_tests/openms/source/IDFilter_test.cpp
  • src/topp/MzTabExporter.cpp
  • src/tests/class_tests/openms/source/ConstRefVector_test.cpp
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/DPosition_test.cpp
  • src/tests/class_tests/openms/source/ParamJSONFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp
  • src/tests/class_tests/openms/source/ParamCTDFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzML_test.cpp
  • src/tests/class_tests/openms/source/IsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/String_test.cpp
  • src/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Follow the established error handling patterns

Applied to files:

  • src/tests/class_tests/openms/source/IDFilter_test.cpp
  • src/topp/MzTabExporter.cpp
  • src/tests/class_tests/openms/source/ConstRefVector_test.cpp
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/DPosition_test.cpp
  • src/tests/class_tests/openms/source/ParamJSONFile_test.cpp
  • src/openms/source/KERNEL/MSSpectrum.cpp
  • src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp
  • src/tests/class_tests/openms/source/ParamCTDFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzML_test.cpp
  • src/tests/class_tests/openms/source/IsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/String_test.cpp
  • src/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use appropriate OpenMS containers and algorithms

Applied to files:

  • src/tests/class_tests/openms/source/IDFilter_test.cpp
  • src/topp/MzTabExporter.cpp
  • src/tests/class_tests/openms/source/ConstRefVector_test.cpp
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/DPosition_test.cpp
  • src/tests/class_tests/openms/source/ParamJSONFile_test.cpp
  • src/openms/source/KERNEL/MSSpectrum.cpp
  • src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp
  • src/tests/class_tests/openms/source/ParamCTDFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzML_test.cpp
  • src/tests/class_tests/openms/source/IsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes

Applied to files:

  • src/tests/class_tests/openms/source/IDFilter_test.cpp
  • src/topp/MzTabExporter.cpp
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/openms/source/KERNEL/MSSpectrum.cpp
  • src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp
  • src/tests/class_tests/openms/source/CachedMzML_test.cpp
  • src/tests/class_tests/openms/source/String_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Be mindful of memory usage when processing large datasets

Applied to files:

  • src/tests/class_tests/openms/source/IDFilter_test.cpp
  • src/topp/MzTabExporter.cpp
  • src/tests/class_tests/openms/source/ConstRefVector_test.cpp
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/DPosition_test.cpp
  • src/tests/class_tests/openms/source/ParamJSONFile_test.cpp
  • src/openms/source/KERNEL/MSSpectrum.cpp
  • src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp
  • src/tests/class_tests/openms/source/ParamCTDFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzML_test.cpp
  • src/tests/class_tests/openms/source/IsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
📚 Learning: 2025-09-03T12:58:20.032Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8177
File: src/tests/topp/CMakeLists.txt:1857-1865
Timestamp: 2025-09-03T12:58:20.032Z
Learning: OpenMS tests: When adding new TOPP tests in src/tests/topp/CMakeLists.txt that compare outputs via FuzzyDiff, always add set_tests_properties("<tool>_<n>_out<m>" PROPERTIES DEPENDS "<tool>_<n>") to avoid flakiness under parallel CTest runs.

Applied to files:

  • src/tests/class_tests/openms/source/IDFilter_test.cpp
  • src/tests/class_tests/openms/source/ConstRefVector_test.cpp
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/ParamJSONFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp
  • src/tests/class_tests/openms/source/ParamCTDFile_test.cpp
  • src/tests/class_tests/openms/source/String_test.cpp
  • src/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)

Applied to files:

  • src/topp/MzTabExporter.cpp
  • src/tests/class_tests/openms/source/ConstRefVector_test.cpp
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/DPosition_test.cpp
  • src/tests/class_tests/openms/source/ParamJSONFile_test.cpp
  • src/openms/source/KERNEL/MSSpectrum.cpp
  • src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp
  • src/tests/class_tests/openms/source/ParamCTDFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzML_test.cpp
  • src/tests/class_tests/openms/source/IsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use the established naming patterns for classes, methods, and variables

Applied to files:

  • src/topp/MzTabExporter.cpp
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/ParamCTDFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzML_test.cpp
  • src/tests/class_tests/openms/source/IsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/String_test.cpp
  • src/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Utilize OpenMS logging mechanisms

Applied to files:

  • src/topp/MzTabExporter.cpp
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/DPosition_test.cpp
  • src/tests/class_tests/openms/source/ParamJSONFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp
  • src/tests/class_tests/openms/source/ParamCTDFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzML_test.cpp
  • src/tests/class_tests/openms/source/IsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Consider algorithmic complexity for data processing operations

Applied to files:

  • src/topp/MzTabExporter.cpp
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/DPosition_test.cpp
  • src/tests/class_tests/openms/source/IsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
📚 Learning: 2025-08-14T10:19:54.371Z
Learnt from: jpfeuffer
Repo: OpenMS/OpenMS PR: 8167
File: src/topp/Digestor.cpp:200-226
Timestamp: 2025-08-14T10:19:54.371Z
Learning: In OpenMS (C++ bioinformatics framework), use boost random libraries instead of std library random distributions for cross-platform reproducible random number generation, as std library distributions are not reproducible across platforms.

Applied to files:

  • src/topp/MzTabExporter.cpp
  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/DPosition_test.cpp
  • src/tests/class_tests/openms/source/ParamCTDFile_test.cpp
  • src/tests/class_tests/openms/source/IsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Follow the existing C++ coding conventions in the codebase

Applied to files:

  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/DPosition_test.cpp
  • src/openms/source/KERNEL/MSSpectrum.cpp
  • src/tests/class_tests/openms/source/CachedMzML_test.cpp
  • src/tests/class_tests/openms/source/String_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
  • src/tests/class_tests/openms/source/ClusterHierarchical_test.cpp
📚 Learning: 2025-06-16T15:48:09.667Z
Learnt from: FreezB11
Repo: OpenMS/OpenMS PR: 7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like `cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":`. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.

Applied to files:

  • src/tests/class_tests/openms/source/ParamXMLFile_test.cpp
  • src/tests/class_tests/openms/source/ParamJSONFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp
  • src/tests/class_tests/openms/source/ParamCTDFile_test.cpp
  • src/tests/class_tests/openms/source/CachedMzML_test.cpp
  • src/tests/class_tests/openms/source/MRMDecoy_test.cpp
📚 Learning: 2025-09-24T14:10:28.986Z
Learnt from: jpfeuffer
Repo: OpenMS/OpenMS PR: 7298
File: src/openms/include/OpenMS/ANALYSIS/ID/IDMergerAlgorithm.h:262-264
Timestamp: 2025-09-24T14:10:28.986Z
Learning: Never use iterator post-increment with unordered_set::extract() (e.g., extract(it++)) as extract() invalidates the iterator immediately, making the post-incremented iterator invalid. Use while(!empty()) with extract(begin()) instead.

Applied to files:

  • src/tests/class_tests/openms/source/DPosition_test.cpp
📚 Learning: 2025-10-15T07:49:09.293Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8177
File: src/openms/include/OpenMS/PROCESSING/CENTROIDING/PeakPickerIM.h:11-14
Timestamp: 2025-10-15T07:49:09.293Z
Learning: In OpenMS, DefaultParamHandler.h is located under OpenMS/DATASTRUCTURES/, not OpenMS/CONCEPT/. The correct include is: `#include <OpenMS/DATASTRUCTURES/DefaultParamHandler.h>`

Applied to files:

  • src/tests/class_tests/openms/source/ParamJSONFile_test.cpp
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: build-lnx
  • GitHub Check: build-lnx-arm
  • GitHub Check: build-macos-arm
  • GitHub Check: build-win
  • GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
  • GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
  • GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
  • GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
  • GitHub Check: build-and-test (macos-26, xcode, 26.0)
  • GitHub Check: cppcheck-test
🔇 Additional comments (23)
src/tests/class_tests/openms/source/ConstRefVector_test.cpp (1)

21-24: LGTM: Clang pragma guards properly implemented.

The addition of #ifdef __clang__ guards around the diagnostic pragmas ensures these compiler-specific directives only apply when building with Clang, improving cross-compiler compatibility without affecting runtime behavior.

Also applies to: 1051-1053

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

31-34: LGTM: Clang pragma guards correctly applied.

The conditional compilation guards ensure clang-specific diagnostics are only processed by Clang, preventing potential warnings or errors on other compilers.

Also applies to: 262-264

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

34-37: LGTM: Conditional pragma compilation properly implemented.

The clang-specific diagnostic directives are now correctly guarded, ensuring clean compilation across different compilers.

Also applies to: 704-706

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

28-31: LGTM: Clang diagnostics properly guarded.

The preprocessor guards ensure compiler-specific pragmas are conditionally compiled, maintaining portability across different toolchains.

Also applies to: 912-914

src/topp/QCCalculator.cpp (1)

74-77: LGTM: Compiler-specific pragmas correctly guarded.

The conditional compilation of clang diagnostics improves cross-compiler compatibility while preserving the shadow warning suppression for Clang builds.

Also applies to: 174-176

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

24-27: LGTM: Pragma guards correctly implemented.

The clang-specific diagnostic directives are now conditionally compiled, ensuring compatibility with non-Clang compilers without affecting test behavior.

Also applies to: 396-398

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

23-26: LGTM: Conditional compilation guards properly applied.

The pragma guards ensure clang-specific diagnostics are only processed by Clang, maintaining clean builds across different compilers.

Also applies to: 449-451

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

22-25: LGTM: Clang pragma guards correctly implemented.

The conditional compilation guards ensure clang-specific diagnostic directives are only active during Clang builds, improving portability without impacting test functionality.

Also applies to: 532-534

src/openms/source/KERNEL/MSSpectrum.cpp (1)

478-494: LGTM! Correctly guards clang-specific diagnostic pragmas.

The #ifdef __clang__ guards ensure these pragmas are only processed by the Clang compiler, which is the proper approach for compiler-specific directives. The push/pop pair is correctly matched.

src/openms/source/CHEMISTRY/RibonucleotideDB.cpp (4)

22-38: LGTM! Well-structured ADL serializer for EmpiricalFormula.

The adl_serializer specialization correctly enables explicit JSON conversion for EmpiricalFormula, aligning with nlohmann/json's requirement for explicit conversions. The from_json and to_json implementations are clean and appropriate.


109-109: LGTM! Explicit type conversion for JSON access.

Using .at("short_name").get<std::string>() is the correct approach for explicit JSON-to-type conversion.


183-183: LGTM! Explicit string conversion for HTML code.


196-199: LGTM! Explicit double conversion for monoisotopic mass.

The explicit .get<double>() conversion is correct and consistent with the pattern used throughout this file.

src/topp/MzTabExporter.cpp (2)

68-71: LGTM! Properly guarded clang diagnostic pragma.

The #ifdef __clang__ guard correctly ensures the -Wshadow suppression is only applied when compiling with Clang.


206-208: LGTM! Matching pragma pop with proper guard.

The closing #pragma clang diagnostic pop is correctly guarded to match the opening block.

src/tests/class_tests/openms/source/ParamJSONFile_test.cpp (2)

20-23: LGTM! Clang diagnostic guards for test file.

The #ifdef __clang__ guards correctly wrap the -Wshadow suppression pragmas.


120-122: LGTM! Matching pragma pop guard.

src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp (2)

20-23: LGTM! Clang diagnostic guards correctly applied.

The #ifdef __clang__ guards ensure the -Wshadow warning suppression is only processed by Clang compilers.


395-397: LGTM! Matching pragma pop with proper guard.

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

19-22: Clang diagnostic pragmas now correctly guarded and balanced

Wrapping the existing clang diagnostic push/ignored and corresponding pop with #ifdef __clang__ is symmetric and scope-preserving, so non-clang toolchains no longer see clang-only pragmas while clang behavior remains unchanged. No further changes or tests needed here.

Also applies to: 588-590

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

20-23: Consistent clang-only pragma guarding

The added #ifdef __clang__ around the existing clang diagnostic push/ignored and pop is consistent with the pattern in other tests, keeps pragmas clang-specific, and doesn’t alter test behavior. Looks good.

Also applies to: 204-206

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

27-30: Scoped clang unreachable-code suppression is correctly guarded

Adding #ifdef __clang__ around the clang diagnostic push/ignored "-Wunreachable-code" and matching pop cleanly scopes the suppression to LowlevelComparator and avoids clang-specific pragmas on other compilers. No functional or test-behavior changes introduced.

Also applies to: 140-142

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

35-39: Shadow-warning suppression now safely constrained to clang

The #ifdef __clang__ wrappers around the existing clang diagnostic push/ignored "-Wshadow" / pop pair are well-formed and maintain previous behavior on clang while making non-clang builds cleaner. No additional action required.

Also applies to: 1123-1125

@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: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/openms/source/FEATUREFINDER/ElutionModelFitter.cpp (1)

299-301: Zero-intensity “outside” points are currently placed inside the feature range

offset is computed as:

double offset = 0.2 * (region_start - region_end);
trace.peaks.emplace_back(region_start - offset, ...);
trace.peaks.emplace_back(region_end + offset, ...);

For the typical case region_start < region_end, this makes offset negative, so:

  • region_start - offset moves right (inside the region),
  • region_end + offset moves left (also inside the region).

This contradicts the parameter description (“Add zero-intensity points outside the feature range”) and likely weakens the intended constraint on the fit.

A minimal fix would be:

-      double offset = 0.2 * (region_start - region_end);
+      const double offset = 0.2 * (region_end - region_start);

which will place the two zero points symmetrically outside [region_start, region_end] when region_start < region_end.

🧹 Nitpick comments (1)
src/openms/source/FEATUREFINDER/ElutionModelFitter.cpp (1)

291-297: Explicit max_rt initialization is fine, but consider centralizing this invariant

The explicit trace.max_rt = 0.0; avoids any use of an uninitialized double for the artificial zero-intensity trace, which is good.

If the invariant for MassTrace is that max_rt is always consistent with the contained peaks (as it is for the real traces via updateMaximum()), it may be cleaner to either:

  • ensure MassTrace’s default constructor value-initializes max_rt (and other related members) across the board, or
  • call trace.updateMaximum(); after adding the zero-intensity peaks here, instead of assigning max_rt manually.

This would keep initialization logic in one place and reduce the chance of future divergence between max_rt and other MassTrace state.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 461509f and 887efc9.

📒 Files selected for processing (5)
  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp (2 hunks)
  • src/openms/source/CHEMISTRY/RibonucleotideDB.cpp (3 hunks)
  • src/openms/source/FEATUREFINDER/ElutionModelFitter.cpp (1 hunks)
  • src/openms/source/FEATUREFINDER/FeatureFinderIdentificationAlgorithm.cpp (1 hunks)
  • src/openms/source/FORMAT/HANDLERS/MzMLHandler.cpp (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/openms/source/CHEMISTRY/RibonucleotideDB.cpp
🧰 Additional context used
📓 Path-based instructions (1)
src/openms/**/*.{cpp,h,hpp,cc,cxx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/openms/**/*.{cpp,h,hpp,cc,cxx}: Follow the existing C++ coding conventions in the codebase
Use the established naming patterns for classes, methods, and variables
Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)
Follow the established error handling patterns
Utilize OpenMS logging mechanisms
Be mindful of memory usage when processing large datasets
Consider algorithmic complexity for data processing operations
Use appropriate OpenMS containers and algorithms

Files:

  • src/openms/source/FORMAT/HANDLERS/MzMLHandler.cpp
  • src/openms/source/FEATUREFINDER/FeatureFinderIdentificationAlgorithm.cpp
  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
  • src/openms/source/FEATUREFINDER/ElutionModelFitter.cpp
🧠 Learnings (10)
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Be mindful of memory usage when processing large datasets

Applied to files:

  • src/openms/source/FORMAT/HANDLERS/MzMLHandler.cpp
  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Follow the established error handling patterns

Applied to files:

  • src/openms/source/FORMAT/HANDLERS/MzMLHandler.cpp
  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use appropriate OpenMS containers and algorithms

Applied to files:

  • src/openms/source/FORMAT/HANDLERS/MzMLHandler.cpp
  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Consider algorithmic complexity for data processing operations

Applied to files:

  • src/openms/source/FORMAT/HANDLERS/MzMLHandler.cpp
  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/**/*.cpp : Write unit tests for new functionality

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Utilize OpenMS logging mechanisms

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-14T10:19:54.371Z
Learnt from: jpfeuffer
Repo: OpenMS/OpenMS PR: 8167
File: src/topp/Digestor.cpp:200-226
Timestamp: 2025-08-14T10:19:54.371Z
Learning: In OpenMS (C++ bioinformatics framework), use boost random libraries instead of std library random distributions for cross-platform reproducible random number generation, as std library distributions are not reproducible across platforms.

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Be aware of OpenMS dependencies and external libraries

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: build-and-test (macos-26, xcode, 26.0)
  • GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
  • GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
  • GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
  • GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
  • GitHub Check: build-lnx-arm
  • GitHub Check: build-macos-arm
  • GitHub Check: build-lnx
  • GitHub Check: build-win
  • GitHub Check: cppcheck-test
🔇 Additional comments (3)
src/openms/source/ANALYSIS/ID/FragmentIndex.cpp (1)

85-87: Signed/unsigned cleanup in OpenMP loop looks good

Casting fasta_entries.size() to SignedSize in the loop condition removes the mixed signed/unsigned comparison while keeping the OpenMP loop variable in the expected signed type. Behavior remains unchanged for realistic FASTA sizes.

src/openms/source/FORMAT/HANDLERS/MzMLHandler.cpp (1)

345-352: Index cast for skipping m/z and intensity arrays is correct

Using static_cast<SignedSize>(i) to compare against int_index and mz_index eliminates the signed/unsigned mismatch without changing which arrays are skipped; the logic is preserved and clearer to the compiler.

src/openms/source/FEATUREFINDER/FeatureFinderIdentificationAlgorithm.cpp (1)

1467-1470: RT region merge refactor is correct and behavior‑preserving

The new logic cleanly merges overlapping RT windows:

  • rts is sorted, so for each rt, rt + rt_tolerance is monotonically non‑decreasing; thus unconditionally setting rt_regions.back().end = rt + rt_tolerance in the overlap case cannot shrink the region and is equivalent to taking max(old_end, new_end).
  • A new region is only started when rt_regions is empty or the previous end is strictly before rt - rt_tolerance, which is the correct disjointness check.
  • Aggregate initialization rt_regions.push_back({rt - rt_tolerance, rt + rt_tolerance}); is idiomatic for a POD‑like RTRegion and keeps the code concise without altering semantics.

No edge‑case regressions are apparent (empty peptide_data ⇒ empty rts ⇒ no regions, and the later region assignment loop does not dereference reg_it when there are no RT entries). This looks good as‑is.

@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: 0

🧹 Nitpick comments (7)
src/openms_gui/source/VISUAL/TOPPASOutputFolderVertex.cpp (1)

91-91: Type-safety improvement looks good, but consider changing member variable types.

The explicit cast resolves the signed/unsigned comparison warning. However, since round_total_ (and round_counter_ on line 77) are always assigned from or compared with Size values, consider refactoring them to be Size instead of int to eliminate the need for casts throughout the code.

Note: Line 135 uses pkg.size() directly while line 91 now uses round_total_ with a cast, creating a minor inconsistency in approach.

If you'd like to refactor, change the member variable declarations from int to Size:

-  int round_total_;
-  int round_counter_;
+  Size round_total_;
+  Size round_counter_;

Then remove the casts on lines 76 and 137:

-    round_total_ = (int) pkg.size();
+    round_total_ = pkg.size();
-        round_counter_ = (int)round;
+        round_counter_ = round;

And simplify line 91:

-    for (Size round = 0; round < static_cast<Size>(round_total_); ++round)
+    for (Size round = 0; round < round_total_; ++round)
src/openms_gui/source/VISUAL/APPLICATIONS/INIFileEditorWindow.cpp (1)

47-52: Complete the Qt signal/slot syntax migration for consistency.

Lines 47 and 49 have been migrated to the modern Qt5 pointer-to-member syntax, but lines 50 and 52 still use the old SLOT macro. For consistency and maintainability, all actions in the same context should use the same connection style.

Apply this diff to complete the migration:

-    file->addAction("Save &As", this, SLOT(saveFileAs()));
+    file->addAction("Save &As", this, &INIFileEditorWindow::saveFileAs);
     file->addSeparator();
-    file->addAction("&Quit", this, SLOT(close()));
+    file->addAction("&Quit", this, &INIFileEditorWindow::close);
src/openms_gui/source/VISUAL/TOPPViewMenu.cpp (1)

80-80: Complete the Qt signal/slot syntax migration for consistency.

Line 80 still uses the old SLOT macro while the rest of the file has been migrated to the modern Qt5 pointer-to-member syntax. For consistency, this should also be updated.

Apply this diff:

-    m_file->addAction("&Quit", qApp, SLOT(quit()));
+    m_file->addAction("&Quit", qApp, &QApplication::quit);
src/openms_gui/source/VISUAL/APPLICATIONS/TOPPASBase.cpp (4)

149-152: Complete the Qt signal/slot syntax migration in the File menu.

While lines 132-141 have been migrated to the modern Qt5 pointer-to-member syntax, lines 149-152 still use the old SLOT macro. For consistency, all actions in the File menu should use the same connection style.

Apply this diff:

-    file->addAction("&Load TOPPAS resource file", this, SLOT(loadPipelineResourceFile()));
-    file->addAction("Sa&ve TOPPAS resource file", this, SLOT(savePipelineResourceFile()));
+    file->addAction("&Load TOPPAS resource file", this, &TOPPASBase::loadPipelineResourceFile);
+    file->addAction("Sa&ve TOPPAS resource file", this, &TOPPASBase::savePipelineResourceFile);
     file->addSeparator();
-    file->addAction("&Quit", qApp, SLOT(quit()));
+    file->addAction("&Quit", qApp, &QApplication::quit);

157-158: Complete the Qt signal/slot syntax migration in the Pipeline menu.

The Pipeline menu actions still use the old SLOT macro while most of the File and Help menus have been migrated to the modern Qt5 pointer-to-member syntax. For consistency across the codebase, these should also be updated.

Apply this diff:

-    pipeline->addAction("&Run (F5)", this, SLOT(runPipeline()));
-    pipeline->addAction("&Abort", this, SLOT(abortPipeline()));
+    pipeline->addAction("&Run (F5)", this, &TOPPASBase::runPipeline);
+    pipeline->addAction("&Abort", this, &TOPPASBase::abortPipeline);

173-173: Complete the Qt signal/slot syntax migration in the Help menu.

Line 173 still uses the old SLOT macro while lines 167 and 169 in the same Help menu have been migrated to the modern Qt5 pointer-to-member syntax. For consistency, this should also be updated.

Apply this diff:

-    help->addAction("&About", this, SLOT(showAboutDialog()));
+    help->addAction("&About", this, &TOPPASBase::showAboutDialog);

245-245: Consider migrating this connect() call to modern Qt5 syntax.

Line 245 uses the old SIGNAL/SLOT macro syntax for a connect() call. While the addAction() calls in the menus have been migrated to the modern Qt5 pointer-to-member syntax, this connect() call remains in the old style. For consistency, consider migrating this as well.

Apply this diff:

-    connect(desc_, SIGNAL(textChanged()), this, SLOT(descriptionUpdated_()));
+    connect(desc_, &QTextEdit::textChanged, this, &TOPPASBase::descriptionUpdated_);
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 887efc9 and 48e71a1.

📒 Files selected for processing (20)
  • src/openms/source/ANALYSIS/ID/HyperScore.cpp (1 hunks)
  • src/openms/source/FEATUREFINDER/FeatureFinderIdentificationAlgorithm.cpp (1 hunks)
  • src/openms_gui/source/VISUAL/APPLICATIONS/INIFileEditorWindow.cpp (1 hunks)
  • src/openms_gui/source/VISUAL/APPLICATIONS/TOPPASBase.cpp (2 hunks)
  • src/openms_gui/source/VISUAL/SpectraIDViewTab.cpp (1 hunks)
  • src/openms_gui/source/VISUAL/TOPPASOutputFolderVertex.cpp (1 hunks)
  • src/openms_gui/source/VISUAL/TOPPViewMenu.cpp (4 hunks)
  • src/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/ItraqEightPlexQuantitationMethod_test.cpp (1 hunks)
  • src/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cpp (1 hunks)
  • src/tests/class_tests/openms/source/MRMScoring_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/Matrix_test.cpp (1 hunks)
  • src/tests/class_tests/openms/source/NonNegativeLeastSquaresSolver_test.cpp (2 hunks)
  • src/tests/class_tests/openms/source/QuantmsIO_test.cpp (1 hunks)
  • src/tests/class_tests/openms/source/Residue_test.cpp (1 hunks)
  • src/tests/class_tests/openms/source/TMTEighteenPlexQuantitationMethod_test.cpp (1 hunks)
  • src/tests/class_tests/openms/source/TMTElevenPlexQuantitationMethod_test.cpp (1 hunks)
  • src/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cpp (1 hunks)
  • src/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cpp (1 hunks)
  • src/tests/class_tests/openms/source/TMTTenPlexQuantitationMethod_test.cpp (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • src/tests/class_tests/openms/source/MRMScoring_test.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/openms/source/FEATUREFINDER/FeatureFinderIdentificationAlgorithm.cpp
🧰 Additional context used
📓 Path-based instructions (2)
src/tests/class_tests/openms/**/*.cpp

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Write unit tests for new functionality

Files:

  • src/tests/class_tests/openms/source/Residue_test.cpp
  • src/tests/class_tests/openms/source/TMTTenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/Matrix_test.cpp
  • src/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTEighteenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/ItraqEightPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/NonNegativeLeastSquaresSolver_test.cpp
  • src/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/QuantmsIO_test.cpp
  • src/tests/class_tests/openms/source/TMTElevenPlexQuantitationMethod_test.cpp
src/openms/**/*.{cpp,h,hpp,cc,cxx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/openms/**/*.{cpp,h,hpp,cc,cxx}: Follow the existing C++ coding conventions in the codebase
Use the established naming patterns for classes, methods, and variables
Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)
Follow the established error handling patterns
Utilize OpenMS logging mechanisms
Be mindful of memory usage when processing large datasets
Consider algorithmic complexity for data processing operations
Use appropriate OpenMS containers and algorithms

Files:

  • src/openms/source/ANALYSIS/ID/HyperScore.cpp
🧠 Learnings (10)
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/*Test.cpp : Follow naming convention: `ClassNameTest.cpp` for `ClassName`

Applied to files:

  • src/tests/class_tests/openms/source/Residue_test.cpp
  • src/tests/class_tests/openms/source/TMTTenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/Matrix_test.cpp
  • src/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTEighteenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/ItraqEightPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/NonNegativeLeastSquaresSolver_test.cpp
  • src/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/QuantmsIO_test.cpp
  • src/tests/class_tests/openms/source/TMTElevenPlexQuantitationMethod_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/**/*.cpp : Write unit tests for new functionality

Applied to files:

  • src/tests/class_tests/openms/source/Residue_test.cpp
  • src/tests/class_tests/openms/source/TMTTenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/Matrix_test.cpp
  • src/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTEighteenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/ItraqEightPlexQuantitationMethod_test.cpp
  • src/openms_gui/source/VISUAL/TOPPASOutputFolderVertex.cpp
  • src/tests/class_tests/openms/source/NonNegativeLeastSquaresSolver_test.cpp
  • src/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/QuantmsIO_test.cpp
  • src/tests/class_tests/openms/source/TMTElevenPlexQuantitationMethod_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use appropriate OpenMS containers and algorithms

Applied to files:

  • src/tests/class_tests/openms/source/Residue_test.cpp
  • src/tests/class_tests/openms/source/TMTTenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTEighteenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/ItraqEightPlexQuantitationMethod_test.cpp
  • src/openms_gui/source/VISUAL/TOPPASOutputFolderVertex.cpp
  • src/tests/class_tests/openms/source/NonNegativeLeastSquaresSolver_test.cpp
  • src/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/QuantmsIO_test.cpp
  • src/tests/class_tests/openms/source/TMTElevenPlexQuantitationMethod_test.cpp
📚 Learning: 2025-09-03T12:58:20.032Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8177
File: src/tests/topp/CMakeLists.txt:1857-1865
Timestamp: 2025-09-03T12:58:20.032Z
Learning: OpenMS tests: When adding new TOPP tests in src/tests/topp/CMakeLists.txt that compare outputs via FuzzyDiff, always add set_tests_properties("<tool>_<n>_out<m>" PROPERTIES DEPENDS "<tool>_<n>") to avoid flakiness under parallel CTest runs.

Applied to files:

  • src/tests/class_tests/openms/source/TMTTenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTEighteenPlexQuantitationMethod_test.cpp
  • src/openms_gui/source/VISUAL/TOPPASOutputFolderVertex.cpp
  • src/tests/class_tests/openms/source/NonNegativeLeastSquaresSolver_test.cpp
  • src/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/QuantmsIO_test.cpp
  • src/tests/class_tests/openms/source/TMTElevenPlexQuantitationMethod_test.cpp
📚 Learning: 2025-06-16T15:49:26.504Z
Learnt from: FreezB11
Repo: OpenMS/OpenMS PR: 7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.

Applied to files:

  • src/tests/class_tests/openms/source/TMTTenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Consider algorithmic complexity for data processing operations

Applied to files:

  • src/tests/class_tests/openms/source/TMTTenPlexQuantitationMethod_test.cpp
  • src/openms/source/ANALYSIS/ID/HyperScore.cpp
  • src/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/ItraqEightPlexQuantitationMethod_test.cpp
  • src/openms_gui/source/VISUAL/TOPPASOutputFolderVertex.cpp
  • src/tests/class_tests/openms/source/NonNegativeLeastSquaresSolver_test.cpp
  • src/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/QuantmsIO_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Be mindful of memory usage when processing large datasets

Applied to files:

  • src/openms/source/ANALYSIS/ID/HyperScore.cpp
  • src/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/QuantmsIO_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes

Applied to files:

  • src/openms/source/ANALYSIS/ID/HyperScore.cpp
  • src/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)

Applied to files:

  • src/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/ItraqEightPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cpp
  • src/tests/class_tests/openms/source/QuantmsIO_test.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Follow the established error handling patterns

Applied to files:

  • src/tests/class_tests/openms/source/QuantmsIO_test.cpp
🧬 Code graph analysis (1)
src/tests/class_tests/openms/source/Matrix_test.cpp (1)
src/openms/include/OpenMS/ANALYSIS/ID/AhoCorasickAmbiguous.h (1)
  • Index (211-220)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: build-lnx
  • GitHub Check: build-lnx-arm
  • GitHub Check: build-macos-arm
  • GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
  • GitHub Check: build-win
  • GitHub Check: build-and-test (macos-26, xcode, 26.0)
  • GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
  • GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
  • GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
  • GitHub Check: cppcheck-test
🔇 Additional comments (14)
src/tests/class_tests/openms/source/Residue_test.cpp (1)

742-742: LGTM! Type consistency improvement.

Changing the loop index from int to size_t correctly matches the return type of .size() and eliminates signed/unsigned comparison warnings.

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

65-109: Using size_t for the loop index is correct here

Aligning the loop variable type with pep_strs.size() removes signed/unsigned comparison warnings and is idiomatic for container indexing. All uses of i (indexing, RT/MZ arithmetic, scores, charges, and i % 2) remain safe and unchanged in behavior, so no additional unit tests are needed since this doesn’t introduce new functionality. Based on learnings, unit tests are required only when adding new functionality.

src/openms/source/ANALYSIS/ID/HyperScore.cpp (1)

326-330: LGTM! Good defensive programming for memory safety.

This validation guard prevents allocation of unreasonably large vectors and handles edge cases appropriately. The check aligns with the coding guideline to be mindful of memory usage when processing large datasets.

Based on learnings, this addresses potential memory issues from invalid input sizes.

src/openms_gui/source/VISUAL/SpectraIDViewTab.cpp (1)

509-514: Switch to fragment_window_->activateWindow() looks correct and safer

Using the instance method activateWindow() instead of QApplication::setActiveWindow(fragment_window_) is idiomatic Qt and keeps activation local to the specific widget. Given that the window is already shown, resized, and focused just before, this change should be behavior‑equivalent or slightly more robust across platforms, without introducing new risks.

If you have access to macOS (ARM) and Linux (Ubuntu 24.04) builds, it would still be good to manually verify that the fragment annotation window is brought to the front and focused when clicking the peak‑annotations cell, to confirm platform behavior matches expectations.

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

60-63: LGTM! Proper use of Eigen::Index for matrix iteration.

The loop index type has been correctly updated to Eigen::Index, which matches the return type of x.rows() and aligns with Eigen's API conventions. This eliminates potential signed/unsigned comparison warnings and follows best practices for Eigen matrix access.

Also applies to: 83-86

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

94-109: LGTM! Correct index type for matrix traversal.

Using Eigen::Index for row and column tracking during matrix iteration is the proper choice. This ensures type compatibility with Eigen matrix operations like getValue(row, col) and aligns with Eigen's signed index semantics.

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

186-193: LGTM! Proper Eigen index types for matrix iteration.

The loop indices have been correctly updated to Eigen::Index, matching the return types of m.rows() and m.cols(). This is the recommended practice for Eigen matrix iteration and avoids signed/unsigned comparison warnings.

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

132-138: LGTM! Correct Eigen index types.

The loop indices properly use Eigen::Index for matrix iteration, which is the standard type for Eigen matrix operations and eliminates potential type mismatch warnings.

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

189-195: LGTM! Proper Eigen index types for matrix iteration.

The use of Eigen::Index for loop indices correctly aligns with Eigen's matrix API and ensures type safety when accessing matrix elements.

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

180-187: LGTM! Correct index type for Eigen matrix access.

Using Eigen::Index for matrix iteration is the proper approach, ensuring compatibility with Eigen's API and avoiding signed/unsigned comparison issues.

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

144-150: LGTM! Consistent use of Eigen::Index across test cases.

Both test sections correctly use Eigen::Index for matrix iteration, following Eigen best practices and maintaining consistency across the test file.

Also applies to: 163-169

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

199-205: LGTM! Proper Eigen index types for matrix iteration.

The loop indices correctly use Eigen::Index, which is consistent with Eigen's API and the changes across all other quantitation method tests in this PR.

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

127-129: LGTM! Correct use of Eigen::Index for matrix indexing.

Using Eigen::Index instead of size_t follows Eigen best practices and ensures type compatibility with Eigen's signed internal indexing system, avoiding potential signed/unsigned comparison warnings.

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

143-145: LGTM! Consistent with Eigen best practices.

The loop index type change to Eigen::Index aligns with the pattern applied across multiple quantitation method tests and follows Eigen's recommended indexing approach.

@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: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
tools/ci/cibuild.cmake (2)

98-114: Critical: submit-failed branch checks _test_errors (undefined) and can let real build failures pass when CDash is down.

-if(NOT _submit_result EQUAL 0)
-  execute_process(COMMAND ${CMAKE_COMMAND} -E echo "::warning file=cibuild.cmake,line=193::CTest submission failed, CDASH server is not available. Continuing execution.")
+if(_any_submit_failed)
+  execute_process(COMMAND ${CMAKE_COMMAND} -E echo "::warning file=${CMAKE_CURRENT_LIST_FILE},line=${CMAKE_CURRENT_LIST_LINE}::CTest submission failed, CDASH server is not available. Continuing execution.")
   message(WARNING "CTest submission failed, no detailed logs will be available.")
-  if (_test_errors)
+  if (_build_errors)
     message(FATAL_ERROR "There were errors: aborting")
   endif()
 else()
   string(REPLACE "+" "%2B" BUILD_NAME_SAFE ${CTEST_BUILD_NAME})
   ...
 endif()

58-66: Replace hardcoded line numbers with CMAKE_CURRENT_LIST_FILE and CMAKE_CURRENT_LIST_LINE; also capture ctest_submit return value explicitly.

ctest_submit with only CAPTURE_CMAKE_ERROR does not detect submission failures—that requires RETURN_VALUE. Additionally, the hardcoded line=168 and line=193 are incorrect (actual lines are 63 and 99) and will drift as code changes.

 ctest_configure (BUILD "${CTEST_BINARY_DIRECTORY}" OPTIONS "${OWN_OPTIONS}" RETURN_VALUE _configure_ret)
-ctest_submit(PARTS Update Configure CAPTURE_CMAKE_ERROR _submit_result)
+ctest_submit(PARTS Update Configure
+            RETURN_VALUE _submit_ret
+            CAPTURE_CMAKE_ERROR _submit_cmake_err)

-if(NOT _submit_result EQUAL 0)
+if(NOT _submit_ret EQUAL 0 OR NOT _submit_cmake_err EQUAL 0)
     execute_process(
-        COMMAND ${CMAKE_COMMAND} -E echo "::warning file=cibuild.cmake,line=168::CTest submission failed, CDASH server is not available. Continuing execution."
+        COMMAND ${CMAKE_COMMAND} -E echo "::warning file=${CMAKE_CURRENT_LIST_FILE},line=${CMAKE_CURRENT_LIST_LINE}::CTest submission failed, CDASH server is not available. Continuing execution."
     )
     message(WARNING "CTest submission failed, no detailed logs will be available.")
 endif()

Apply the same fix to line 99 (and all other hardcoded line= values in the file).

🧹 Nitpick comments (1)
tools/ci/cibuild.cmake (1)

69-92: Optional: collapse repeated ctest_build + ctest_submit blocks into a helper to reduce branching/duplication.
This would also address the “quite some if cases” feedback by centralizing the per-target pattern.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5cc2d14 and 879019f.

📒 Files selected for processing (1)
  • tools/ci/cibuild.cmake (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-09-03T12:58:20.032Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8177
File: src/tests/topp/CMakeLists.txt:1857-1865
Timestamp: 2025-09-03T12:58:20.032Z
Learning: OpenMS tests: When adding new TOPP tests in src/tests/topp/CMakeLists.txt that compare outputs via FuzzyDiff, always add set_tests_properties("<tool>_<n>_out<m>" PROPERTIES DEPENDS "<tool>_<n>") to avoid flakiness under parallel CTest runs.

Applied to files:

  • tools/ci/cibuild.cmake
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: build-macos-arm
  • GitHub Check: build-win
  • GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
  • GitHub Check: build-lnx-arm
  • GitHub Check: build-lnx
  • GitHub Check: build-and-test (macos-26, xcode, 26.0)
  • GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
  • GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
  • GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
  • GitHub Check: cppcheck-test

Comment thread tools/ci/cibuild.cmake Resolved

@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: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/openms/source/ANALYSIS/QUANTITATION/PeptideAndProteinQuant.cpp (1)

176-197: Make label/channel comparison type-consistent (cast looks redundant / potentially misleading).

At Line 185, channel_or_label is already an Int (Line 177), so static_cast<Int>(channel_or_label) is effectively a no-op. If the intent is to avoid mixed-type comparison with entry.label, it’d be clearer to align the function parameter type with decltype(entry.label) (or explicitly convert entry.label to the expected numeric type) and then compare without the redundant cast.

Suggested minimal tweak (if entry.label is integral):

-      if (ed_filename == filename && entry.label == static_cast<Int>(channel_or_label))
+      if (ed_filename == filename && entry.label == channel_or_label)
🧹 Nitpick comments (1)
cmake/compiler_flags.cmake (1)

97-106: Consider guarding -Wno-psabi with a compiler-flag support check to match the pattern used for -fPIC.

The flag has existed since GCC 5 (2014–2015) and is supported by all GCC versions likely to build OpenMS (which requires C++20), but adding a check_cxx_compiler_flag() probe is consistent with the defensive approach already used in this file (line 51 for -fPIC) and improves robustness against future compiler variants or edge cases.

Suggested pattern (reusing existing CheckCXXCompilerFlag module):

+if(CMAKE_COMPILER_IS_GNUCXX)
+  check_cxx_compiler_flag("-Wno-psabi" OPENMS_HAS_WNO_PSABI)
+endif()

Then conditionally apply in the target flags section:

+if(OPENMS_HAS_WNO_PSABI)
+  target_compile_options(${target_name} PRIVATE -Wno-psabi)
+endif()
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 879019f and 96cdb8a.

📒 Files selected for processing (2)
  • cmake/compiler_flags.cmake (1 hunks)
  • src/openms/source/ANALYSIS/QUANTITATION/PeptideAndProteinQuant.cpp (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
src/openms/**/*.{cpp,h,hpp,cc,cxx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/openms/**/*.{cpp,h,hpp,cc,cxx}: Follow the existing C++ coding conventions in the codebase
Use the established naming patterns for classes, methods, and variables
Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)
Follow the established error handling patterns
Utilize OpenMS logging mechanisms
Be mindful of memory usage when processing large datasets
Consider algorithmic complexity for data processing operations
Use appropriate OpenMS containers and algorithms

Files:

  • src/openms/source/ANALYSIS/QUANTITATION/PeptideAndProteinQuant.cpp
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: build-lnx-arm
  • GitHub Check: build-win
  • GitHub Check: build-macos-arm
  • GitHub Check: build-lnx
  • GitHub Check: build-and-test (macos-26, xcode, 26.0)
  • GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
  • GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
  • GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
  • GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
  • GitHub Check: cppcheck-test

@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: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/openms/source/ANALYSIS/ID/FragmentIndex.cpp (1)

78-92: Potential data race: shared ProteaseDigestion digestor used inside #pragma omp parallel for
digestor.digestUnmodified(...) is invoked concurrently; if ProteaseDigestion has any internal mutable state/caching, this is unsafe. Safer: make digestor thread-local (create it inside a #pragma omp parallel region and #pragma omp for, or make it firstprivate). Also, prefer Size/size_t for protein_idx to match fasta_entries.size() and avoid narrowing/unsigned-compare warnings.

-      ProteaseDigestion digestor;
-      digestor.setEnzyme(digestion_enzyme_);
-      digestor.setMissedCleavages(missed_cleavages_);
+      // NOTE: keep digestion state thread-local for OpenMP safety
...
-      vector<pair<size_t, size_t>> digested_peptides; // every thread gets it own copy that is only cleared, not destructed (prevents frequent reallocations)
-      #pragma omp parallel for private(digested_peptides)
-      for (UInt32 protein_idx = 0; protein_idx < fasta_entries.size(); ++protein_idx)
+      #pragma omp parallel
       {
+        ProteaseDigestion digestor;
+        digestor.setEnzyme(digestion_enzyme_);
+        digestor.setMissedCleavages(missed_cleavages_);
+
+        vector<pair<size_t, size_t>> digested_peptides;
+        #pragma omp for
+        for (Size protein_idx = 0; protein_idx < fasta_entries.size(); ++protein_idx)
+        {
           digested_peptides.clear();
           const FASTAFile::FASTAEntry& protein = fasta_entries[protein_idx];
           digestor.digestUnmodified(StringView(protein.sequence), digested_peptides, peptide_min_length_, peptide_max_length_);
+        }
       }

Also applies to: 85-90

🧹 Nitpick comments (4)
src/openms/source/ANALYSIS/ID/FragmentIndex.cpp (2)

1-1: Header/copyright change: ensure consistency across touched files
If this PR is standardizing “OpenMS Inc.”, consider applying the same header update consistently to all modified OpenMS sources in the PR to avoid mixed headers.


123-131: Trim FIIndex critical section + remove unnecessary parens
You can reduce contention by computing indices outside the critical section, and only guarding the fi_peptides_.emplace_back(...) itself. Also emplace_back((protein_idx), ...) can just be emplace_back(protein_idx, ...).

-              #pragma omp critical (FIIndex)
-              {
-                fi_peptides_.emplace_back((protein_idx),
-                                        modification_idx,
-                                        digested_peptide,
-                                        modified_mz);
-                ++modification_idx;
-              }
+              const UInt32 mod_idx = modification_idx++;
+              #pragma omp critical (FIIndex)
+              {
+                fi_peptides_.emplace_back(protein_idx, mod_idx, digested_peptide, modified_mz);
+              }
...
-              #pragma omp critical (FIIndex)
-              {
-                fi_peptides_.emplace_back(protein_idx, 0, digested_peptide, unmodified_mz);
-              }
+              #pragma omp critical (FIIndex)
+              {
+                fi_peptides_.emplace_back(protein_idx, 0, digested_peptide, unmodified_mz);
+              }

Also applies to: 137-141

tools/ci/cibuild.cmake (2)

75-118: DRY: factor the repeated “submit + mark _any_submit_failed” pattern into a small macro.
The repeated blocks (Build / pyopenms / compile_pxds / generate_cwl_files) are easy to accidentally diverge later.

A simple macro(ctest_submit_and_track part) (or similar) would make this safer.


123-139: Final status messaging: consider always pointing to CI logs when CDash submit fails.
In the _any_submit_failed path you warn “no detailed logs will be available” (Line 125) and may fatal on _build_errors (Line 126-128), but you don’t direct users to the canonical fallback (the GitHub Actions job logs / artifacts).

Suggest extending the fatal/warn message to explicitly reference the CI logs as the next place to look (since CDash is unavailable).

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a29d1f9 and 900d463.

📒 Files selected for processing (3)
  • src/openms/include/OpenMS/ANALYSIS/ID/FragmentIndex.h (1 hunks)
  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp (4 hunks)
  • tools/ci/cibuild.cmake (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • src/openms/include/OpenMS/ANALYSIS/ID/FragmentIndex.h
🧰 Additional context used
📓 Path-based instructions (1)
src/openms/**/*.{cpp,h,hpp,cc,cxx}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/openms/**/*.{cpp,h,hpp,cc,cxx}: Follow the existing C++ coding conventions in the codebase
Use the established naming patterns for classes, methods, and variables
Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)
Follow the established error handling patterns
Utilize OpenMS logging mechanisms
Be mindful of memory usage when processing large datasets
Consider algorithmic complexity for data processing operations
Use appropriate OpenMS containers and algorithms

Files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
🧠 Learnings (11)
📚 Learning: 2025-09-03T12:58:20.032Z
Learnt from: timosachsenberg
Repo: OpenMS/OpenMS PR: 8177
File: src/tests/topp/CMakeLists.txt:1857-1865
Timestamp: 2025-09-03T12:58:20.032Z
Learning: OpenMS tests: When adding new TOPP tests in src/tests/topp/CMakeLists.txt that compare outputs via FuzzyDiff, always add set_tests_properties("<tool>_<n>_out<m>" PROPERTIES DEPENDS "<tool>_<n>") to avoid flakiness under parallel CTest runs.

Applied to files:

  • tools/ci/cibuild.cmake
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use OpenMS data structures (e.g., MSExperiment, FeatureMap, PeptideIdentification)

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Use appropriate OpenMS containers and algorithms

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Consider algorithmic complexity for data processing operations

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Be mindful of memory usage when processing large datasets

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Follow the established error handling patterns

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/tests/class_tests/openms/**/*.cpp : Write unit tests for new functionality

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/**/*.{cpp,h,hpp,cc,cxx} : Utilize OpenMS logging mechanisms

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-14T10:19:54.371Z
Learnt from: jpfeuffer
Repo: OpenMS/OpenMS PR: 8167
File: src/topp/Digestor.cpp:200-226
Timestamp: 2025-08-14T10:19:54.371Z
Learning: In OpenMS (C++ bioinformatics framework), use boost random libraries instead of std library random distributions for cross-platform reproducible random number generation, as std library distributions are not reproducible across platforms.

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Be aware of OpenMS dependencies and external libraries

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Applies to src/openms/include/OpenMS/**/*.h : Add Doxygen comments for new public methods and classes

Applied to files:

  • src/openms/source/ANALYSIS/ID/FragmentIndex.cpp
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
  • GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
  • GitHub Check: build-and-test (macos-26, xcode, 26.0)
  • GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
  • GitHub Check: build-lnx-arm
  • GitHub Check: build-macos-arm
  • GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
  • GitHub Check: build-win
  • GitHub Check: build-lnx
  • GitHub Check: cppcheck-test

Comment thread tools/ci/cibuild.cmake
Comment on lines +58 to 71
set(_any_submit_failed 0)

if(NOT _submit_result EQUAL 0)
execute_process(
COMMAND ${CMAKE_COMMAND} -E echo "::warning file=cibuild.cmake,line=168::CTest submission failed, CDASH server is not available. Continuing execution."
)
message(WARNING "CTest submission failed, no detailed logs will be available.")
ctest_configure (BUILD "${CTEST_BINARY_DIRECTORY}" OPTIONS "${OWN_OPTIONS}" RETURN_VALUE _configure_ret)
ctest_submit(PARTS Update Configure
RETURN_VALUE _submit_ret
CAPTURE_CMAKE_ERROR _submit_cmake_err)

if(NOT _submit_ret EQUAL 0 OR NOT _submit_cmake_err EQUAL 0)
set(_any_submit_failed 1)
execute_process(
COMMAND ${CMAKE_COMMAND} -E echo "::warning file=${CMAKE_CURRENT_LIST_FILE},line=${CMAKE_CURRENT_LIST_LINE}::CTest submission failed, CDASH server is not available. Continuing execution."
)
message(WARNING "CTest submission failed, no detailed logs will be available.")
endif()

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 | 🟠 Major

Don’t ignore ctest_configure() failure (_configure_ret is currently unused).
Right now a configure failure won’t flip _any_submit_failed nor fail the job, which can lead to confusing downstream behavior.

Consider failing fast (or explicitly folding it into your error gating):

 ctest_configure (BUILD "${CTEST_BINARY_DIRECTORY}" OPTIONS "${OWN_OPTIONS}" RETURN_VALUE _configure_ret)
+if(NOT _configure_ret EQUAL 0)
+  message(FATAL_ERROR "CTest configure failed: aborting")
+endif()
 ctest_submit(PARTS Update Configure
       RETURN_VALUE _submit_ret
       CAPTURE_CMAKE_ERROR _submit_cmake_err)
🤖 Prompt for AI Agents
In tools/ci/cibuild.cmake around lines 58 to 71, the return value from
ctest_configure (stored in _configure_ret) is ignored so configure failures
don't set _any_submit_failed or stop the job; check _configure_ret immediately
after ctest_configure and if it is non‑zero either set(_any_submit_failed 1) and
emit a warning/error or call message(FATAL_ERROR ...) to fail fast; ensure this
check runs before proceeding to ctest_submit and keep consistent logging
(echo/message) so failures are visible.

@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: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/pyopenms-wheels.yml (1)

612-653: Windows test job Miniconda install path likely mismatches later $HOME/miniconda3 PATH assumptions
In the test job’s Windows Miniconda branch (Line 642-646), the installer command doesn’t set //D=$HOME/miniconda3, but the next step unconditionally appends $HOME/miniconda3/bin / Scripts to GITHUB_PATH (Line 648-653). This can break the Windows test leg depending on where Miniconda ends up.

           elif [[ "${{ runner.os }}" == "Windows" ]]; then
             MINICONDA_FILENAME=Miniconda3-latest-Windows-x86_64.exe
             curl -o $MINICONDA_FILENAME "https://repo.anaconda.com/miniconda/$MINICONDA_FILENAME"
-            ./Miniconda3-latest-Windows-x86_64.exe //InstallationType=JustMe //RegisterPython=0 //S
+            ./"$MINICONDA_FILENAME" //InstallationType=JustMe //RegisterPython=0 //S //D="$HOME/miniconda3"
           fi
🧹 Nitpick comments (1)
.github/workflows/pyopenms-wheels.yml (1)

612-646: Consider collapsing the OS/arch if ladder (now that macOS Intel is gone)
With Intel macOS removed, the Install Miniconda branching is mostly an OS+arch mapping; it’s easy to drift over time. Suggest moving the filename selection into the job matrix (or a small map) to reduce conditionals and make future platform changes safer.

Also applies to: 654-658

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 900d463 and 3744709.

📒 Files selected for processing (2)
  • .github/workflows/pyopenms-wheels.yml (3 hunks)
  • .github/workflows/test_pyopenms.yml (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-08-05T12:43:11.681Z
Learnt from: CR
Repo: OpenMS/OpenMS PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-08-05T12:43:11.681Z
Learning: Do not attempt to build OpenMS unless asked to do so

Applied to files:

  • .github/workflows/pyopenms-wheels.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: build-and-test (windows-2025, cl.exe, 14.44)
  • GitHub Check: build-and-test (ubuntu-24.04, g++, 13)
  • GitHub Check: build-and-test (ubuntu-24.04-arm, g++, 13)
  • GitHub Check: build-and-test (ubuntu-24.04, clang++, 17)
  • GitHub Check: build-and-test (macos-26, xcode, 26.0)
  • GitHub Check: build-lnx
  • GitHub Check: build-macos-arm
  • GitHub Check: build-win
  • GitHub Check: build-lnx-arm
  • GitHub Check: cppcheck-test
🔇 Additional comments (2)
.github/workflows/pyopenms-wheels.yml (1)

197-306: Pinning macOS to macos-14 targets Apple Silicon by default
The build-macos-arm job targets macos-14, which uses arm64 (Apple Silicon) runners by default, and sets MACOSX_DEPLOYMENT_TARGET: "14" accordingly. However, using macos-14 does not drop Intel support—Intel runners remain available via explicit labels (e.g., macos-14-large, macos-14-intel). Verify whether Intel wheel builds are intended to be discontinued or should be added as a separate job.

.github/workflows/test_pyopenms.yml (1)

29-35: Verify if x86_64 Intel testing is required before pinning to macos-14

macos-14 runs arm64 by default (not Intel), so the Intel removal rationale doesn't apply. GitHub currently recommends using arm64 labels (macos-latest, macos-15, or macos-14) for new workflows. If Intel x86_64 testing is not explicitly needed, use macos-latest instead—it tracks the current macOS version and aligns with GitHub's migration path toward Apple Silicon. Pinning to macos-14 makes sense only if arm64 testing at that specific version is required or if deliberate version stability is a stated project goal.

@poshul
poshul requested a review from jpfeuffer December 13, 2025 15:13
@poshul
poshul enabled auto-merge (squash) December 13, 2025 19:35
@poshul
poshul disabled auto-merge December 13, 2025 19:35
@poshul
poshul merged commit b5481c8 into develop Dec 13, 2025
@poshul
poshul deleted the remove_macos_intel branch December 13, 2025 19:35
timosachsenberg pushed a commit that referenced this pull request Sep 26, 2026
…23 requirement

The macOS line cited #8486, #8494 and #8527, which are notarization PRs;
the references came along from a neighbouring bullet when the changelog
was condensed. The minimum came from #8450 (14, with the Intel builds
dropped), #9037 (15, together with C++23 and the macos-15 runners) and
#10202 (15 for the wheels).

The 3.6.0 changelog never said that OpenMS now needs C++23 (#9037). It
now names the minimum compilers from cmake/min_compiler_versions.cmake.

The dataframe page shows default_missing_values=None, the actual default
of PeptideIdentificationList.to_df(), and what None stands for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7
timosachsenberg added a commit that referenced this pull request Sep 26, 2026
…5 minimum (#10285)

* [DOC,PYOPENMS] Update the user guide to the 3.6 API; macOS 15 minimum

The user-guide examples still used the 3.5.0 API. Replayed against a
3.6 wheel built from develop (with the plot_spectrum fix of #10280),
20 of the 46 pages failed, 14 of which had passed on 3.5.0. Now 36
pass. Three still fail, two on bindings that are missing in 3.6 and
one on #10260 item 4. Two need optional packages (datashader, massql).

- Output arguments are return values: pickExperiment, getAllNames,
  digest, align, getDecompositions, getTag, ProtXMLFile.load,
  applyVariableModifications, getSpectrumAlignment,
  MassTraceDetection.run, ElutionPeakDetection.detectPeaks and
  filterByPeakWidth, and SimpleSearchEngineAlgorithm.search.
- Strings are str: no .decode(), str keys and arguments instead of
  b"...", and element compositions print with str keys. char arguments
  such as PeptideEvidence.setAABefore take "R" and reject b"R".
- Removed API: pyopenms.String, DPosition1 and the LogConfigHandler
  constructor.
- Deprecated API: get_df() is now to_df(), and
  peptide_identifications_to_df() is now PeptideIdentificationList.to_df().
  The dataframe page documents the to_df() signatures and the columns
  3.6 returns. The merge example is left for #10260 item 4.
- Examples that could not run anywhere: the FAQ snippet used an
  undefined exp, and memory_management and the detailed peptide search
  read files that exist only in a source checkout. They download their
  input now, like the other pages.
- The stand-alone mass decomposition script imports pyopenms again,
  which also makes the prose's "line 8 and 9" right. The SpectrumLookup
  regex in ms_data is a raw string, which removes the invalid escape
  sequence warning.

CHANGELOG: the minimum macOS version is 15, not 14. The wheels are
built with MACOSX_DEPLOYMENT_TARGET 15.0. In the 2026-09-24 installer,
libOpenMS links a bundled libzstd whose minimum OS is 15.0, so every
TOPP tool needs macOS 15, not only the GUI, whose Qt dependencies are
built for 15 as well.

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

* [DOC] CHANGELOG: cite the PRs behind the macOS minimum; state the C++23 requirement

The macOS line cited #8486, #8494 and #8527, which are notarization PRs;
the references came along from a neighbouring bullet when the changelog
was condensed. The minimum came from #8450 (14, with the Intel builds
dropped), #9037 (15, together with C++23 and the macos-15 runners) and
#10202 (15 for the wheels).

The 3.6.0 changelog never said that OpenMS now needs C++23 (#9037). It
now names the minimum compilers from cmake/min_compiler_versions.cmake.

The dataframe page shows default_missing_values=None, the actual default
of PeptideIdentificationList.to_df(), and what None stands for.

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

* [DOC] peptide_search: call removeDanglingProteinReferences, not its 3.5 name

updateProteinReferences is the pyOpenMS 3.5 name. The bindings PR brings
it back only as a deprecated alias, and the page replay reports an
example that teaches a deprecated call.

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

---------

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants