Repository navigation
[TEST] Parquet (§3): parquet→parquet idempotency + FeatureLinker bundle round-trip (#9460) - #9604
Conversation
…dle round-trip (#9460) Close the remaining §3 (native Parquet I/O) [AUTO] gaps of the OpenMS 3.6.0 pre-release testing plan (#9460). Tests only. - L137: FeatureMapArrowIO_test -- a parquet->parquet content-idempotency section. The existing sections cover memory->parquet->memory; this re-exports an imported bundle and re-imports it, asserting the two imported maps are field-identical (features, hulls, subordinates, metavalues, PSMs, protein hits/groups). The run identifier is re-synthesized on every load, so identifier consistency is asserted *within* each map, not the volatile run-id string across maps. - L144: TOPP_FeatureLinkerUnlabeled_parquet -- FeatureLinker reads .featureparquet bundles and writes a .consensusparquet bundle (FileHandler directory dispatch beyond FileConverter). Inputs are converted from clean (X-free) featureXML fixtures at test time; the output is converted back to consensusXML and diffed against a committed reference (289 consensus features; deterministic under -test, transient provenance paths whitelisted). Findings while scoping L144 (the issue's own note that the dispatch is "aspirational" is partly correct): - MapAligner* tools are NOT parquet-wired (valid -in/-out formats are featureXML/mzML only), so a MapAligner parquet cell is not yet possible. - IDFilter reads/writes .idparquet bundle->bundle, but the idXML->idparquet write path is rejected ("idparquet is not allowed for storing identifications"), so an IDFilter idXML<->idparquet diff cell is not yet possible. - The PSM-lane store-side duplicate-identifier assert (L142) already landed on develop (#9400), PSMArrowIO_test. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
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 (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughTwo test-only additions expand Parquet serialization coverage: a double-round-trip idempotency test for ChangesParquet Round-Trip Test Coverage
Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/tests/class_tests/openms/source/FeatureMapArrowIO_test.cpp`:
- Around line 798-823: The test loop validates top-level fields between fm1 and
fm2 but does not compare nested structures, and identifier consistency is only
verified for fm2. Add assertions within the existing loop to compare nested
values between fm1 and fm2 including getConvexHulls() hull points,
getSubordinates() RT/MZ/intensity values, and peptide identification scores.
Additionally, add an identifier consistency check for fm1's peptide
identifications similar to the existing fm2 check to ensure both maps maintain
consistent identifiers across rounds, not just fm2.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6d488f93-b412-4f46-8098-cbf037283c07
📒 Files selected for processing (3)
src/tests/class_tests/openms/source/FeatureMapArrowIO_test.cppsrc/tests/topp/CMakeLists.txtsrc/tests/topp/FeatureLinkerUnlabeled_parquet_output.consensusXML
|
Adversarial review result: no blocking issue found in this pass. Required source cleanup before merge: the added CMake/test comments include tracker references. Please remove those references from source comments and keep the text focused on parquet idempotency and bundle round-trip behavior. I did not run the tests locally. |
The run identifier is re-synthesized on every importFromParquet via UniqueIdGenerator::getUniqueId() (XML-lane parity with IdXMLFile), so it is intentionally non-deterministic across independent imports. Comparing fm1 vs fm2 identifiers contradicts the test's own stated intent (assert identifier consistency *within* each map). The intra-map pep-id == prot-id checks (and all content assertions) remain. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Context
Closes the remaining §3 (native Parquet I/O)
[AUTO]gaps of the OpenMS 3.6.0 pre-release testing plan (#9460). Tests only.Changes
FeatureMapArrowIO_test— a parquet→parquet content-idempotency section. The existing sections check memory→parquet→memory; this re-exports an imported bundle and re-imports it, asserting the two imported maps are field-identical (features, hulls, subordinates, metavalues, PSMs, protein hits/groups). The run identifier is re-synthesized on every load, so identifier consistency is asserted within each map, not the volatile run-id string across maps.TOPP_FeatureLinkerUnlabeled_parquet*— FeatureLinker reads.featureparquetbundles and writes a.consensusparquetbundle (FileHandler directory dispatch beyond FileConverter). Inputs converted from clean (X-free) featureXML fixtures at test time; output converted back to consensusXML and diffed against a committed reference (289 consensus features; deterministic under-test, transient provenance paths whitelisted).Findings while scoping L144
The issue's own note that the cross-serialization dispatch is "aspirational" is partly correct in the current codebase:
-in/-outformats arefeatureXML/mzMLonly. A MapAligner parquet cell is not yet possible (would need the tool wired first)..idparquetbundle→bundle, but theidXML → idparquetwrite path is rejected ("idparquet is not allowed for storing identifications"), so an IDFilteridXML ↔ idparquetdiff cell is not yet possible.PSMArrowIO_test— no new test needed.So §3's closable gaps are L137 + the FeatureLinker bundle dispatch; the MapAligner/IDFilter items are tool-wiring gaps, not test gaps, and are flagged for follow-up.
Test plan
ctest -R '^FeatureMapArrowIO_test$'andctest -R TOPP_FeatureLinkerUnlabeled_parquetboth pass locally.Part of #9460 (§3).
🤖 Generated with Claude Code
Summary by CodeRabbit