Skip to content

Restrict PeakPickerIM output tests to Linux amd64 - #8430

Merged
timosachsenberg merged 1 commit into
claude/fix-doxygen-error-01SYHwZTaS8uJTXVoRSYS3gRfrom
codex/enable-test-for-linux-amd64-only
Dec 5, 2025
Merged

timosachsenberg merged 1 commit into
claude/fix-doxygen-error-01SYHwZTaS8uJTXVoRSYS3gRfrom
codex/enable-test-for-linux-amd64-only

Conversation

@timosachsenberg

Copy link
Copy Markdown
Contributor

Summary

  • limit TOPP PeakPickerIM output comparison tests to Linux amd64 to avoid platform-specific numeric differences
  • align the three output checks under a single architecture guard

Testing

  • Not run (not requested)

Codex Task

@coderabbitai

coderabbitai Bot commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch codex/enable-test-for-linux-amd64-only

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@timosachsenberg
timosachsenberg merged commit 456770a into claude/fix-doxygen-error-01SYHwZTaS8uJTXVoRSYS3gR Dec 5, 2025
@timosachsenberg
timosachsenberg deleted the codex/enable-test-for-linux-amd64-only branch December 5, 2025 06:47
@jpfeuffer

Copy link
Copy Markdown
Contributor

Hmm I think we have to be a bit careful with disabling tests. Sometimes numeric differences can also hint to a deeper/more important issue.

timosachsenberg added a commit that referenced this pull request Dec 5, 2025
* migrate relevant files from im_types branch to this new branch

* remove IDMassAccuracy, SpecLibCreator and SpecLibSearcher from old Cmake file

* clean up parameters registration

* eliminate padding points parameter

* adjust default mz sum tolerance

* added hard-coded im peak picking params. consistent variable naming

* include another common str for storing ion mobility array

* int fix

* keep parameter name consistent fix

* make tests smaller

* clean commits

* update test

* add set_test_properties

* added coderabbitai suggestions

* added IMData check before accessing the float array

* remove ppIM_test_2.cpp class test. Add missing libraries to avoid compile issues

* check im array spectrum index

* remove outdated code from SpectrumSettings.h

* Update src/openms/include/OpenMS/PROCESSING/CENTROIDING/PeakPickerIM.h

Co-authored-by: Timo Sachsenberg <[email protected]>

* remove redundant param handling

* reverse deletion of im handling lines in EPD

* add single peak trace handling back

* remove id lines from SpectrumSettings.cpp

* remove param comments from PeakPickerIM

* add OpenNuXL back

* add AnnotatedMSRun_test line in executable.cmake

* review comments

* determine IM type

* small fixes to ensure IMType

* some more fixes

* fixed synthetic peakpickerIM test

* make sure IMCluster and IMElutionProfiles update the ion mobility array name to Ion Mobility

* update test files

* change loop variable from Size to SignedSize for windows compiler

* rewrite test mzml files in linux

* fix doxygen error and add description for PickIMTraces

* Address CodeRabbit review comments for PeakPickerIM PR #8177

- Fix MetaInfoInterface::addMetaValues to copy both String and UInt keys
- Fix ElutionPeakDetection empty trace crash and extend smoothing for 2-point traces
- Standardize IM array output name to "Ion Mobility Centroid" using constant
- Use Constants::UserParam::ION_MOBILITY and ION_MOBILITY_CENTROID throughout
- Add error when PeakPickerIM receives already centroided IM data
- Add early validation in PeakPickerIM TOPP tool for centroided/missing IM data
- Remove unused ION_MOBILITY_DESCRIPTION from OpenSwathScoring.h
- Update test files to use IM constants instead of hardcoded strings
- Add CHANGELOG entries for PeakPickerIM

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Update src/openms/include/OpenMS/PROCESSING/CENTROIDING/PeakPickerIM.h

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* minor fixes

* Fix incorrect Doxygen example in PeakPickerIM

Replace bogus IMFrame::toSpectrum reference with correct
PeakPickerIM::pickIMCluster usage example.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Refactor PeakPickerIM for consistent API and validation

- Make pickIMCluster and pickIMElutionProfiles non-static instance methods
  that use configured parameters (consistent with pickIMTraces)
- Remove unused tolerance parameters from method signatures
- Add DataProcessing metadata to in-memory path (was missing)
- Add IMFormat validation to low-memory path for consistent error handling
- Simplify TOPP tool code by removing redundant parameter extraction
- Update pyOpenMS bindings to expose pickIMCluster and pickIMElutionProfiles

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Improve low-memory IMFormat validation to read only first spectrum

Use a FormatDetector consumer that aborts after reading the first
spectrum (via exception) instead of loading the entire file. This
maintains the low-memory property while providing proper validation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Fix build errors and update test baselines

- Fix IMSDataConsumer inheritance (use non-template version)
- Fix addDataProcessing_ call (use TOPPBase method)
- Update test baselines to reflect DataProcessing metadata and
  Ion Mobility Centroid array name changes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Fix Doxygen error and disable flaky test on Linux/macOS ARM64

- Add missing documentation for output_spectrum parameter in
  PeakPickerIM::sumFrame_ method
- Disable TOPP_PeakPickerIM_3_out1 test on Linux and macOS ARM64
  due to numeric differences

* [WIP] Fix doxygen error in documentation build (#8428)

* Initial plan

* Add explicit checks for MULTIPLE_SPECTRA and MIXED IMFormat, remove unused variable

Co-authored-by: timosachsenberg <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: timosachsenberg <[email protected]>

* Restrict PeakPickerIM output tests to Linux amd64 (#8430)

* Fix copyright headers in PeakPickerIM files

- Change "The OpenMS Team" to "OpenMS Inc." in copyright line
- Fix overly long separator line to match standard format

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

* Address code review comments for PeakPickerIM

- Replace std::cerr/cout with OPENMS_LOG_* macros throughout file
- Remove misleading TODOs and add clarifying comments:
  - Empty mobilogram traces: explain they occur when no peaks found in FWHM window
  - getIntensity() vs computeIntensitySum(): explain FWHM indices requirement
  - sortByPosition()/updateRanges(): confirm both are needed, remove "maybe" TODOs
- Optimize sorting: remove redundant isSorted() check before sortByPosition()
  (sortByPosition already checks internally, saves O(n) in common unsorted case)
- Add explanatory comments for IM data flow and sorting requirements

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Mohammed AlHigaylan <[email protected]>
Co-authored-by: alhigaylan <[email protected]>
Co-authored-by: Mohammed AlHigaylan <[email protected]>
Co-authored-by: Mohammed AlHigaylan <[email protected]>
Co-authored-by: alhigaylan <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Samuel Wein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants