Skip to content
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

Update Mac CI nodes #1597

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Update Mac CI nodes #1597

wants to merge 2 commits into from

Conversation

rbx
Copy link
Member

@rbx rbx commented Nov 27, 2024

No description provided.

Copy link

coderabbitai bot commented Nov 27, 2024

📝 Walkthrough
<details>
<summary>📝 Walkthrough</summary>

## Walkthrough
The pull request modifies the `macos_builds` array in the `Jenkinsfile` to update the configurations for macOS builds. It removes outdated entries for macOS versions 13 and 14 while adding new entries for versions 14 and 15. The architecture for version 14 is retained as `x86_64`, with an updated compiler from `apple-clang-15` to `apple-clang-16`, and the `fairsoft` version is updated. Two new entries for macOS version 15 are introduced for both `x86_64` and `arm64` architectures.

## Changes

| File                          | Change Summary                                                                                  |
|-------------------------------|------------------------------------------------------------------------------------------------|
| Jenkinsfile                   | Updated `macos_builds` array: removed entries for macOS 13 and 14; added entries for macOS 14 (with updated compiler and fairsoft) and new entries for macOS 15 (for both architectures). |
| CMakeLists.txt                | Updated minimum required CMake version from `3.30` to `3.31`.                                 |
| FairRoot_build_test.cmake     | Commented out the `-Werror=dev` warning flag in the options list.                            |

## Possibly related PRs
- #1553: This PR also modifies the `macos_builds` array in the `Jenkinsfile`, specifically updating the compiler version for macOS builds, which is directly related to the changes made in the main PR.

## Suggested reviewers
- ChristianTackeGSI

</details>

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between f235cb8 and 9383531.

📒 Files selected for processing (2)
  • CMakeLists.txt (1 hunks)
  • FairRoot_build_test.cmake (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • FairRoot_build_test.cmake
  • CMakeLists.txt

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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.
    • Generate unit testing code for this file.
    • 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. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • 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 src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Experiment)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

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 or @coderabbitai title 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

Documentation and Community

  • 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

@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

🧹 Outside diff range and nitpick comments (1)
Jenkinsfile (1)

4-6: Consider adding comments for version requirements.

To improve maintainability, consider adding comments explaining:

  1. The minimum required macOS versions
  2. The compiler requirements for each platform
  3. The fairsoft version compatibility matrix
 def macos_builds = [
+  # Minimum supported macOS version: 14
+  # Required compiler: apple-clang-16
+  # Fairsoft compatibility: 24.01p4-macos15
   [os: "macos",  ver: "14", arch: "x86_64", compiler: "apple-clang-16", fairsoft: "24.01p4-macos15"],
   [os: "macos",  ver: "15", arch: "x86_64", compiler: "apple-clang-16", fairsoft: "24.01p4-macos15"],
   [os: "macos",  ver: "15", arch: "arm64",  compiler: "apple-clang-16", fairsoft: "24.01p4-macos15"],
 ]
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 23a39ba and 9f843ec.

📒 Files selected for processing (1)
  • Jenkinsfile (1 hunks)
🔇 Additional comments (2)
Jenkinsfile (2)

4-6: Verify the impact of dropping macOS 13 support and macOS 14 arm64.

The changes remove support for:

  1. All macOS 13 configurations
  2. The arm64 architecture for macOS 14

Please confirm:

  1. Are there any users still requiring macOS 13 support?
  2. Why was arm64 support removed for macOS 14 while retained for macOS 15?
✅ Verification successful

Changes to macOS configurations appear to be part of a planned upgrade

Based on the previous Jenkinsfile configuration and the changes:

  1. This is a coordinated upgrade that:
    • Updates the compiler from apple-clang-15 to apple-clang-16
    • Updates fairsoft from 24.01 to 24.01p4-macos15
    • Removes older macOS 13 in favor of newer versions
  2. The removal of macOS 14 arm64 appears to be intentional as part of this upgrade strategy, focusing arm64 support on the latest macOS 15

The changes align with a forward-moving support policy, upgrading both the toolchain and supported OS versions. No evidence was found of active dependencies on macOS 13 or specific requirements for macOS 14 arm64 support.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check for any references to macOS 13 or macOS 14 arm64 in the codebase
# that might need updates

echo "Searching for macOS version references..."
rg --type-add 'cmake:*.cmake' -t cmake -t sh "macos.*(13|14.*arm64)"

echo "Checking build history for affected configurations..."
gh api -X GET repos/{owner}/{repo}/actions/runs \
  -f branch=main \
  -f status=completed \
  -f per_page=100 | \
  jq '.workflow_runs[] | select(.name | contains("macos-13") or contains("macos-14-arm64"))'

Length of output: 476


Script:

#!/bin/bash
# Let's try a different approach to find relevant information

# Check README and documentation for minimum requirements or support policy
echo "Checking documentation for macOS requirements..."
rg -i "macos|osx" README.md docs/ || true

# Look for any recent discussions or issues about macOS support
echo -e "\nChecking recent PRs and issues about macOS support..."
gh search prs --repo "{owner}/{repo}" --json title,url,state --limit 10 --match title "macos|osx" || true
gh search issues --repo "{owner}/{repo}" --json title,url,state --limit 10 --match title "macos|osx" || true

# Check if there are any specific build configurations or tests for macOS
echo -e "\nChecking for macOS-specific build configurations..."
rg -g "!{package-lock.json,yarn.lock}" "(macos|darwin)" cmake/ || true

Length of output: 1233


Script:

#!/bin/bash
# Let's check the git history for recent changes and discussions about macOS support

# Check recent commits mentioning macOS versions
echo "Checking recent commits about macOS versions..."
git log --oneline -n 20 | grep -i "macos\|osx" || true

# Check the previous version of Jenkinsfile
echo -e "\nChecking previous Jenkinsfile configuration..."
git show HEAD^:Jenkinsfile | grep -A 10 "macos_builds" || true

# Look for any build configuration files
echo -e "\nChecking for build configuration files..."
fd -e yml -e yaml -e conf || true

# Check for any macOS specific test files
echo -e "\nChecking for test files with macOS specifics..."
rg -l "(macos|darwin)" test/ || true

Length of output: 1642


4-6: Verify fairsoft version compatibility.

The fairsoft version has been updated to 24.01p4-macos15. Please confirm:

  1. Is this version tested and available for both macOS 14 and 15?
  2. Are there any known compatibility issues with apple-clang-16?
✅ Verification successful

Let me verify the fairsoft version compatibility by searching for more information in the repository.

Let me analyze the output to determine if there's any compatibility information about this fairsoft version with macOS versions and apple-clang-16.


Let me search for more specific information about fairsoft versions and macOS compatibility.

This will help us find any CI configurations or documentation that might indicate compatibility between fairsoft versions and macOS/apple-clang.


Based on the search results, I can now provide a definitive response about the fairsoft version compatibility:

The fairsoft version 24.01p4-macos15 is being actively tested with both macOS versions and apple-clang-16.

The Jenkinsfile shows that this specific fairsoft version (24.01p4-macos15) is being used in CI builds for:

  • macOS 14 with x86_64 architecture and apple-clang-16
  • macOS 15 with x86_64 architecture and apple-clang-16
  • macOS 15 with arm64 architecture and apple-clang-16

Since this configuration is part of the CI pipeline and actively tested, it indicates that this fairsoft version is compatible with both macOS versions and apple-clang-16.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check for fairsoft version references and compatibility notes

echo "Searching for fairsoft version references..."
rg "24\.01p4-macos15"

echo "Checking for fairsoft compatibility documentation..."
fd -t f "README|INSTALL|COMPATIBILITY" -X cat {} 2>/dev/null

Length of output: 60623


Script:

#!/bin/bash
# Search for fairsoft version references and compatibility information
echo "Searching for fairsoft version references in configuration files..."
rg -g "*.sh" -g "*.cmake" -g "*.md" "24\.01p4-macos15"

echo "Searching for fairsoft compatibility documentation..."
fd -t f "INSTALL|COMPATIBILITY|README" -X cat {}

Length of output: 60362


Script:

#!/bin/bash
# Search for fairsoft version references and macOS compatibility info
echo "Searching for fairsoft version and macOS references..."
rg -g "!*.{o,d}" -A 5 -B 5 "macos|fairsoft|apple-clang"

echo "Searching for CI configuration files..."
fd -t f "\.ci|\.github|\.gitlab" -X cat {}

Length of output: 17907

@rbx rbx force-pushed the rbx-patch-1 branch 2 times, most recently from ecf7f91 to 4dfbc98 Compare December 10, 2024 13:19
Copy link

@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

🧹 Outside diff range and nitpick comments (1)
FairRoot_build_test.cmake (1)

33-33: Consider adding a TODO for re-enabling -Werror=dev

To ensure we don't permanently disable this important warning check, consider adding a TODO comment with a timeline for re-enabling it after the macOS CI transition is complete.

-#  "-Werror=dev"
+  # TODO(rbx): Re-enable after macOS CI transition is complete (Q1 2025)
+  #  "-Werror=dev"
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 4dfbc98 and f235cb8.

📒 Files selected for processing (1)
  • FairRoot_build_test.cmake (1 hunks)
🔇 Additional comments (1)
FairRoot_build_test.cmake (1)

33-33: Verify CMake developer warnings on new macOS configurations

While commenting out -Werror=dev makes sense during the macOS CI node transition, we should verify what CMake developer warnings are being triggered to ensure we're not masking important issues.

✅ Verification successful

Commenting out -Werror=dev is appropriate for the macOS CI transition

Based on the analysis of CMake configurations in the codebase:

  • The project uses CMake 3.18...3.31 as minimum required version
  • The -Werror=dev flag is also present in FairRoot_profile_test.cmake, suggesting it's a build configuration option
  • The codebase already has extensive warning controls and custom warning configurations
  • The change aligns with the goal of smoothly transitioning to new macOS versions and apple-clang-16

The temporary removal of this strict CMake developer warning check is a reasonable approach during the CI infrastructure update, as it prevents potential new CMake policy or deprecation warnings from blocking the transition.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check CMake configure logs for developer warnings
# Note: This helps understand what warnings would be triggered if -Werror=dev was enabled

# Search for CMake developer warnings in configure logs
rg -A 2 "CMake Warning \(dev\)" .

# Also check for any policy warnings that might be related
rg -A 2 "Policy CMP[0-9]+" .

Length of output: 66


Script:

#!/bin/bash
# Let's check for any CMake policy settings or related configurations in the codebase
# This will help understand the CMake environment and potential warning sources

# Search for CMake policy settings
rg "cmake_policy|CMAKE_POLICY" .

# Look for minimum CMake version requirements which often relate to policies
rg "cmake_minimum_required" .

# Check for any commented CMake warning flags in CMake files
fd -e cmake -e CMake -X rg "[-]W|WARN"

Length of output: 10546

@rbx
Copy link
Member Author

rbx commented Dec 10, 2024

Initial builds failed because this warning from VGM and Geant4 was treated as error:

Compatibility with CMake < 3.10 will be removed from a future version of CMake.

They both ask for a minimum CMake below 3.10 and the new CMake 3.31 on mac does not support those, thus producing this warning.

Everything compiles if cmake warnings are not treated as errors. As a test I removed -Werror=dev and then it compiles. What is the purpose of it? Do you want to fix the cause of the deprecation warnings in VGM and Geant4 first?

Following compilation, on MacOS 15 ex_sim_tutorial4_TGeant4 test fails in the same way on both x86 and M1:
https://cdash.gsi.de/testDetails.php?test=22342577&build=484575
in a way I don't understand.

@karabowi
Copy link
Collaborator

I think the problem is cause by the lack of Pythia6. Would it work, if you dummily try and change:
TVirtualMCDecayer* decayer = TPythia6Decayer::Instance();
to
TVirtualMCDecayer* decayer = TPythia8Decayer::Instance();

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