Repository navigation
[TEST] FileHandler: cover Bruker .d / .d.zip type detection (#9460) - #9534
timosachsenberg merged 1 commit into
Conversation
) FileHandler_test exercised getTypeByFileName/getType for many formats but never the Bruker TimsTOF .d directory or its zipped .d.zip form. getTypeByFileName section (name-only, all builds): - "sample.d" -> BRUKER_TDF - "sample.d.zip" -> BRUKER_TDF (the ".zip" compression suffix is stripped, leaving ".d") - "/data/run 1.d.zip" -> BRUKER_TDF (with a path + spaces) - "plain_archive.zip" -> UNKNOWN (a plain .zip is not a Bruker .d) getType section (existing non-directory ".zip" whose name strips to ".d"): - WITH_OPENTIMS: an existing *.d.zip file -> BRUKER_TDF - otherwise: -> UNKNOWN (the .d family requires WITH_OPENTIMS) SDK-free: only the name and the file's existence matter for detection, not the archive contents. Verified: builds clean and the test runs PASSED (assertions confirmed via verbose). Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Warning Review limit reached
More reviews will be available in 2 minutes and 19 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 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 |
|
@timosachsenberg The following names might be missing from the
Please consider applying the following patch: --- AUTHORS 2026-06-15 16:09:14.106326493 +0000
+++ AUTHORS.new 2026-06-15 16:09:19.521317701 +0000
@@ -23,8 +23,8 @@
- Chirag Dave
- Chris Bauer
- Chris Bielow
- - Christie Mathews
- Christian Ehrlich
+ - Christie Mathews
- Clemens Groepl
- Cornelia Friedle
- Daniel Jameson |
What
Adds Bruker TimsTOF
.d/.d.zipcases toFileHandler_test:getTypeByFileName(name-only, all builds):sample.d→BRUKER_TDFsample.d.zip→BRUKER_TDF(the.zipcompression suffix is stripped, leaving.d)/data/run 1.d.zip→BRUKER_TDF(path + embedded spaces)plain_archive.zip→UNKNOWN(a plain.zipis not a Bruker.d)getType(existing, non-directory.zipwhose name strips to.d):WITH_OPENTIMS: an existing*.d.zipfile →BRUKER_TDFUNKNOWN(the.dfamily requiresWITH_OPENTIMS)Why
Closes the §1 (Qt removal:
minizip-ng → libzip)[AUTO]task in the OpenMS 3.6.0 pre-release testing plan (#9460):FileHandler_testcovered many formats but never the.d/.d.zippath. Detection works in two steps that this pins:getTypeByFileNamestrips the.zipcompression suffix and recurses on….d(→BRUKER_TDF), andgetTypeadditionally requires the file to exist as a non-directory.zip(FileHandler.cpp:224, underWITH_OPENTIMS). It is SDK-free — only the name and the file's existence matter for detection, not the archive contents (a placeholder file is used).Test plan
Tests only — no production code changed. Verified locally:
-fsyntax-onlyclean, full build green, test runs PASSED, and the new assertions were confirmed via verbose output (BRUKER_TDF= enum 69 for all.d/.d.zipcases;UNKNOWNfor the plain.zip).Part of #9460. Follows #9524, #9525, #9526, #9528, #9530, #9531, #9532, #9533.
🤖 Generated with Claude Code