Skip to content

feat: eic_ci_clang container#47

Open
wdconinc wants to merge 11 commits into
masterfrom
clang
Open

feat: eic_ci_clang container#47
wdconinc wants to merge 11 commits into
masterfrom
clang

Conversation

@wdconinc

@wdconinc wdconinc commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

Briefly, what does this PR introduce?

Needs:

Tests in GitHub workflows of epic and EICrecon indicate faster and smaller code when compiled with clang instead of gcc. This PR prepares a stack to run some tests with.

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue: eic_ci_clang)
  • Documentation update
  • Other: __

Copilot AI review requested due to automatic review settings November 19, 2025 15:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new ci_clang container environment to test compilation with the Clang compiler, which has shown performance benefits in GitHub workflow testing. The changes configure Spack to build a comprehensive stack using Clang instead of GCC.

Key Changes:

  • Added new ci_clang spack environment configured to build with Clang compiler and enable inter-procedural optimization (IPO)
  • Configured MPI to use mpich without Fortran support to better accommodate Clang compilation
  • Enabled mixed-toolchain compiler discovery in Docker builds to support both Clang and GCC compilers

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
spack-environment/packages.yaml Adds MPI configuration requiring mpich 4.2.1 without Fortran support to accommodate Clang builds
spack-environment/ci_clang/spack.yaml New spack environment configuration that requires Clang compiler, enables IPO where available, and includes comprehensive package list for CI testing
containers/debian/Dockerfile Adds --mixed-toolchain flag to compiler discovery to support mixed Clang/GCC toolchain usage
.gitlab-ci.yml Adds ci_clang to the nightly build matrix for the eic environment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread spack-environment/ci_clang/spack.yaml
@wdconinc wdconinc force-pushed the clang branch 2 times, most recently from ac6a952 to a84edb8 Compare November 24, 2025 02:19
Comment thread spack-environment/packages.yaml Outdated
Copilot AI review requested due to automatic review settings July 3, 2026 13:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

Comment thread spack-environment/ci_clang/spack.yaml Outdated
Comment thread spack-environment/ci_clang/spack.yaml
Comment thread spack-environment/packages.yaml
Comment thread .gitlab-ci.yml
Comment on lines 395 to 399
ENV:
- ci
- ci_clang
- ci_without_acts
- cvmfs
Copilot AI review requested due to automatic review settings July 3, 2026 18:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Comment thread containers/debian/Dockerfile Outdated
Comment thread containers/debian/Dockerfile Outdated
Comment thread spack-environment/ci_clang/spack.yaml
Comment thread .gitlab-ci.yml
Comment on lines 394 to 400
- BUILD_IMAGE: eic_
ENV:
- ci
- ci_clang
- ci_without_acts
- cvmfs
- xl
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

Capybara summary for PR 47

Copilot AI review requested due to automatic review settings July 4, 2026 14:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment on lines +1 to +14
spack:
include:
- ../concretizer.yaml
- ../config.yaml
- ../packages.yaml
- ../packages_root_without_opengl.yaml
- ../view.yaml
packages:
all:
require:
- '%clang'
- any_of: [build_system=cmake, '@:']
- any_of: [build_type=Release, '@:']
specs:
Comment on lines +8 to +11
packages:
geant4:
require:
- ~opengl
Copilot AI review requested due to automatic review settings July 4, 2026 14:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

mpich:
require:
- '@4.2.1:'
- -fortran
Comment thread .gitlab-ci.yml
Comment on lines 394 to 400
- BUILD_IMAGE: eic_
ENV:
- ci
- ci_clang
- ci_without_acts
- cvmfs
- xl
wdconinc and others added 2 commits July 4, 2026 10:18
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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