Repository navigation
[FIX] Windows NSIS packaging: locate Cfg_Settings.nsh via absolute path - #9978
Conversation
The nightly Release workflow's Windows packaging step has been failing since the CI started overriding CPACK_PACKAGE_DIRECTORY to a short path (C:/cpk) to avoid MAX_PATH issues with deep Doxygen filenames. The NSIS template included Cfg_Settings.nsh via a hardcoded "..\..\..\" relative path from CPack's NSIS staging directory, which only happened to resolve correctly back to PROJECT_BINARY_DIR when CPACK_PACKAGE_DIRECTORY defaulted to the build directory. Pass the absolute path as a CPACK_ variable instead, so packaging no longer depends on the staging directory's depth relative to the build tree.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe NSIS packaging configuration now creates a native absolute path for ChangesNSIS settings path wiring
Suggested reviewers: Poem
Merge Risk: ⚪ Minimal · up to This localized packaging change replaces a fragile relative path with the generated settings file's absolute path. No actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.) ✨ 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 |
- -feat_dir (ProteomicsLFQ) and the imzML dropped-array warning shipped without their PR citation (OpenMS#9989, OpenMS#10002). - The Biosaur2/FAIMS fix entry cited only the tracking issue (OpenMS#9980), not the merged PR (OpenMS#9996). - No entry existed for the NSIS Cfg_Settings.nsh path fix (OpenMS#9978, OpenMS#9991) or the multi-arch container deploy race fix (OpenMS#9951, OpenMS#9954).
…#10014) Adds entries for PRs merged after the last CHANGELOG update (#9995, #10009, #10010, #10012) that were not yet reflected in the file, and fills in missing PR references on the FeatureFinderIdentification external-path removal. Also rewrites the NSIS Cfg_Settings.nsh entry, whose previously documented fix (#9978, #9991) turned out to be insufficient and was superseded by the definitive fix in #10009. Co-authored-by: Claude <[email protected]>
Description
The nightly
Releaseworkflow's Windows packaging job ("Build, Test, and Package (windows-2025, cl.exe)") has failed on its CPack "Package" step for 5 consecutive nightly runs (Aug 24–28), always with:Root cause:
cmake/Windows/NSIS.template.inincludesCfg_Settings.nsh(generated bycmake/package_nsis.cmakeinto${PROJECT_BINARY_DIR}) via a hardcoded..\..\..\relative path from CPack's NSIS staging directory. This only worked becauseCPACK_PACKAGE_DIRECTORYused to default to the build directory, putting the staging dir exactly 3 levels below it. Commit54363c8("Fix Windows NSIS packaging failure from MAX_PATH doc filenames") started redirectingCPACK_PACKAGE_DIRECTORYto a short path (C:/cpk) on Windows CI to dodgeMAX_PATHissues with deeply nested Doxygen filenames — which broke the implicit relative-path assumption, sinceC:/cpk/_CPack_Packages/win64/NSIS/..\..\..\no longer resolves anywhere near${PROJECT_BINARY_DIR}.Fix: pass the absolute path of the generated
Cfg_Settings.nshto the NSIS template via aCPACK_variable (CPACK_OPENMS_CFG_SETTINGS_FILE), which CMake automatically forwards intoCPackConfig.cmakeand is available for substitution when CPack's NSIS generator configuresproject.nsifrom the template. This removes the dependency on the staging directory's depth relative to the build tree entirely, so it stays correct regardless of whereCPACK_PACKAGE_DIRECTORYpoints.I could not build/test this on Windows in this environment (no Windows/NSIS toolchain here), so please double check by CI on this PR (or the next
nightlyrun) that Windows packaging succeeds.Checklist
nightlyGenerated by Claude Code
Summary by CodeRabbit