Repository navigation
fix(docker): install .NET 8 for openms-thermo-bridge so container build/deploy works - #9441
Conversation
…ld/deploy works PR #9389 enabled WITH_THERMO_RAW=ON by default (amd64), which FetchContent-builds openms-thermo-bridge. The bridge's CMake hard-requires the .NET SDK at configure time (find_package(DotNetHost) needs nethost from the SDK host pack, plus `dotnet publish` of the managed Thermo wrapper). The Docker base image had no .NET, so cmake configure failed and the nightly container deploy (Docker + Singularity) has been broken since 2026-05-24. - base (build) stage: install the official .NET 8 SDK via Microsoft's dotnet-install.sh into /usr/share/dotnet (the layout FindDotNetHost.cmake expects; Ubuntu's dotnet-sdk-8.0 uses /usr/lib/dotnet and lacks the host pack). - library (runtime) stage: install the .NET 8 runtime so the bridge can host the managed RawFileReader at runtime; managed assemblies are already shipped under ${INSTALL_DIR}/lib/openms_thermo_bridge/managed. - add libicu74 (required by .NET) and set DOTNET_ROOT in both stages. - guarded to amd64: WITH_THERMO_RAW defaults OFF on linux/aarch64, so the arm64 image is unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…r path works PR #9389 added an early-return in FileHandler::getType() that mapped .raw to FileTypes::UNKNOWN whenever WITH_THERMO_RAW was OFF (the default on Linux aarch64). This was meant to disable only the in-process ThermoRawFile reader, but it also broke file-type recognition that the *external* ThermoRawFileParser (mono) conversion path in FileConverter depends on. As a result the nightly arm64 container deploy failed: TOPP_THERMORAWFILEPARSER_1 / _1_out Warning: Could not determine format of input file '...ginkgotoxin-ms-switching.raw'! Error: Could not determine input file type! FileConverter only enters its RAW branch when in_type == FileTypes::RAW, and the external path (mono + ThermoRawFileParser, src/topp/FileConverter.cpp) is available on all platforms regardless of WITH_THERMO_RAW. Forcing the type to UNKNOWN made that branch unreachable. Remove the guard so .raw is always recognized (restoring pre-#9389 behavior). The in-process reader stays correctly #ifdef WITH_THERMO_RAW guarded in both getType's loadExperiment switch and FileConverter; callers that try to load a .raw in-process without WITH_THERMO_RAW still get a clear "type is not supported for loading experiments" ParseError from loadExperiment's default case. Co-Authored-By: Claude <[email protected]> https://claude.ai/code/session_01CF34vdU7vbT8rHJ74XnN5z
|
@timosachsenberg The following names might be missing from the
Please consider applying the following patch: --- AUTHORS 2026-06-03 20:03:40.636466574 +0000
+++ AUTHORS.new 2026-06-03 20:03:45.770725081 +0000
@@ -22,8 +22,9 @@
- Chirag Dave
- Chris Bauer
- Chris Bielow
- - Christie Mathews
- Christian Ehrlich
+ - Christie Mathews
+ - Claude
- Clemens Groepl
- Cornelia Friedle
- Daniel Jameson |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis pull request adds Docker build infrastructure to support a .NET Thermo bridge on amd64 architectures by installing ICU dependencies and conditionally configuring the .NET 8 SDK and runtime. It also updates file type detection to always recognize .raw files as RAW format, shifting error handling to the load stage. ChangesOpenMS Thermo Bridge and File Type Handling
✨ 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 |
PR #9389 enabled WITH_THERMO_RAW=ON by default (amd64), which FetchContent-builds
openms-thermo-bridge. The bridge's CMake hard-requires the .NET SDK at configure
time (find_package(DotNetHost) needs nethost from the SDK host pack, plus
dotnet publishof the managed Thermo wrapper). The Docker base image had no .NET,so cmake configure failed and the nightly container deploy (Docker + Singularity)
has been broken since 2026-05-24.
dotnet-install.sh into /usr/share/dotnet (the layout FindDotNetHost.cmake
expects; Ubuntu's dotnet-sdk-8.0 uses /usr/lib/dotnet and lacks the host pack).
managed RawFileReader at runtime; managed assemblies are already shipped under
${INSTALL_DIR}/lib/openms_thermo_bridge/managed.
image is unchanged.
Co-Authored-By: Claude Opus 4.8 (1M context) [email protected]
Summary by CodeRabbit
Bug Fixes
.rawfile type detection to work consistently across all system configurations, with better error handling for unsupported formats.New Features