Repository navigation
Remove macos intel bump Ubuntu to 24.04 - #8450
Conversation
WalkthroughUpdates CI matrices/runners and macOS deployment target; guards Clang-only pragmas with Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Points needing extra attention:
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ 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)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
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
publishjob still attempts to downloadmacOS-X64-wheelsartifact (lines 727-731), but since thebuild-macosjob (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-26is not a valid GitHub Actions macOS runner. As of December 2025, the available runners aremacos-latest(mapped tomacos-15),macos-15,macos-14, andmacos-13(deprecated).However, the compiler version
"26.0"is valid—Xcode 26 was released in September 2025.Did you intend
macos-15ormacos-latestinstead?
🧹 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-lateston 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
📒 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_PARQUETis set to"OFF"here. The AI summary mentions "Parquet support toggling" and the pyopenms-wheels.yml still hasWITH_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 bothubuntu-22.04andubuntu-22.04-arm, this should still work correctly since both will run withmatrix.compiler != 'clang++'.
418-418: Fix the cibuild.cmake path to remove duplicate "OpenMS" directory.The path
../OpenMS/OpenMS/tools/ci/cibuild.cmakeis incorrect. The actual file is located attools/ci/cibuild.cmakein 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-armis included in needs, and the test matrix no longer includes macOS Intel entries.
There was a problem hiding this comment.
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-latestonly 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" ]]; thenAnd 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-26in 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
📒 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-26with XCode26.0(lines 55, 61)- Ubuntu:
ubuntu-24.04with GCC13(lines 65, 68, 72, 74, 76, 78)These are relatively recent OS versions for GitHub Actions runners. Confirm that:
macos-26runner label is available and stable on GitHub Actions- 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-26is not yet available or causes issues, you may need to usemacos-latestwith 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 fromOpenMS/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.
|
No I think it is fine. |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 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.cppsrc/tests/class_tests/openms/source/ConstRefVector_test.cppsrc/tests/class_tests/openms/source/ParamXMLFile_test.cppsrc/tests/class_tests/openms/source/DPosition_test.cppsrc/tests/class_tests/openms/source/ParamJSONFile_test.cppsrc/tests/class_tests/openms/source/CachedMzMLHandler_test.cppsrc/tests/class_tests/openms/source/ParamCTDFile_test.cppsrc/tests/class_tests/openms/source/CachedMzML_test.cppsrc/tests/class_tests/openms/source/IsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/String_test.cppsrc/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/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.cppsrc/topp/MzTabExporter.cppsrc/tests/class_tests/openms/source/ConstRefVector_test.cppsrc/tests/class_tests/openms/source/ParamXMLFile_test.cppsrc/tests/class_tests/openms/source/DPosition_test.cppsrc/tests/class_tests/openms/source/ParamJSONFile_test.cppsrc/openms/source/KERNEL/MSSpectrum.cppsrc/tests/class_tests/openms/source/CachedMzMLHandler_test.cppsrc/tests/class_tests/openms/source/ParamCTDFile_test.cppsrc/tests/class_tests/openms/source/CachedMzML_test.cppsrc/tests/class_tests/openms/source/IsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/String_test.cppsrc/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/topp/MzTabExporter.cppsrc/tests/class_tests/openms/source/ConstRefVector_test.cppsrc/tests/class_tests/openms/source/ParamXMLFile_test.cppsrc/tests/class_tests/openms/source/DPosition_test.cppsrc/tests/class_tests/openms/source/ParamJSONFile_test.cppsrc/tests/class_tests/openms/source/CachedMzMLHandler_test.cppsrc/tests/class_tests/openms/source/ParamCTDFile_test.cppsrc/tests/class_tests/openms/source/CachedMzML_test.cppsrc/tests/class_tests/openms/source/IsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/String_test.cppsrc/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/topp/MzTabExporter.cppsrc/tests/class_tests/openms/source/ConstRefVector_test.cppsrc/tests/class_tests/openms/source/ParamXMLFile_test.cppsrc/tests/class_tests/openms/source/DPosition_test.cppsrc/tests/class_tests/openms/source/ParamJSONFile_test.cppsrc/openms/source/KERNEL/MSSpectrum.cppsrc/tests/class_tests/openms/source/CachedMzMLHandler_test.cppsrc/tests/class_tests/openms/source/ParamCTDFile_test.cppsrc/tests/class_tests/openms/source/CachedMzML_test.cppsrc/tests/class_tests/openms/source/IsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/String_test.cppsrc/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/topp/MzTabExporter.cppsrc/tests/class_tests/openms/source/ConstRefVector_test.cppsrc/tests/class_tests/openms/source/ParamXMLFile_test.cppsrc/tests/class_tests/openms/source/DPosition_test.cppsrc/tests/class_tests/openms/source/ParamJSONFile_test.cppsrc/openms/source/KERNEL/MSSpectrum.cppsrc/tests/class_tests/openms/source/CachedMzMLHandler_test.cppsrc/tests/class_tests/openms/source/ParamCTDFile_test.cppsrc/tests/class_tests/openms/source/CachedMzML_test.cppsrc/tests/class_tests/openms/source/IsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/topp/MzTabExporter.cppsrc/tests/class_tests/openms/source/ParamXMLFile_test.cppsrc/openms/source/KERNEL/MSSpectrum.cppsrc/tests/class_tests/openms/source/CachedMzMLHandler_test.cppsrc/tests/class_tests/openms/source/CachedMzML_test.cppsrc/tests/class_tests/openms/source/String_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/topp/MzTabExporter.cppsrc/tests/class_tests/openms/source/ConstRefVector_test.cppsrc/tests/class_tests/openms/source/ParamXMLFile_test.cppsrc/tests/class_tests/openms/source/DPosition_test.cppsrc/tests/class_tests/openms/source/ParamJSONFile_test.cppsrc/openms/source/KERNEL/MSSpectrum.cppsrc/tests/class_tests/openms/source/CachedMzMLHandler_test.cppsrc/tests/class_tests/openms/source/ParamCTDFile_test.cppsrc/tests/class_tests/openms/source/CachedMzML_test.cppsrc/tests/class_tests/openms/source/IsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/ConstRefVector_test.cppsrc/tests/class_tests/openms/source/ParamXMLFile_test.cppsrc/tests/class_tests/openms/source/ParamJSONFile_test.cppsrc/tests/class_tests/openms/source/CachedMzMLHandler_test.cppsrc/tests/class_tests/openms/source/ParamCTDFile_test.cppsrc/tests/class_tests/openms/source/String_test.cppsrc/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/ConstRefVector_test.cppsrc/tests/class_tests/openms/source/ParamXMLFile_test.cppsrc/tests/class_tests/openms/source/DPosition_test.cppsrc/tests/class_tests/openms/source/ParamJSONFile_test.cppsrc/openms/source/KERNEL/MSSpectrum.cppsrc/tests/class_tests/openms/source/CachedMzMLHandler_test.cppsrc/tests/class_tests/openms/source/ParamCTDFile_test.cppsrc/tests/class_tests/openms/source/CachedMzML_test.cppsrc/tests/class_tests/openms/source/IsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/ParamXMLFile_test.cppsrc/tests/class_tests/openms/source/ParamCTDFile_test.cppsrc/tests/class_tests/openms/source/CachedMzML_test.cppsrc/tests/class_tests/openms/source/IsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/String_test.cppsrc/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/ParamXMLFile_test.cppsrc/tests/class_tests/openms/source/DPosition_test.cppsrc/tests/class_tests/openms/source/ParamJSONFile_test.cppsrc/tests/class_tests/openms/source/CachedMzMLHandler_test.cppsrc/tests/class_tests/openms/source/ParamCTDFile_test.cppsrc/tests/class_tests/openms/source/CachedMzML_test.cppsrc/tests/class_tests/openms/source/IsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/ParamXMLFile_test.cppsrc/tests/class_tests/openms/source/DPosition_test.cppsrc/tests/class_tests/openms/source/IsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/ParamXMLFile_test.cppsrc/tests/class_tests/openms/source/DPosition_test.cppsrc/tests/class_tests/openms/source/ParamCTDFile_test.cppsrc/tests/class_tests/openms/source/IsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/CoarseIsotopeDistribution_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/DPosition_test.cppsrc/openms/source/KERNEL/MSSpectrum.cppsrc/tests/class_tests/openms/source/CachedMzML_test.cppsrc/tests/class_tests/openms/source/String_test.cppsrc/tests/class_tests/openms/source/MRMDecoy_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/ParamJSONFile_test.cppsrc/tests/class_tests/openms/source/CachedMzMLHandler_test.cppsrc/tests/class_tests/openms/source/ParamCTDFile_test.cppsrc/tests/class_tests/openms/source/CachedMzML_test.cppsrc/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_serializerspecialization correctly enables explicit JSON conversion forEmpiricalFormula, aligning with nlohmann/json's requirement for explicit conversions. Thefrom_jsonandto_jsonimplementations 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-Wshadowsuppression is only applied when compiling with Clang.
206-208: LGTM! Matching pragma pop with proper guard.The closing
#pragma clang diagnostic popis 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-Wshadowsuppression 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-Wshadowwarning 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 balancedWrapping the existing
clang diagnostic push/ignoredand correspondingpopwith#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 guardingThe added
#ifdef __clang__around the existingclang diagnostic push/ignoredandpopis 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 guardedAdding
#ifdef __clang__around theclang diagnostic push/ignored "-Wunreachable-code"and matchingpopcleanly scopes the suppression toLowlevelComparatorand 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 clangThe
#ifdef __clang__wrappers around the existingclang diagnostic push/ignored "-Wshadow"/poppair are well-formed and maintain previous behavior on clang while making non-clang builds cleaner. No additional action required.Also applies to: 1123-1125
There was a problem hiding this comment.
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
offsetis 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 makesoffsetnegative, so:
region_start - offsetmoves right (inside the region),region_end + offsetmoves 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]whenregion_start < region_end.
🧹 Nitpick comments (1)
src/openms/source/FEATUREFINDER/ElutionModelFitter.cpp (1)
291-297: Explicitmax_rtinitialization is fine, but consider centralizing this invariantThe 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
MassTraceis thatmax_rtis always consistent with the contained peaks (as it is for the real traces viaupdateMaximum()), it may be cleaner to either:
- ensure
MassTrace’s default constructor value-initializesmax_rt(and other related members) across the board, or- call
trace.updateMaximum();after adding the zero-intensity peaks here, instead of assigningmax_rtmanually.This would keep initialization logic in one place and reduce the chance of future divergence between
max_rtand otherMassTracestate.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 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.cppsrc/openms/source/FEATUREFINDER/FeatureFinderIdentificationAlgorithm.cppsrc/openms/source/ANALYSIS/ID/FragmentIndex.cppsrc/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.cppsrc/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.cppsrc/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.cppsrc/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.cppsrc/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 goodCasting
fasta_entries.size()toSignedSizein 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 correctUsing
static_cast<SignedSize>(i)to compare againstint_indexandmz_indexeliminates 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‑preservingThe new logic cleanly merges overlapping RT windows:
rtsis sorted, so for eachrt,rt + rt_toleranceis monotonically non‑decreasing; thus unconditionally settingrt_regions.back().end = rt + rt_tolerancein the overlap case cannot shrink the region and is equivalent to takingmax(old_end, new_end).- A new region is only started when
rt_regionsis empty or the previousendis strictly beforert - 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‑likeRTRegionand keeps the code concise without altering semantics.No edge‑case regressions are apparent (empty
peptide_data⇒ emptyrts⇒ no regions, and the later region assignment loop does not dereferencereg_itwhen there are no RT entries). This looks good as‑is.
There was a problem hiding this comment.
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_(andround_counter_on line 77) are always assigned from or compared withSizevalues, consider refactoring them to beSizeinstead ofintto eliminate the need for casts throughout the code.Note: Line 135 uses
pkg.size()directly while line 91 now usesround_total_with a cast, creating a minor inconsistency in approach.If you'd like to refactor, change the member variable declarations from
inttoSize:- 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 theaddAction()calls in the menus have been migrated to the modern Qt5 pointer-to-member syntax, thisconnect()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
📒 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.cppsrc/tests/class_tests/openms/source/TMTTenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/Matrix_test.cppsrc/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/TMTEighteenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/ItraqEightPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/NonNegativeLeastSquaresSolver_test.cppsrc/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/QuantmsIO_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/TMTTenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/Matrix_test.cppsrc/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/TMTEighteenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/ItraqEightPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/NonNegativeLeastSquaresSolver_test.cppsrc/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/QuantmsIO_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/TMTTenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/Matrix_test.cppsrc/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/TMTEighteenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/ItraqEightPlexQuantitationMethod_test.cppsrc/openms_gui/source/VISUAL/TOPPASOutputFolderVertex.cppsrc/tests/class_tests/openms/source/NonNegativeLeastSquaresSolver_test.cppsrc/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/QuantmsIO_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/TMTTenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/TMTEighteenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/ItraqEightPlexQuantitationMethod_test.cppsrc/openms_gui/source/VISUAL/TOPPASOutputFolderVertex.cppsrc/tests/class_tests/openms/source/NonNegativeLeastSquaresSolver_test.cppsrc/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/QuantmsIO_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/TMTEighteenPlexQuantitationMethod_test.cppsrc/openms_gui/source/VISUAL/TOPPASOutputFolderVertex.cppsrc/tests/class_tests/openms/source/NonNegativeLeastSquaresSolver_test.cppsrc/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/QuantmsIO_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cppsrc/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.cppsrc/openms/source/ANALYSIS/ID/HyperScore.cppsrc/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/ItraqEightPlexQuantitationMethod_test.cppsrc/openms_gui/source/VISUAL/TOPPASOutputFolderVertex.cppsrc/tests/class_tests/openms/source/NonNegativeLeastSquaresSolver_test.cppsrc/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/TMTSixPlexQuantitationMethod_test.cppsrc/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.cppsrc/tests/class_tests/openms/source/TMTSixteenPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/IsobaricQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/ItraqEightPlexQuantitationMethod_test.cppsrc/tests/class_tests/openms/source/ItraqFourPlexQuantitationMethod_test.cppsrc/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
inttosize_tcorrectly matches the return type of.size()and eliminates signed/unsigned comparison warnings.src/tests/class_tests/openms/source/QuantmsIO_test.cpp (1)
65-109: Usingsize_tfor the loop index is correct hereAligning the loop variable type with
pep_strs.size()removes signed/unsigned comparison warnings and is idiomatic for container indexing. All uses ofi(indexing, RT/MZ arithmetic, scores, charges, andi % 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 tofragment_window_->activateWindow()looks correct and saferUsing the instance method
activateWindow()instead ofQApplication::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 ofx.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::Indexfor row and column tracking during matrix iteration is the proper choice. This ensures type compatibility with Eigen matrix operations likegetValue(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 ofm.rows()andm.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::Indexfor 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::Indexfor 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::Indexfor 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::Indexfor 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::Indexinstead ofsize_tfollows 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::Indexaligns with the pattern applied across multiple quantitation method tests and follows Eigen's recommended indexing approach.
There was a problem hiding this comment.
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 withCMAKE_CURRENT_LIST_FILEandCMAKE_CURRENT_LIST_LINE; also capturectest_submitreturn value explicitly.
ctest_submitwith onlyCAPTURE_CMAKE_ERRORdoes not detect submission failures—that requiresRETURN_VALUE. Additionally, the hardcodedline=168andline=193are 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 repeatedctest_build+ctest_submitblocks 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
📒 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
…double> ABI changes in gcc10.1 on ARM
There was a problem hiding this comment.
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_labelis already anInt(Line 177), sostatic_cast<Int>(channel_or_label)is effectively a no-op. If the intent is to avoid mixed-type comparison withentry.label, it’d be clearer to align the function parameter type withdecltype(entry.label)(or explicitly convertentry.labelto the expected numeric type) and then compare without the redundant cast.Suggested minimal tweak (if
entry.labelis 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-psabiwith 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
CheckCXXCompilerFlagmodule):+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
📒 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
There was a problem hiding this comment.
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: sharedProteaseDigestion digestorused inside#pragma omp parallel for
digestor.digestUnmodified(...)is invoked concurrently; ifProteaseDigestionhas any internal mutable state/caching, this is unsafe. Safer: makedigestorthread-local (create it inside a#pragma omp parallelregion and#pragma omp for, or make itfirstprivate). Also, preferSize/size_tforprotein_idxto matchfasta_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: TrimFIIndexcritical section + remove unnecessary parens
You can reduce contention by computing indices outside the critical section, and only guarding thefi_peptides_.emplace_back(...)itself. Alsoemplace_back((protein_idx), ...)can just beemplace_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_failedpath 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
📒 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
| 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() |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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/miniconda3PATH assumptions
In thetestjob’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/ScriptstoGITHUB_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/archifladder (now that macOS Intel is gone)
With Intel macOS removed, theInstall Minicondabranching 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
📒 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 tomacos-14targets Apple Silicon by default
Thebuild-macos-armjob targetsmacos-14, which uses arm64 (Apple Silicon) runners by default, and setsMACOSX_DEPLOYMENT_TARGET: "14"accordingly. However, usingmacos-14does 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 tomacos-14
macos-14runs arm64 by default (not Intel), so the Intel removal rationale doesn't apply. GitHub currently recommends using arm64 labels (macos-latest,macos-15, ormacos-14) for new workflows. If Intel x86_64 testing is not explicitly needed, usemacos-latestinstead—it tracks the current macOS version and aligns with GitHub's migration path toward Apple Silicon. Pinning tomacos-14makes sense only if arm64 testing at that specific version is required or if deliberate version stability is a stated project goal.
…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
…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]>
@jpfeuffer can I get a sanity check that this isn't going to break anything else?
Summary by CodeRabbit
Bug Fixes
Chores
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.