Repository navigation
[TEST] Infrastructure (§1): non-ASCII paths, exit-code mapping, read-only config, downstream Qt contract (#9460) - #9603
Conversation
…only config, downstream Qt contract (#9460) Close the remaining §1 [AUTO] gaps of the OpenMS 3.6.0 pre-release testing plan (#9460). Tests only. - PathUtils_test: Windows-only UNC + ANSI-codepage to_path() cases under #ifdef _WIN32 (L35). - TOPP FileConverter: read AND write through a non-ASCII (UTF-8) path, materialized at test time via `cmake -E copy` (the permanent #9452 regression) (L37). - File_test: pin the "siblings only, no PATH fallback" contract of findSiblingTOPPExecutable (its TODO / #9204) plus a negative findExecutable case (L40). - THIRDPARTY: assert a present-but-failing external program returns EXTERNAL_PROGRAM_ERROR (9), distinct from the EXTERNAL_PROGRAM_NOTFOUND (14) of a missing binary (L41). - UpdateCheck_test (new): an unwritable config dir logs a warning and returns gracefully -- no network request, no crash (the $HOME-not-writable fix #9075) (L45). - external/: a second downstream target that finds Qt6 itself and links Qt6::Core, proving OpenMS exports no transitive Qt6 (L56). 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 (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThis PR adds new test coverage across multiple areas: a ChangesTest coverage additions
Possibly related issues
Possibly related PRs
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 |
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/external/TestExternalCodeQt.cpp`:
- Around line 23-34: The main function uses std::endl when outputting to
std::cout, which flushes the buffer unnecessarily and impacts performance.
Replace std::endl with \n in the std::cout statement within the main function to
align with coding guidelines that prefer the more efficient newline character
for performance.
🪄 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: d57442e8-fa9c-4d08-9dd0-2b8dfff5b1de
📒 Files selected for processing (8)
src/tests/class_tests/openms/executables.cmakesrc/tests/class_tests/openms/source/File_test.cppsrc/tests/class_tests/openms/source/PathUtils_test.cppsrc/tests/class_tests/openms/source/UpdateCheck_test.cppsrc/tests/external/CMakeLists.txtsrc/tests/external/TestExternalCodeQt.cppsrc/tests/topp/CMakeLists.txtsrc/tests/topp/THIRDPARTY/third_party_tests.cmake
|
Adversarial review result: cleanup required before merge.
Also remove tracker references from added source/CMake comments before merge; source comments should describe the durable behavior being tested without tying it to external tracker IDs. I did not run the tests locally. |
… external CMakeLists to LF - Remove external tracker/issue references (#9460 §1, #9452, #9204, #9075, Lxx) from added test comments; comments now describe the durable behavior under test. - Normalize src/tests/external/CMakeLists.txt to LF (matches .gitattributes eol=lf), which also clears the trailing-whitespace (CR) that git diff --check flagged. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Addressed review feedback in d00fe84:
CI was green before these changes; only comments and line endings changed (no test logic touched). |
Context
Closes the remaining §1 (Qt removal / core infrastructure)
[AUTO]gaps of the OpenMS 3.6.0 pre-release testing plan (#9460). Tests only — no production code changed.Changes
TOPP_FileConverter_nonascii*— read and write through a non-ASCII (UTF-8) path; the name is materialized into the temp dir at test time viacmake -E copy, so no non-ASCII fixture filename is committed. ReusesFileConverter_1_output.mzMLas reference. The permanent #9452 regression.File_test— pin the "siblings only, no PATH fallback" contract offindSiblingTOPPExecutable(itsTODO: probe in PATH, cf. #9204) + a negativefindExecutablecase.third_party_tests.cmake— a present-but-failing external program (/bin/false) returnsEXTERNAL_PROGRAM_ERROR(9), distinct from theEXTERNAL_PROGRAM_NOTFOUND(14) of a missing binary.UpdateCheck_test(new) — an unwritable config dir (forced viaXDG_CONFIG_HOME→ a regular file, somkdirfails withENOTDIRfor any user) makesUpdateCheck::run()log a warning and return gracefully before any network request, no crash. The$HOME-not-writable fix #9075.PathUtils_test— Windows-only UNC + ANSI-codepageto_path()cases under#ifdef _WIN32, mirroring the existing\xE4branch.external/— a second downstream target that does its ownfind_package(Qt6)+ linksQt6::Core, proving OpenMS exports no transitive Qt6. Guarded so the external-code test still configures without Qt6.Test plan
ctest -R '^(File_test|UpdateCheck_test|PathUtils_test)$'and the newTOPP_FileConverter_nonascii*/TOPP_CometAdapter_failing/TOPP_CometAdapter_missingcells all pass locally on Linux. L35 compiles/runs only on Windows CI; L56 runs in the external-build lane.Part of #9460 (§1).
🤖 Generated with Claude Code
Summary by CodeRabbit