Repository navigation
Fix TOPP_MSGFPlusAdapter Windows CI failures - #9486
Conversation
Two issues addressed: 1. Serialize TOPP_MSGFPlusAdapter_2 after TOPP_MSGFPlusAdapter_1 in CTest (DEPENDS). Both tests share the same proteins.fasta and spectra.mzML; MSGF+ creates temp/cache files alongside those inputs, causing file-access conflicts on Windows when the two tests run in parallel. Parallel execution was never safe for these tests — they were just never co-scheduled until test 2 was added in #9461. 2. Fix scan-number extraction from SpecID in the legacy TSV fallback path (MSGFPlusAdapter.cpp). PR #9450 changed elements[1] from OpenMS::String to std::string and replaced `elements[1].suffix('=').toInt()` with `StringUtils::toInt32(elements[1])`. For SpecIDs of the form "controllerType=0 controllerNumber=1 scan=17" the old call extracted the integer after the last '='; the new call tries to convert the whole string and throws ConversionError. Restore the correct behaviour with rfind('=') + substr. https://claude.ai/code/session_01RjUeua8ecNatvyBSSjfeGe
|
@timosachsenberg The following names might be missing from the
Please consider applying the following patch: --- AUTHORS 2026-06-12 03:56:59.062824299 +0000
+++ AUTHORS.new 2026-06-12 03:57:04.125801139 +0000
@@ -22,8 +22,9 @@
- Chirag Dave
- Chris Bauer
- Chris Bielow
- - Christie Mathews
- Christian Ehrlich
+ - Christie Mathews
+ - Claude
- Clemens Groepl
- Cornelia Friedle
- Daniel Jameson |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo focused changes update MSGFPlusAdapter's TSV scan number parsing to handle key-value formatted input strings, and test documentation is added explaining ordering requirements to prevent Windows file-access conflicts from shared temporary files between sequential test runs. ChangesMSGFPlusAdapter Scan Number Parsing and Test Ordering
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Summary
Fixes the 6
TOPP_MSGFPlusAdaptertest failures on Windows introduced by PRs #9461 and #9450.Root cause 1 — parallel test race (main failure):
PR #9461 added
TOPP_MSGFPlusAdapter_2, which uses the sameproteins.fastaandspectra.mzMLas test 1. MSGF+ creates temp/cache files alongside those shared inputs. On Windows, two MSGF+ processes racing for the same temp files causes file-access conflicts, making both test 1 and test 2 fail. Fix: addDEPENDS "TOPP_MSGFPlusAdapter_1"so test 2 is serialized after test 1.Root cause 2 — scan-number parsing regression:
PR #9450 converted
elements[1]fromOpenMS::Stringtostd::stringand replacedelements[1].suffix('=').toInt()withStringUtils::toInt32(elements[1]). For SpecIDs like"controllerType=0 controllerNumber=1 scan=17", the old call extracted the integer after the last=; the new call throwsConversionErroron the whole string. Fix: userfind('=') + substrto restore the original behaviour. (This code path is hit when theScanNumTSV column is empty or-1; not exercised by the existing tests, but is a real regression.)Test plan
TOPP_MSGFPlusAdapter_1,TOPP_MSGFPlusAdapter_1_out1,TOPP_MSGFPlusAdapter_1_out2,TOPP_MSGFPlusAdapter_2,TOPP_MSGFPlusAdapter_2_out1,TOPP_MSGFPlusAdapter_2_out2should all passhttps://claude.ai/code/session_01RjUeua8ecNatvyBSSjfeGe
Generated by Claude Code
Summary by CodeRabbit
Bug Fixes
Tests