Repository navigation
Update MaRaCluster to 1.04.1 (Linux x86_64, macOS arm64, Windows x86_64) - #113
Conversation
The vendored maracluster (0.05.0, built 2018) carries DT_RPATH=/usr/lib:/tmp/build_Z0sb/tools/lib from the upstream build, whose CommonCMake.txt put <CMAKE_PREFIX_PATH>/lib -- a mktemp directory -- into the install RPATH (upstream has disabled that block since). Its dependencies are all system libraries (libstdc++, libgomp, libm, libgcc_s, libpthread, libc), so the entry only sent the loader through directories of the build machine before the system paths. Removed with CMake's file(RPATH_REMOVE FILE maracluster), which drops the DT_RPATH entry and blanks its string; nothing else in the binary changes (132 bytes, same size and mode). Verified: readelf shows no RPATH/RUNPATH, LD_DEBUG=libs no longer probes /tmp/build_Z0sb, and on OpenMS's MaRaClusterAdapter test inputs (batch -p 20 -t -10 -c -10, then consensus -M 1, as the adapter runs it) the clusters TSV is byte-identical to the original binary's and the consensus mzML differs only in timestamps, paths and checksums. The other Linux binaries here carry no RPATH; the macOS maracluster's LC_RPATH (/usr/local/lib) is never used, as none of its dependencies is @rpath-relative. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NgnkdZCjwS6LE8cufGTDJU
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 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 ignored due to path filters (1)
📒 Files selected for processing (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe MaRaCluster entry in ChangesMaRaCluster Version Metadata
Priority: ⬇️ Low Change: Other Merge Risk: ⚪ Minimal · up to The updated binaries match the listed platforms, including supported macOS arm64; removing the Intel macOS binary does not establish a regression for an officially supported OpenMS package. 🚥 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. A rabbit reads the version line, Comment |
|
update the version |
Replaces the 0.05.0 binaries from 2018 with upstream's rel-1-04-1 release (June 2025): - Linux/x86_64: bin/maracluster from maracluster-v1-04-linux-amd64.tar.gz (the release's portable tarball build; sha256 8b8d5a17...a6b2cb). It needs only system libraries (libstdc++, libgomp, libm, libgcc_s, libc; glibc >= 2.34) and carries no RPATH at all, so it supersedes the previous commit's RPATH removal from 0.05.0 (upstream has since disabled the CommonCMake.txt block that put its mktemp build directory there). - Windows/x86_64: bin/maracluster.exe from the release's NSIS installer (maracluster-v1-04-win32-msvc-x86.exe, whose payload is x86-64 despite the name; sha256 08dacc49...fd09). Like 0.05.0 it relies on the Visual C++ runtime (it adds VCRUNTIME140_1.dll to the same set) and it is now a mixed-mode build, loading the .NET Framework through mscoree.dll. - MacOS/x86_64 stays at 0.05.0: the release's "osx-x86_64" package holds an arm64 binary. 1.04.1 still takes the arguments OpenMS's MaRaClusterAdapter passes (batch -b -f -a -p -t -c -v, consensus -l -f -o -M -v), still separates clusters by blank lines in the clusters TSV (it adds the cluster index as a third column, which the adapter does not read), and still names consensus output <name>.part1.<ext>. With -f given, its new dat-file folder defaults to <output folder>/dat_files, so the adapter's per-run temporary directory keeps runs apart. On the adapter's test inputs it forms the same 1947 clusters (200 of them non-singletons) as 0.05.0 except that one spectrum moves between two clusters, and it orders 785 clusters differently, so OpenMS's MaRaClusterAdapter test references need regenerating when OpenMS moves its THIRDPARTY submodule here. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NgnkdZCjwS6LE8cufGTDJU
|
Updated to MaRaCluster 1.04.1 in eeaf568 (Linux and Windows x86_64, plus macOS x86_64 stays at 0.05.0: upstream's "osx-x86_64" package actually contains an arm64 binary. Once this is in, OpenMS's submodule bump has to regenerate the two MaRaClusterAdapter test references, because 1.04.1 orders the clusters differently. Generated by Claude Code |
|
openms only ships arm64 on mac so clean up and support it |
OpenMS ships macOS packages for arm64 only, and its CI copies MacOS/$(uname -m), so MacOS/x86_64/MaRaCluster (0.05.0) was not used any more while the arm64 packages had no MaRaCluster at all. MacOS/arm64/MaRaCluster/maracluster is bin/maracluster from the rel-1-04-1 release's maracluster-v1-04-osx-x86_64.pkg, which despite its name holds an arm64 build (sha256 50e2a40b...af855): Mach-O arm64, minimum macOS 11.0, ad-hoc signed (LC_CODE_SIGNATURE), no LC_RPATH, and linked against only /usr/lib/libc++.1.dylib and /usr/lib/libSystem.B.dylib. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NgnkdZCjwS6LE8cufGTDJU
|
Done in a2de5b1: The other Generated by Claude Code |
Moves THIRDPARTY to 00c619e (OpenMS/THIRDPARTY#113), which replaces the bundled MaRaCluster 0.05.0 (2018) with upstream's 1.04.1 release on Linux and Windows x86_64, and adds it for macOS arm64, where the packages and CI had none. The x86_64 macOS copy is gone; OpenMS ships arm64 only there. 1.04.1 still takes the arguments MaRaClusterAdapter passes and writes the same file formats. On the adapter's test inputs it forms the same 1947 clusters as 0.05.0, except that one spectrum moves between two clusters, and it orders 785 clusters differently. The two MaRaClusterAdapter references are regenerated accordingly: - MaRaClusterAdapter_1_out_1.part1.mzML is 1.04.1's consensus output. - MaRaClusterAdapter_2_out_1.idXML keeps the previous reference and only updates the 280 cluster_id values that change. Checked with the nightly's MaRaClusterAdapter and FuzzyDiff, using the commands and whitelists of third_party_tests.cmake: 0.05.0 passes against the old references, 1.04.1 fails both comparisons against them, and 1.04.1 passes both against the new ones. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NgnkdZCjwS6LE8cufGTDJU
…le Depends; MaRaCluster 1.04.1 (#10259) * Debian package: drop padded RUNPATH entries, bridge dev files and stale Depends Fixes the four packaging defects of #10230, all of which were still present in the 2026.09.24 nightly (amd64 and arm64). 1. Empty RUNPATH entries. libOpenSwathAlgo.so shipped with $ORIGIN/../lib/ followed by 89 empty entries (93 on arm64, where libopenms_thermo_bridge.so had them too); the loader reads an empty entry as the working directory. The cause is the release workflow, not CMake's rewrite as such: it builds with PACKAGE_TYPE=none, whose install RPATH also names the build tree's vcpkg directory (104 characters on amd64), so every build-tree RPATH is padded with ':' to that length. It then reconfigures with PACKAGE_TYPE=deb (install RPATH 15 characters) and runs cpack without relinking, and RPATH_CHANGE replaces only the 15 characters it now expects and keeps the other 89. The arm64 preset and triplet names are 4 characters longer, hence 93. Only libraries whose build RPATH is shorter than the padding are hit, i.e. the two that link nothing outside the system. Relinking before packaging would avoid it, but 'all' contains the documentation target, which is always out of date. Instead CPack now runs cmake/cpack_clean_runpath.cmake (CPACK_PRE_BUILD_SCRIPTS), which removes empty entries from every staged ELF file with CMake's own READ_ELF and RPATH_SET, before dpkg-shlibdeps and the md5sums see them. SET(CMAKE_SKIP_INSTALL_RPATH TRUE) in package_deb.cmake goes: that file is included after add_subdirectory(src), so the setting never reached a target (the packaged binaries all carry $ORIGIN/../lib/). 2. Thermo bridge development files on arm64. vcpkg.json leaves the bridge out on linux & arm64, so only that build fetches it from source, and CMAKE_INSTALL_DEFAULT_COMPONENT_NAME routed all of the bridge's own install rules into the packaged 'library' component: its headers, its CMake package (6 files under lib/cmake/OpenMSThermoBridge), the .pdb and a second copy of the managed assemblies under lib/. FetchContent_Declare now passes EXCLUDE_FROM_ALL (CMake 3.28+), which leaves those rules out. install_library() still installs and exports the library, the bridge is still built because libOpenMS links it, and the managed assemblies are still installed into share/, which ThermoRawFile reads first. The bridge's headers are private to ThermoRawFile.cpp and OpenMSConfig.cmake does not look for the bridge's CMake package. 3. Hand-written Depends. Every entry was stale: dpkg-shlibdeps derives all the Qt libraries, and its plain *t64 entries made the "t64 | non-t64" alternatives unenforceable (Depends entries are ANDed); no binary in either package links yaml-cpp dynamically; and the package ships its own lib/libsqlite3.so, which is what every binary resolves, so libsqlite3-0 was never used. Depends is now exactly what dpkg-shlibdeps derives. 4. The comment on install_thirdparty_folder() now says that the .NET runtime identifiers are chosen by target architecture, so linux-arm64 keeps a Mono.Unix helper its current Mono.Unix.dll.config does not map. Verified: - A minimal project run through the same none -> deb reconfigure and cpack -G DEB reproduces the 89 empty entries without the hook and is clean with it, on CMake 3.24.3, 3.28.3 and 4.4.3; symlinks untouched, Depends derived, md5sums consistent. - The script over the unpacked 2026.09.24 nightlies (20,840 / 20,856 files) changes exactly libOpenSwathAlgo.so on amd64 and it plus libopenms_thermo_bridge.so on arm64; FileInfo and OpenSwathWorkflow from the result still run. - The Thermo block of cmake_findExternalLibs.cmake, included into a test project around the real bridge at the pinned commit: on 3.28.3 and 4.4.3 the install holds only the library, the share/ assemblies (no .pdb) and the license; on 3.24.3 it still holds the 16 extra files, as today. - tools/ci/fetch_thermo_assets.sh still finds the GIT_TAG pin. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NgnkdZCjwS6LE8cufGTDJU * Take the Thermo bridge from vcpkg on arm64 too, instead of EXCLUDE_FROM_ALL Review: build openms-thermo-bridge for arm through the normal route rather than adding another workaround to the FetchContent fallback. vcpkg.json restricted the openms-thermo-bridge dependency to "!(linux & arm64)" since the vcpkg integration, when WITH_THERMO_RAW was still off on Linux aarch64. #10206 turned the reader on there but left the restriction, so find_package(OpenMSThermoBridge) failed on arm64 only and the build fell back to fetching and building the bridge itself, whose own install rules put its headers, CMake package, .pdb and a second copy of the managed assemblies into the package. Nothing else restricts it: the overlay port declares no "supports", upstream vcpkg's nethost port supports Linux on every architecture, and the arm64 runner already has the .NET SDK the port's 'dotnet publish' needs (the FetchContent fallback runs the same publish there today). The overlay port pins 4c0eddd, the commit the v0.3.0 tag (2c66c92, the FetchContent pin) merges, so arm64 builds the same bridge source as before. With the restriction gone, arm64 resolves the bridge the way amd64, macOS and Windows do, so the EXCLUDE_FROM_ALL change to the FetchContent block is reverted: that path is left to the wheels, the container image and builds without vcpkg, as before this PR. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NgnkdZCjwS6LE8cufGTDJU * Ship the Thermo RawFileReader license with the vcpkg-built bridge too Only the from-source branch installed share/OpenMS/LICENSES/ ThermoRawFileReader-License.doc (it downloads the notice for the bridge's pinned RawFileReader commit), so the packages built with the vcpkg bridge -- amd64, macOS and Windows, and now arm64 as well -- shipped the Thermo assemblies without it (review on this PR). The vcpkg port already downloads the notice (pinned, SHA512-checked), but only into the concatenated copyright file, which cannot stand in for a Word document. It now also installs the document next to its CMake package (share/OpenMSThermoBridge, the directory vcpkg_cmake_config_fixup uses), and the system-installation branch installs it from ${OpenMSThermoBridge_DIR} into the same place as the from-source branch. A bridge installed without it leaves a status message and no file, as a failed download does in the from-source branch. Checked with the Thermo block of cmake_findExternalLibs.cmake in a test project, against a system installation of the bridge at the pinned commit: with the document next to the package the install gains share/OpenMS/LICENSES/ThermoRawFileReader-License.doc, without it the configure reports it and the install goes on; the from-source branch still installs the downloaded notice. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NgnkdZCjwS6LE8cufGTDJU * Warn, as the from-source branch does, when the system bridge has no license notice Review on this PR: a missing ThermoRawFileReader-License.doc next to a system-installed bridge was only a status message, while the from-source branch warns when it cannot download the notice. Both now warn; neither stops the configure, so a developer build against a bridge installed without the file still works. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NgnkdZCjwS6LE8cufGTDJU * Update the THIRDPARTY submodule to MaRaCluster 1.04.1 Moves THIRDPARTY to 00c619e (OpenMS/THIRDPARTY#113), which replaces the bundled MaRaCluster 0.05.0 (2018) with upstream's 1.04.1 release on Linux and Windows x86_64, and adds it for macOS arm64, where the packages and CI had none. The x86_64 macOS copy is gone; OpenMS ships arm64 only there. 1.04.1 still takes the arguments MaRaClusterAdapter passes and writes the same file formats. On the adapter's test inputs it forms the same 1947 clusters as 0.05.0, except that one spectrum moves between two clusters, and it orders 785 clusters differently. The two MaRaClusterAdapter references are regenerated accordingly: - MaRaClusterAdapter_1_out_1.part1.mzML is 1.04.1's consensus output. - MaRaClusterAdapter_2_out_1.idXML keeps the previous reference and only updates the 280 cluster_id values that change. Checked with the nightly's MaRaClusterAdapter and FuzzyDiff, using the commands and whitelists of third_party_tests.cmake: 0.05.0 passes against the old references, 1.04.1 fails both comparisons against them, and 1.04.1 passes both against the new ones. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NgnkdZCjwS6LE8cufGTDJU * MaRaClusterAdapter test: skip the consensus peak arrays on macOS MaRaCluster's macOS arm64 build computes some consensus m/z values one bit off the Linux x86_64 build the reference comes from. CI on 2750102 failed TOPP_MaRaClusterAdapter_1_out_1 on macOS only, at 436.17136800718794 vs 436.1713680071879 inside a base64-encoded m/z array. FuzzyDiff compares those arrays as text, so a 1-ulp difference fails the whole comparison. On macOS this comparison now also whitelists "<binary>", as ZLIB_NG_MZML_WHITELIST does for zlib-ng. The spectra and precursors are still compared, and TOPP_MaRaClusterAdapter_2_out_1, which checks the cluster assignment, already passed on macOS. Linux and Windows keep the full comparison. Checked: with the reference's m/z value changed to the macOS one, FuzzyDiff fails with the old whitelist and passes with "<binary>" added; the block configures with CMake 3.24 and 3.28 and adds the entry only when APPLE is set. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NgnkdZCjwS6LE8cufGTDJU * MaRaClusterAdapter: convert the input files single-threaded MaRaCluster's batch step starts by converting the input files to its .dat format, one OpenMP thread per file, and each thread opens its file with ProteoWizard at the same time. MaRaCluster's own consensus step opens its files one at a time, because doing it in parallel "in rare cases seems to cause runtime exceptions". The Windows build of 1.04.1, which this branch bundles and which, unlike the 0.05.0 build, is a mixed-mode .NET assembly, crashes there with an access violation: TOPP_MaRaClusterAdapter_1 failed that way on windows-2025 for cebb3d0. On windows-2025, the adapter's batch command on its test inputs crashed with 0xC0000005 in 42 of 360 runs, alone or two at a time, always during the conversion. It never crashed with OMP_NUM_THREADS=1 (0 of 240), and 0.05.0 never did either (0 of 240). The adapter now runs MaRaCluster's index step, which is just that conversion, with OMP_NUM_THREADS=1, and then batch with the same -b, -f, -a and -p. batch finds the converted files, skips the conversion and clusters with all threads as before. On windows-2025 that sequence never crashed (0 of 180). On Linux its clusters are byte-identical to a single batch run, with 1.04.1 and 0.05.0 and with ppm and Da tolerances, and the MaRaClusterAdapter tests pass with the bundled 1.04.1. The CHANGELOG's MaRaCluster entry says so. It and the Debian entry now also cite this PR, and the Debian entry's early line break is gone. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NgnkdZCjwS6LE8cufGTDJU --------- Co-authored-by: Claude <[email protected]>
Updates the vendored MaRaCluster from 0.05.0 (2018) to upstream's rel-1-04-1 release (June 2025). Each binary is byte-identical to the one in the release.
bin/maraclusterfrom the release's portable tarball build (maracluster-v1-04-linux-amd64.tar.gz).DT_RPATH=/usr/lib:/tmp/build_Z0sb/tools/libfrom upstream's build; the first commit here stripped it, and 1.04.1 supersedes that.bin/maraclusterfrom the release'smaracluster-v1-04-osx-x86_64.pkg. Despite that name, it holds an arm64 build./usr/lib/libc++.1.dyliband/usr/lib/libSystem.B.dylib.LC_RPATH.MacOS/$(uname -m), so the x86_64 copy was no longer used.bin/maracluster.exefrom the release's NSIS installer,maracluster-v1-04-win32-msvc-x86.exe. Despite the name, its payload is x86-64.VCRUNTIME140_1.dllto the same set.mscoree.dll.VERSION: the MaRaCluster line now names 1.04.1 and its platforms; it said 0.04.Compatibility with OpenMS's MaRaClusterAdapter:
batch -b -f -a -p -t -c -vandconsensus -l -f -o -M -v.<name>.part1.<ext>.<output folder>/dat_files, so the adapter's per-run temporary directory still keeps runs apart.Verified on the Linux binary:
THIRDPARTYsubmodule here.🤖 Generated with Claude Code
https://claude.ai/code/session_01NgnkdZCjwS6LE8cufGTDJU
Summary by CodeRabbit