Skip to content

OPENMS_LOG_WARN writes to std::cerr now - #8754

Merged
timosachsenberg merged 5 commits into
OpenMS:developfrom
cbielow:stream_FileInfo
Feb 11, 2026
Merged

timosachsenberg merged 5 commits into
OpenMS:developfrom
cbielow:stream_FileInfo

Conversation

@cbielow

@cbielow cbielow commented Feb 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

How can I get additional information on failed tests during CI

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

Advanced commands (admins / reviewer only)

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

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

Summary by CodeRabbit

Release Notes

  • Bug Fixes

    • Improved warning suppression for unused variable handling in specific build configurations.
  • Refactor

    • Updated FileInfo tool to route output messages through appropriate streams for better consistency.
    • Migrated warning messages to standardized logging system, improving message organization and visibility.
    • Warning log output now directed to standard error stream for better separation from regular output.

@coderabbitai

coderabbitai Bot commented Feb 10, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

The pull request modifies logging infrastructure and output handling across multiple components. Changes include redirecting warning logs from stdout to stderr, refactoring console output calls to use stream-based output and formal logging mechanisms, adding compiler warning suppression, and updating test expectations accordingly.

Changes

Cohort / File(s) Summary
Logging Infrastructure
src/openms/source/CONCEPT/LogStream.cpp
Modified the global warning log stream destination from cout to cerr for warning-level messages.
FileInfo Tool Refactoring
src/topp/FileInfo.cpp, src/tests/topp/FileInfo_17_output.txt
Refactored FileInfo.cpp to replace direct std::cout calls with stream-based output (os <<) and converted inline warning messages to use OPENMS_LOG_WARN logging. Updated test output expectations to reflect the removal of warning messages previously printed to console.
Compiler Warning Suppression
src/openms/source/APPLICATIONS/OpenSwathBase.cpp
Added a void cast for variable suppression in the CHROMPARQUET branch when Parquet support is not compiled, preventing unused-parameter warnings before the NotImplemented exception is thrown.

Suggested reviewers

  • jpfeuffer

Poem

🐰 Streams and logs now flow with care,
Warnings hop to stderr's lair,
Console cries now logged with grace,
Each output finds its rightful place!
Compilers smile, no warnings dare,
Code refactored with rabbit's flair!

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: making OPENMS_LOG_WARN write to std::cerr instead of cout, which is reflected in the LogStream.cpp modification and related test output adjustments.

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

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

No actionable comments were generated in the recent review. 🎉

Tip

We've launched Issue Planner and it is currently in beta. Please try it out and share your feedback on Discord!


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

❤️ Share

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

@cbielow cbielow changed the title OPENMS_LOG_INFO writes to std::cerr now OPENMS_LOG_WARN writes to std::cerr now Feb 10, 2026
coderabbitai[bot]

This comment was marked as outdated.

@OpenMS OpenMS deleted a comment from coderabbitai Bot Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants