Repository navigation
[INTERNAL,TEST] Separate filesystem configuration and temporary-file policy - #10098
Conversation
…policy Move settings methods into FileConfig.cpp and temporary-directory/registry implementation into FileTemp.cpp. Keep public definitions and method bodies unchanged, with core File.cpp free of settings and temp-policy references. Part of #10083, step 5; follows step 4.
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01GKpQTR4f8sxMUJer1j5YD2
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughFilesystem configuration and temporary-file implementations move from ChangesFile implementation split
Suggested reviewers: Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The filesystem implementation is reorganized without API changes, with build integration and focused temporary-resource tests in place. No actionable merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 4.55% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 22 functions across 4 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 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. A rabbit reads each line, Comment |
Description
Implements step 5 of #10083. Supersedes #10089, rebased onto
developnow that its prerequisite #10088 (filename extraction) is merged.File.cpp currently combines basic filesystem/shared-data operations with INI settings and temporary-file policy. FileConfig.cpp now contains the settings and user/temp/database path policy. FileTemp.cpp contains both TempDir constructors, the unique-directory implementation, temporary filename allocation, and its registry definition. The definitions retain their existing method bodies and remain in the same OpenMS library.
Basic File.cpp no longer includes Param/ParamXMLFile or references the settings/temp-policy methods. This resolves the two settings-related File.cpp edges recorded in #10083. The File facade still exposes settings-dependent APIs; this does not claim the entire class is independently linkable.
The File class test now covers the explicit-parent TempDir constructor and unique/explicit temporary filename allocation, in addition to the existing default constructor, cleanup, and settings tests.
Rebase notes: the duplicate step-4 commit was dropped, and the commit removing the
tools/ci/core_dependenciesbaseline files became empty becausedevelopalready deleted them. Every line removed from File.cpp reappears verbatim in FileConfig.cpp or FileTemp.cpp, and there are no duplicate includes after the include cleanup in #10096.Validation: all extracted blocks compared verbatim against
develop; no configuration/temp-policy references remain in File.cpp;git diff --checkpasses. The OpenMS library, File_test and FileNameUtils_test were built locally with GCC on Ubuntu 24.04 (system Boost 1.83, Xerces-C 3.2, Arrow 23) with no warnings in the touched files, and both tests pass, including the new explicit-parent TempDir section. Platform compilation and the full test suite are submitted to CI.Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01GKpQTR4f8sxMUJer1j5YD2
Summary by CodeRabbit
Improvements
Tests