Skip to content

Conversation

@t0mdavid-m
Copy link
Member

@t0mdavid-m t0mdavid-m commented Aug 17, 2025

Summary by CodeRabbit

  • New Version

    • App version updated to 0.9.4.
  • Performance

    • Enabled multi-threaded processing on Windows builds for faster runtime in supported features.
    • Increased build parallelism to speed up Windows build times.
  • Chores

    • Updated build and packaging configuration to align with the new release.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 17, 2025

Walkthrough

Bumped app/version references from 0.9.2 → 0.9.4 in workflow and settings; enabled OpenMP and increased Ninja parallelism in the Windows CI; added a cmake token DOPENMP=ON to the Dockerfile configure step (missing -D prefix).

Changes

Cohort / File(s) Summary of Changes
Version bump
settings.json, .github/workflows/build-windows-executable-app.yaml
Updated version identifiers: 0.9.20.9.4 and set APP_NAME to FLASHApp-0.9.4.
Windows CI build config
.github/workflows/build-windows-executable-app.yaml
Flipped OPENMP env from OffOn; increased BUILD_FLAGS from -j2-j4.
Dockerfile configure args
Dockerfile
Appended DOPENMP=ON to the cmake invocation (note: token added without -D prefix, may be parsed as a positional argument).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

I twitch my whiskers, binaries on the run,
From 0.9.2 to .4 beneath the sun.
OpenMP flutters, builds sprint with glee,
-j4 hums a tune, carrots compile free.
A rabbit’s hop — a tiny release spree. 🥕✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix_openmp_windows

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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 (4)
settings.json (1)

4-4: Version bump to 0.9.4 looks correct and aligns with workflow APP_NAME.
Matches the workflow’s APP_NAME change to FLASHApp-0.9.4. No issues here.

As a small safeguard: your build-executable job later overwrites settings.json.version with github.event.release.tag_name unconditionally. On non-release events this can become empty. Consider guarding that step to only run on releases, or falling back to this 0.9.4 value. Example approach (in the workflow, not here):

- name: Set Version in settings.json
  if: ${{ github.event_name == 'release' && github.event.release.tag_name != '' }}
  run: |
    $VERSION="${{ github.event.release.tag_name }}"
    $content = Get-Content -Raw settings.json | ConvertFrom-Json
    $content.version = $VERSION
    $content | ConvertTo-Json -Depth 100 | Set-Content settings.json
.github/workflows/build-windows-executable-app.yaml (3)

17-17: APP_NAME updated to 0.9.4 — good consistency with settings.json.
This keeps installer names aligned with the app version. Consider deriving APP_NAME from a single source (e.g., settings.json or the release tag) to avoid future mismatches.

Example pattern (optional): parse settings.json and set APP_NAME dynamically before packaging.


177-177: Use canonical CMake boolean casing for consistency (“ON” instead of “On”).
CMake handles booleans case-insensitively, but the file mixes “OFF/Off/On/ON”. Standardizing reduces confusion.

Apply this minimal change:

-          OPENMP: "On"
+          OPENMP: "ON"

180-180: Increased Ninja parallelism to -j4 — reasonable for GHA Windows runners.
This should speed up the build without oversubscribing cores too much. If build times fluctuate, you could make this configurable via an env var.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 54864c0 and f882a28.

📒 Files selected for processing (2)
  • .github/workflows/build-windows-executable-app.yaml (2 hunks)
  • settings.json (1 hunks)
🔇 Additional comments (1)
.github/workflows/build-windows-executable-app.yaml (1)

177-177: Heads-up: enabling OpenMP on Windows may require runtime redistribution.
If OpenMS ends up linking against the MSVC OpenMP runtime, some target machines might need the corresponding VC++ Redistributable, or you may need to bundle the required OpenMP DLLs. Please test the MSI on a clean Windows VM to ensure no “missing DLL” errors at runtime.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between f882a28 and 499fdbe.

📒 Files selected for processing (1)
  • Dockerfile (1 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-executable
  • GitHub Check: build-full-app


# Configure.
RUN /bin/bash -c "cmake -DCMAKE_BUILD_TYPE='Release' -DCMAKE_PREFIX_PATH='/OpenMS/contrib-build/;/usr/;/usr/local' -DHAS_XSERVER=OFF -DBOOST_USE_STATIC=OFF -DPYOPENMS=ON ../OpenMS -DPY_MEMLEAK_DISABLE=On"
RUN /bin/bash -c "cmake -DCMAKE_BUILD_TYPE='Release' -DCMAKE_PREFIX_PATH='/OpenMS/contrib-build/;/usr/;/usr/local' -DHAS_XSERVER=OFF -DBOOST_USE_STATIC=OFF -DPYOPENMS=ON ../OpenMS -DPY_MEMLEAK_DISABLE=On DOPENMP=ON"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Fix missing -D prefix for OPENMP and place the source dir last in cmake invocation

The token DOPENMP=ON is missing the leading -, so CMake won’t treat it as a cache definition. Also, placing ../OpenMS before the final -D options is non-standard and brittle. Move all -D options before the source path and use -DOPENMP=ON. Consider consistent boolean casing as a minor cleanup.

[suggest_optional_refactor]

Apply this diff:

-RUN /bin/bash -c "cmake -DCMAKE_BUILD_TYPE='Release' -DCMAKE_PREFIX_PATH='/OpenMS/contrib-build/;/usr/;/usr/local' -DHAS_XSERVER=OFF -DBOOST_USE_STATIC=OFF -DPYOPENMS=ON ../OpenMS -DPY_MEMLEAK_DISABLE=On DOPENMP=ON"
+RUN /bin/bash -c "cmake -DCMAKE_BUILD_TYPE='Release' -DCMAKE_PREFIX_PATH='/OpenMS/contrib-build/;/usr/;/usr/local' -DHAS_XSERVER=OFF -DBOOST_USE_STATIC=OFF -DPYOPENMS=ON -DPY_MEMLEAK_DISABLE=ON -DOPENMP=ON ../OpenMS"

If OpenMS expects a different CMake toggle for OpenMP (e.g., -DOPENMS_OPENMP=ON or -DUSE_OPENMP=ON), adjust accordingly. To confirm the correct flag in the upstream OpenMS CMake, please run this quick web query:


🌐 Web query:

What is the CMake option used by the OpenMS project to enable OpenMP?

💡 Result:

The OpenMS project uses the OPENMS_USE_OPENMP CMake option to enable or disable OpenMP support during the build process. You can set this option by passing -DOPENMS_USE_OPENMP=ON to your cmake command when configuring the build.

Example usage:

cmake -DOPENMS_USE_OPENMP=ON ..

This option is specific to the OpenMS project and controls whether OpenMP parallelization is enabled in the compiled binaries. This approach is project-specific and complements the general CMake method for enabling OpenMP using the FindOpenMP module or manual flags for other projects[7][4].

If you are compiling OpenMS, be sure to use the exact name OPENMS_USE_OPENMP, as documented and used in the OpenMS source and CMake scripts.

Citations:


Correct OpenMP CMake flag and reorder options in Dockerfile

The Dockerfile’s CMake invocation needs the proper OpenMS-specific flag (OPENMS_USE_OPENMP) and all -D options placed before the source directory. Also normalize boolean values to uppercase.

• File: Dockerfile
• Line: 106

Suggested diff:

-RUN /bin/bash -c "cmake -DCMAKE_BUILD_TYPE='Release' -DCMAKE_PREFIX_PATH='/OpenMS/contrib-build/;/usr/;/usr/local' -DHAS_XSERVER=OFF -DBOOST_USE_STATIC=OFF -DPYOPENMS=ON ../OpenMS -DPY_MEMLEAK_DISABLE=On DOPENMP=ON"
+RUN /bin/bash -c "cmake \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_PREFIX_PATH='/OpenMS/contrib-build/;/usr/;/usr/local' \
+    -DHAS_XSERVER=OFF \
+    -DBOOST_USE_STATIC=OFF \
+    -DPYOPENMS=ON \
+    -DPY_MEMLEAK_DISABLE=ON \
+    -DOPENMS_USE_OPENMP=ON \
+    ../OpenMS"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
RUN /bin/bash -c "cmake -DCMAKE_BUILD_TYPE='Release' -DCMAKE_PREFIX_PATH='/OpenMS/contrib-build/;/usr/;/usr/local' -DHAS_XSERVER=OFF -DBOOST_USE_STATIC=OFF -DPYOPENMS=ON ../OpenMS -DPY_MEMLEAK_DISABLE=On DOPENMP=ON"
RUN /bin/bash -c "cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH='/OpenMS/contrib-build/;/usr/;/usr/local' \
-DHAS_XSERVER=OFF \
-DBOOST_USE_STATIC=OFF \
-DPYOPENMS=ON \
-DPY_MEMLEAK_DISABLE=ON \
-DOPENMS_USE_OPENMP=ON \
../OpenMS"
🤖 Prompt for AI Agents
In Dockerfile around line 106, the CMake command uses an incorrect OpenMP flag
and places -D options after the source dir; update the RUN line so all -D
options come before the source directory, replace the incorrect DOPENMP flag
with -DOPENMS_USE_OPENMP=ON, and normalize boolean values to uppercase (ON/OFF)
for flags like PYOPENMS and PY_MEMLEAK_DISABLE; ensure CMAKE_PREFIX_PATH and
other -D settings remain but appear before the final "../OpenMS" argument.

@t0mdavid-m t0mdavid-m merged commit d2e6f27 into develop Aug 17, 2025
5 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Aug 23, 2025
This was referenced Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants