-
Notifications
You must be signed in to change notification settings - Fork 0
switch to powershell #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughCI Windows workflow runner changed from Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (3)
.github/workflows/build-windows-executable-app.yaml (3)
53-53: Pinning to windows-2022 is good; align other Windows jobs for consistency.Mixing windows-2022 here with windows-latest in build-executable risks toolchain drift. Recommend pinning both to windows-2022 (or both to windows-latest) to avoid subtle MSVC/SDK differences.
Minimal change for build-executable:
- build-executable: - runs-on: windows-latest + build-executable: + runs-on: windows-2022
62-62: Update checkout to v4 and consider shallow/sparse settings.actions/checkout@v3 still works, but v4 brings perf and security fixes. Also consider fetch-depth: 1 to speed up and reduce CI bandwidth.
- - name: Checkout - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v4 with: repository: t0mdavid-m/OpenMS ref: FVdeploy path: 'OpenMS' + fetch-depth: 1
151-170: Harden the bash step and remove ambiguity around ccache.
- Add set -Eeuo pipefail so failures are caught early.
- Prefer command -v over which (builtin, more portable).
- You export CMAKE_CCACHE_EXE to an absolute path but the step env later sets it to "ccache". Unify to the absolute path to avoid confusion and ensure CMake picks the intended binary.
Apply within this step:
run: | + set -Eeuo pipefail # Ensure cmake/ctest and choco tools are visible in bash export PATH="/c/Program Files/CMake/bin:/c/ProgramData/chocolatey/bin:$PATH" mkdir -p "$GITHUB_WORKSPACE/OpenMS/bld/" # Print paths for debugging (somehting here frequently fails due to changes in runners) - which cmake || true - which ctest || true - which ninja || true - which ccache || true + command -v cmake || true + command -v ctest || true + command -v ninja || true + command -v ccache || true # Give CMake the absolute ccache path to avoid lookup glitches export CMAKE_CCACHE_EXE="C:/ProgramData/chocolatey/bin/ccache.exe" # Run the dashboard but don't fail the step on a spurious 127 ctest --output-on-failure -V -S "$GITHUB_WORKSPACE/OpenMS/tools/ci/cibuild.cmake" || { status=$? echo "ctest exited with $status (treating as soft failure because dashboard already uploaded)." # Treat only 'command not found' (127) as ignorable; rethrow others if [ "$status" -ne 127 ]; then exit "$status"; fi }And mirror the absolute path in the step env (below) so there’s no contradiction later in the step or in sub-processes:
# In the same step's env: block CMAKE_CCACHE_EXE: "C:/ProgramData/chocolatey/bin/ccache.exe"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/build-windows-executable-app.yaml(3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: build-openms
- GitHub Check: build-full-app
Summary by CodeRabbit