Skip to content

re-add progress to FileInfo TOPP Tool - #9707

Merged
timosachsenberg merged 1 commit into
OpenMS:developfrom
cbielow:fix_fileinfo_progress
Jul 3, 2026
Merged

timosachsenberg merged 1 commit into
OpenMS:developfrom
cbielow:fix_fileinfo_progress

Conversation

@cbielow

@cbielow cbielow commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

Checklist

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

How can I get additional information on failed tests during CI

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

Advanced commands (admins / reviewer only)

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

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

Summary by CodeRabbit

  • New Features

    • Added a new option to control progress-logging behavior when reading file information.
    • Python users can now configure the same logging setting through the exposed options.
  • Bug Fixes

    • File loading now consistently respects the selected logging mode across supported input formats.
    • The command-line file info tool now forwards its logging setting correctly to underlying processing.

@cbielow
cbielow requested a review from timosachsenberg July 3, 2026 09:57
@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6e6995dd-270b-4170-98d8-3e028753c337

📥 Commits

Reviewing files that changed from the base of the PR and between 8b8790f and 6561d7f.

📒 Files selected for processing (4)
  • src/openms/include/OpenMS/FORMAT/FileInfo.h
  • src/openms/source/FORMAT/FileInfo.cpp
  • src/pyOpenMS/bindings/bind_format.cpp
  • src/topp/FileInfo.cpp

📝 Walkthrough

Walkthrough

This PR adds a log_type field to FileInfo::Options, forwarding progress-logging verbosity to format-specific loaders (FASTA, featureXML, consensusXML, mzIdentML, PQP, peak files) in FileInfo::report_. The field is exposed via pyOpenMS bindings and set from the TOPP FileInfo CLI wrapper.

Changes

FileInfo log_type forwarding

Layer / File(s) Summary
Options struct and log_type field
src/openms/include/OpenMS/FORMAT/FileInfo.h
Adds ProgressLogger.h include and a log_type member (ProgressLogger::LogType, default NONE) to FileInfo::Options.
Loader forwarding in report_
src/openms/source/FORMAT/FileInfo.cpp
Forwards options.log_type into FASTA, featureXML, consensusXML, mzIdentML, PQP, and peak loading paths instead of using default/no-progress logging.
Python bindings and TOPP CLI wiring
src/pyOpenMS/bindings/bind_format.cpp, src/topp/FileInfo.cpp
Exposes log_type as a writable property in nanobind bindings and sets opt.log_type from log_type_ in TOPPFileInfo::outputTo_.

Sequence Diagram(s)

sequenceDiagram
  participant TOPPFileInfo
  participant Options as FileInfo::Options
  participant FileInfo
  participant Loaders as FASTAFile/FileHandler/TransitionPQPFile

  TOPPFileInfo->>Options: log_type = log_type_
  TOPPFileInfo->>FileInfo: run(options)
  FileInfo->>Loaders: load*(..., options.log_type)
  Loaders-->>FileInfo: loaded data with configured progress logging
Loading

Possibly related PRs

  • OpenMS/OpenMS#9602: Introduces the underlying OpenMS::FileInfo/Options/report_ framework that this PR's log_type forwarding extends.

Suggested reviewers: jpfeuffer

Poem

A rabbit hops through code so bright,
Adding logs to guide the flight,
No more silence, progress shown,
Through FASTA, peaks, and PQP known,
Hop, hop, hooray — the log_type's here! 🐇📊

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change: restoring progress logging forwarding for the FileInfo TOPP tool.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@timosachsenberg
timosachsenberg merged commit 3ff9e1f into OpenMS:develop Jul 3, 2026
41 checks passed
timosachsenberg added a commit that referenced this pull request Jul 4, 2026
Routine changelog sweep found three merged develop PRs without changelog
coverage: FileInfo progress-logging restoration (#9707), a pyOpenMS enum
binding completeness fix (#9705), and OpenMP parallelization of the QPX
feature Parquet export (#9699, extending #9698). Also updated the #9698
entry's now-inaccurate "Serial only" note to point at #9699.


Claude-Session: https://claude.ai/code/session_014CUTttkkvRtTRtiV8ctAM6

Co-authored-by: Claude <[email protected]>
timosachsenberg added a commit that referenced this pull request Jul 6, 2026
Three recently merged PRs landed on develop without changelog coverage:
the OpenMP parallelization of the QPX feature Parquet export (#9699,
follow-up to #9698), the pyOpenMS enum-binding drift fix restoring
several inaccessible NASFragmentType/ProteomicsPkaScale/OSWHierarchy/
LPWrapper::SOLVER enumerators (#9705), and the re-added FileInfo
progress logging exposed to pyOpenMS via Options.log_type (#9707).


Claude-Session: https://claude.ai/code/session_01YCkM79JUnodCGEHtBKNWSz

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants