Skip to content

[FIX,TEST] FFId: call run() with the current signature, unbreaking develop - #10011

Merged
timosachsenberg merged 1 commit into
developfrom
fix/develop-ffid-test-signature
Aug 30, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
fix/develop-ffid-test-signature

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

develop does not compile. Every build-and-test job on every platform fails at the same line.

Cause

Two commits landed in an incompatible order:

Neither is wrong on its own; together they are inconsistent. On develop HEAD (13047432ae):

src/tests/class_tests/openms/source/FeatureFinderIdentificationAlgorithm_test.cpp:72:26: error:
no matching function for call to 'OpenMS::FeatureFinderIdentificationAlgorithm::run(
  OpenMS::PeptideIdentificationList&, std::vector<OpenMS::ProteinIdentification>&,
  OpenMS::PeptideIdentificationList, std::vector<OpenMS::ProteinIdentification>,
  OpenMS::FeatureMap&, OpenMS::FeatureMap&, const char [1])'

Why it went unnoticed

The most recent full Build and Test run on develop is 14da2d038, which predates both merges. Everything green on develop since then has been cppcheck only, which does not compile the class tests. The breakage surfaced on the next PR to be built against the merged state (#10010), where it is the sole compiler error across the whole job and touches none of that PR's files.

The change

Drop the two removed arguments from the call. Nothing else — the test's purpose is unchanged and still holds: run() must throw IllegalArgument when the MS data is empty, which is what #9980 added the guard for. Both PeptideIdentificationList and vector<ProteinIdentification> remain in use for the surviving arguments, so no includes become unused.

Verification

Built and run against develop HEAD: FeatureFinderIdentificationAlgorithm_test compiles and passes (1/1). The guard still fires through the five-argument entry point, so the regression #9980 added is still covered.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Tests
    • Updated test coverage to use the current two-argument identification algorithm interface.
    • Preserved validation of the algorithm’s behavior with empty peptide and protein identification data.

…velop

develop does not compile. Two commits landed in an incompatible order:

- 9858b89 (#9995) removed FeatureFinderIdentification's external peptide ID
  path, changing run() to
  run(peptides, proteins, features, seeds, spectra_file);
- c90acf9 ("guard FFId against empty MS data", #9980) added a test call
  using the previous seven-argument form, which no longer exists.

Result on develop HEAD:

  FeatureFinderIdentificationAlgorithm_test.cpp:72:26: error: no matching
  function for call to 'OpenMS::FeatureFinderIdentificationAlgorithm::run(...)'

This went unnoticed because the most recent full Build and Test run on develop
predates both merges; everything green since has been cppcheck only.

Drop the two removed arguments from the call. The test's purpose is unchanged
and still holds: run() must throw IllegalArgument when the MS data is empty.
Verified against develop HEAD - the test compiles and passes.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 30, 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 Plus

Run ID: 40e2a4d2-b6e5-4dc0-94b4-01ed68eb5d84

📥 Commits

Reviewing files that changed from the base of the PR and between 1304743 and e1d6192.

📒 Files selected for processing (1)
  • src/tests/class_tests/openms/source/FeatureFinderIdentificationAlgorithm_test.cpp

Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review.


📝 Walkthrough

Walkthrough

The test now calls FeatureFinderIdentificationAlgorithm::run() with the existing peptides and proteins collections through its two-argument overload.

Changes

Feature Finder test update

Layer / File(s) Summary
Update run invocation
src/tests/class_tests/openms/source/FeatureFinderIdentificationAlgorithm_test.cpp
The test passes the populated peptides and proteins collections directly to algo.run(). It removes the obsolete empty placeholder arguments.

Suggested reviewers: claude

Poem

A rabbit checks the test with care,
Two lists now hop through cleaner air.
Empty bundles leave the run,
The proper call is neatly done.
Ears up high, the suite proceeds,
Hoppity-hop through passing leads.

Merge Risk: ⚪ Minimal · up to e1d61

This test-only fix restores compilation while preserving the existing empty-MS-data regression check; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 4 | ❌ 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%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: updating the FFId test to call run() with the current signature and restore the develop build.
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.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/develop-ffid-test-signature

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

Copy link
Copy Markdown
Contributor Author

sorry my bad

@timosachsenberg
timosachsenberg merged commit 8e70d83 into develop Aug 30, 2026
13 checks passed
@timosachsenberg
timosachsenberg deleted the fix/develop-ffid-test-signature branch August 30, 2026 09:44
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.

1 participant