Repository navigation
fixes failing pyopenms tests on Windows when -DNO_DEPENDENCIES=ON, - #9738
Conversation
…iginally introduced in OpenMS#5780, and switched to 'OFF' by default in OpenMS#8530 CI Matrix only uses 'OFF' for Ubuntu: https://github.com/OpenMS/OpenMS/blob/develop/.github/workflows/openms_ci_matrix_full.yml#L285
|
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)
📝 WalkthroughWalkthroughChangesWindows pyOpenMS DLL resolution
Sequence Diagram(s)sequenceDiagram
participant CTest
participant PythonTests
participant pyopenms_init as pyopenms.__init__
participant WindowsDLLLoader as os.add_dll_directory
CTest->>PythonTests: Set PYOPENMS_DLL_PATH and launch pytest
PythonTests->>pyopenms_init: Import pyopenms
pyopenms_init->>WindowsDLLLoader: Register valid DLL directories
WindowsDLLLoader-->>pyopenms_init: Keep directory handles alive
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
|
makes sense. no one should use NO_DEPENDENCIES=ON on Windows. Doesn't really make sense there since the dlls do not know about each other or have RPaths. Was luck that it ever worked. |
, #9740 (#9744) Backfills changelog entries for a SQLite private-dependency change, a ROCCurve::cutoffNeg fix, a pyOpenMS Windows NO_DEPENDENCIES test fix, and the Ghostscript-to-MathJax documentation build change, none of which had CHANGELOG entries yet. Claude-Session: https://claude.ai/code/session_012hWmgLm1tVqhrwzBZsFN1X Co-authored-by: Claude <[email protected]>
|
Thank you @cbielow! This fixed the issue for me. |
* docs(changelog): add entries for #9492, #9752 Backfills two CHANGELOG entries for recently merged PRs that landed without their own entry: - #9752: new BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES CMake options enabling a core-only OpenMS SDK build - #9492: null-dereference guards in TargetedExperiment::get*ByRef and ReactionMonitoringTransition::getPrediction All other PRs merged since the last CHANGELOG update (#9613, #9750, #9738) already carried their own entries; #9572 is test-only and follows the existing convention of not adding a changelog entry for test-only PRs in this series. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QcFv1tmBLzroCNJFjoqhZt * Update CHANGELOG Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Claude <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
…S#9753) * docs(changelog): add entries for OpenMS#9492, OpenMS#9752 Backfills two CHANGELOG entries for recently merged PRs that landed without their own entry: - OpenMS#9752: new BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES CMake options enabling a core-only OpenMS SDK build - OpenMS#9492: null-dereference guards in TargetedExperiment::get*ByRef and ReactionMonitoringTransition::getPrediction All other PRs merged since the last CHANGELOG update (OpenMS#9613, OpenMS#9750, OpenMS#9738) already carried their own entries; OpenMS#9572 is test-only and follows the existing convention of not adding a changelog entry for test-only PRs in this series. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QcFv1tmBLzroCNJFjoqhZt * Update CHANGELOG Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Claude <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
fixes #9732
The easy fix would be to always use NO_DEPENDENCIES=OFF when building (except when creating the pyopenms wheel).
But I wanted the pyopenms tests to always work, no matter the state of NO_DEPENDENCIES.
This does it.
There is a ton of code around NO_DEPENDENCIES, which fixes/undoes stuff, and this could be cleaned up or unified, maybe, with MacOS etc?! Not sure...
History:
NO_DEPENDENCIESoriginally introduced in #5780, and switched to 'OFF' by default in #8530 (thanks Claude)CI Matrix only uses 'OFF' for Ubuntu: https://github.com/OpenMS/OpenMS/blob/develop/.github/workflows/openms_ci_matrix_full.yml#L285
Description
Checklist
How can I get additional information on failed tests during CI
Click to expand
If your PR is failing you can check outIf you click in the column that lists the failed tests you will get detailed error messages.
Advanced commands (admins / reviewer only)
Click to expand
/reformat(experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.rebuild jenkinswill retrigger Jenkins-based CI buildsSummary by CodeRabbit
Bug Fixes
Improvements