Skip to content

Bump main Ubuntu version to 24.04 in GitHub Actions [circle skip]#588

Merged
laurynas-biveinis merged 1 commit into
masterfrom
ga-ubuntu-24.04
Nov 11, 2025
Merged

Bump main Ubuntu version to 24.04 in GitHub Actions [circle skip]#588
laurynas-biveinis merged 1 commit into
masterfrom
ga-ubuntu-24.04

Conversation

@laurynas-biveinis
Copy link
Copy Markdown
Collaborator

@laurynas-biveinis laurynas-biveinis commented Jul 16, 2024

Summary by CodeRabbit

  • Chores
    • CI workflows updated to run on ubuntu-latest for consistency across builds and analysis jobs.
    • Simplified and consolidated dependency installation in workflows (merged valgrind into apt installs; removed legacy/duplicate setup steps).
    • Switched LLVM package source to a newer release channel to ensure required toolchain availability.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Dec 5, 2024

Walkthrough

CI workflow files updated to use ubuntu-latest runners; LLVM apt source changed from jammy to noble; removed a clang-tidy removal step and the ubuntu-toolchain PPA; valgrind and related packages consolidated into apt installs. No public API changes.

Changes

Cohort / File(s) Change Summary
CI runner updates
.github/workflows/build.yml, .github/workflows/codeql-analysis.yml, .github/workflows/feature-matrix-build.yml, .github/workflows/examples.yml, .github/workflows/valgrind.yml
Replaced ubuntu-22.04 with ubuntu-latest for affected jobs/runners.
Build workflow edits
Build workflow: .github/workflows/build.yml
Switched LLVM apt repo from http://apt.llvm.org/jammy/ to http://apt.llvm.org/noble/; removed apt-get remove clang-tidy-11 step and removed the ubuntu-toolchain-r/test PPA addition.
Examples & Valgrind setup
.github/workflows/examples.yml, .github/workflows/valgrind.yml
Consolidated dependency installation: added valgrind (and related deps) to the apt-get install line and removed separate snap-based valgrind/snap steps.
Coverage & static analysis
.github/workflows/build.yml
Preserved coverage and static-analysis jobs; updated references to reflect runner and repo changes only.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    participant Dev as Developer
    participant GH as GitHub Actions

    rect "#E8F5E9"
      Dev->>GH: Push / PR triggers workflows
      GH->>GH: Select runner -> ubuntu-latest
    end

    rect "#FFF3E0"
      GH->>GH: Install packages via apt-get (includes valgrind)
      GH->>GH: Configure LLVM repo -> apt.llvm.org/noble
      GH->>GH: Run build, tests, coverage, static-analysis
    end

    GH->>Dev: Report status / artifacts
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Focus review: .github/workflows/build.yml (LLVM repo change, removed steps, PPA removal) and .github/workflows/{examples,valgrind}.yml (dependency install consolidation).
  • Verify runner compatibility and that apt-provided valgrind and LLVM noble toolchain behave as expected.

Possibly related PRs

Suggested reviewers

  • thompsonbry

Poem

🐰 CI hops to newer ground,
ubuntu-latest now found.
LLVM to noble sails away,
valgrind joins apt today.
Builds hum on the greener bay.

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Title check ⚠️ Warning The title states 'Bump main Ubuntu version to 24.04' but the actual changes only update ubuntu-22.04 to ubuntu-latest, not to 24.04 specifically. Correct the title to accurately reflect the changes: use 'ubuntu-latest' instead of 'ubuntu-24.04', or verify if the intent was to pin to 24.04 specifically and update the workflow files accordingly.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ga-ubuntu-24.04

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9c3f1b0 and b0978bb.

📒 Files selected for processing (5)
  • .github/workflows/build.yml (2 hunks)
  • .github/workflows/codeql-analysis.yml (1 hunks)
  • .github/workflows/examples.yml (2 hunks)
  • .github/workflows/feature-matrix-build.yml (1 hunks)
  • .github/workflows/valgrind.yml (2 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). (30)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (XCode Debug with TSan (Intel), macos-latest, Debug, macos-clang, ON, OFF)
  • GitHub Check: build (XCode Release with TSan (Intel), macos-latest, Release, macos-clang, ON, OFF)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (XCode Debug with TSan (Intel), macos-latest, Debug, macos-clang, ON, OFF)
  • GitHub Check: build (XCode Release with TSan (Intel), macos-latest, Release, macos-clang, ON, OFF)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (XCode Debug with TSan (Intel), macos-latest, Debug, macos-clang, ON, OFF)
  • GitHub Check: build (XCode Release with TSan (Intel), macos-latest, Release, macos-clang, ON, OFF)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (XCode Debug with TSan (Intel), macos-latest, Debug, macos-clang, ON, OFF)
  • GitHub Check: build (XCode Release with TSan (Intel), macos-latest, Release, macos-clang, ON, OFF)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (XCode Debug with TSan (Intel), macos-latest, Debug, macos-clang, ON, OFF)
  • GitHub Check: build (XCode Release with TSan (Intel), macos-latest, Release, macos-clang, ON, OFF)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (XCode Debug with TSan (Intel), macos-latest, Debug, macos-clang, ON, OFF)
  • GitHub Check: build (XCode Release with TSan (Intel), macos-latest, Release, macos-clang, ON, OFF)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (XCode Debug with TSan (Intel), macos-latest, Debug, macos-clang, ON, OFF)
  • GitHub Check: build (XCode Release with TSan (Intel), macos-latest, Release, macos-clang, ON, OFF)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (XCode Debug with TSan (Intel), macos-latest, Debug, macos-clang, ON, OFF)
  • GitHub Check: build (XCode Release with TSan (Intel), macos-latest, Release, macos-clang, ON, OFF)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (XCode Debug with TSan (Intel), macos-latest, Debug, macos-clang, ON, OFF)
  • GitHub Check: build (XCode Release with TSan (Intel), macos-latest, Release, macos-clang, ON, OFF)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (XCode Debug with TSan (Intel), macos-latest, Debug, macos-clang, ON, OFF)
  • GitHub Check: build (XCode Release with TSan (Intel), macos-latest, Release, macos-clang, ON, OFF)
🔇 Additional comments (8)
.github/workflows/feature-matrix-build.yml (1)

14-14: LGTM. Straightforward runner update from ubuntu-22.04 to ubuntu-latest, aligning with the PR objective.

.github/workflows/codeql-analysis.yml (1)

14-14: LGTM. Runner update consistent with feature-matrix-build.yml and other workflows.

.github/workflows/valgrind.yml (2)

14-14: LGTM. Runner update consistent with PR objective.


33-36: Excellent consolidation. Merging valgrind installation into the main apt-get call reduces step overhead and aligns with examples.yml pattern.

.github/workflows/examples.yml (2)

14-14: LGTM. Runner updated consistently.


38-39: LGTM. Valgrind consolidated into apt-get install, matching the pattern across workflows.

.github/workflows/build.yml (2)

40-40: LGTM. All GCC and clang matrix entries consistently updated to ubuntu-latest; macOS runners correctly left unchanged.

Also applies to: 45-45, 51-51, 57-57, 63-63, 68-68, 74-74, 80-80, 86-86, 92-92, 99-99, 103-103, 108-108, 114-114, 120-120, 126-126, 131-131, 137-137, 143-143, 149-149, 155-155


296-296: Repository URL is correct. LLVM 20 packages are officially available via apt.llvm.org for noble, and llvm-toolchain-20 exists in noble repositories. The script failed due to repository metadata structure, not missing packages. The change from jammy to noble is appropriate for Ubuntu 24.04.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
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

🧹 Outside diff range and nitpick comments (1)
.github/workflows/codeql-analysis.yml (1)

Line range hint 44-47: Consider updating GCC version to 13

Ubuntu 24.04 ships with GCC 13 by default. Consider updating the symlinks to use gcc-13/g++-13 instead of version 11.

-          sudo ln -sf /usr/bin/g++-11 /usr/bin/g++
-          sudo ln -sf /usr/bin/gcc-11 /usr/bin/gcc
+          sudo ln -sf /usr/bin/g++-13 /usr/bin/g++
+          sudo ln -sf /usr/bin/gcc-13 /usr/bin/gcc
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 35ca435 and b7345fe.

📒 Files selected for processing (2)
  • .github/workflows/build.yml (3 hunks)
  • .github/workflows/codeql-analysis.yml (1 hunks)
🔇 Additional comments (3)
.github/workflows/codeql-analysis.yml (1)

29-29: Verify CodeQL compatibility with Ubuntu 24.04

While the upgrade to Ubuntu 24.04 aligns with the latest LTS release, we should verify the compatibility of the current toolchain with Noble Numbat.

✅ Verification successful

Ubuntu 24.04 upgrade is compatible with CodeQL workflow

The workflow uses GitHub's CodeQL action v3 which is compatible with Ubuntu 24.04. The analysis shows:

  • The workflow uses official github/codeql-action at version 3
  • Only C++ language analysis is configured
  • Uses standard autobuild feature without custom build commands
  • No specific toolchain dependencies are enforced in the workflow

Since GitHub officially supports Ubuntu 24.04 runners and CodeQL v3 is the latest major version, this upgrade is safe.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify if the current dependencies are available in Ubuntu 24.04 repositories

# Check if gcc-11 package is available in Ubuntu 24.04
curl -s "https://packages.ubuntu.com/noble/gcc-11" | grep -q "No such package"
GCC11_STATUS=$?

# Check if libboost-dev package is available
curl -s "https://packages.ubuntu.com/noble/libboost-dev" | grep -q "No such package"
BOOST_STATUS=$?

if [ $GCC11_STATUS -eq 0 ] || [ $BOOST_STATUS -eq 0 ]; then
    echo "Warning: Some dependencies might not be available in Ubuntu 24.04"
    [ $GCC11_STATUS -eq 0 ] && echo "- gcc-11 not found"
    [ $BOOST_STATUS -eq 0 ] && echo "- libboost-dev not found"
fi

Length of output: 233


Script:

#!/bin/bash
# Let's verify the CodeQL action compatibility and configurations

# Check if there are any specific CodeQL configurations or language settings
rg -l "codeql" --type yaml

# Check the CodeQL configuration details
rg "language|runs-on|codeql" .github/workflows/codeql-analysis.yml -A 2 -B 2

# Check if there are any build or compile steps that might be affected
rg "build|compile|make|cmake" .github/workflows/codeql-analysis.yml

Length of output: 2302

.github/workflows/build.yml (2)

38-38: LGTM! Ubuntu version updates are consistent

The Ubuntu version has been consistently updated to 24.04 across all Linux build configurations.

Also applies to: 43-43, 49-49, 55-55, 61-61, 66-66, 72-72, 78-78, 84-84, 90-90, 97-97, 101-101, 106-106, 112-112, 118-118, 124-124, 129-129, 135-135, 141-141, 147-147, 153-153, 269-269, 276-276


Line range hint 1-500: Build matrix configuration looks good

The Ubuntu version updates have been applied consistently across all Linux builds while maintaining:

  • All compiler configurations (GCC and Clang)
  • All build types (Debug and Release)
  • All sanitizer configurations (ASan, TSan, UBSan)
  • Coverage builds
  • Static analysis builds

MacOS configurations are correctly left unchanged.

Comment thread .github/workflows/build.yml Outdated
Comment on lines 308 to 311
echo 'deb http://apt.llvm.org/noble/ llvm-toolchain-noble-19 main' \
| sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y clang-19 iwyu
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.

💡 Codebase verification

Switch to LLVM 18 as LLVM 19 packages are not yet available

LLVM 19 packages are currently not available in the noble repository. The workflow has multiple dependencies on LLVM 19 components (clang-19, libomp5-19, llvm-19, lld-19, clang-tools-19, clang-tidy-19) that need to be updated to use version 18 instead.

  • .github/workflows/build.yml: Update all occurrences of LLVM/Clang 19 to version 18
    • Repository URL: Change llvm-toolchain-noble-19 to llvm-toolchain-noble-18
    • Package installations: Update all package names from -19 suffix to -18
    • Job names: Update all references from "clang 19" to "clang 18"
🔗 Analysis chain

Verify LLVM 19 package availability in Ubuntu 24.04

The change to the noble repository is correct, but we should verify the availability and stability of LLVM 19 packages.


Let me verify the LLVM 18 availability as a fallback option before making the final recommendation.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify LLVM 19 package availability in Ubuntu 24.04 repository

# Check if LLVM 19 packages are available
curl -s "http://apt.llvm.org/noble/dists/llvm-toolchain-noble-19/main/binary-amd64/Packages" | \
  grep -E "Package: (clang-19|llvm-19|lld-19|clang-tools-19|libomp5-19)"

if [ $? -ne 0 ]; then
    echo "Warning: Some LLVM 19 packages might not be available yet"
fi

Length of output: 308


Script:

#!/bin/bash
# Check if LLVM 18 packages are available as a stable alternative
curl -s "http://apt.llvm.org/noble/dists/llvm-toolchain-noble-18/main/binary-amd64/Packages" | \
  grep -E "Package: (clang-18|llvm-18)"

# Also verify if there's any mention of LLVM 19 in the workflow file that needs to be updated
rg "llvm.*19|clang.*19" .github/workflows/

Length of output: 1324

@laurynas-biveinis laurynas-biveinis force-pushed the ga-ubuntu-24.04 branch 2 times, most recently from aa71fdf to 9058bea Compare December 5, 2024 06:37
Copy link
Copy Markdown
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: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9058bea and 6226836.

📒 Files selected for processing (5)
  • .github/workflows/build.yml (3 hunks)
  • .github/workflows/codeql-analysis.yml (1 hunks)
  • .github/workflows/examples.yml (2 hunks)
  • .github/workflows/feature-matrix-build.yml (1 hunks)
  • .github/workflows/valgrind.yml (2 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). (60)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (clang 13 Release, Release, clang, 13, EMPTY)
  • GitHub Check: build (clang 12 Release with TSan, Release, ON, clang, 12)
  • GitHub Check: build (clang 11 Release with UBSan, Release, ON, clang, 11)
  • GitHub Check: build (clang 11 Debug with ASan, Debug, ON, clang, 11)
  • GitHub Check: build (clang 11 Release with TSan, Release, ON, clang, 11)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (clang 13 Release, Release, clang, 13, EMPTY)
  • GitHub Check: build (clang 12 Release with TSan, Release, ON, clang, 12)
  • GitHub Check: build (clang 11 Release with UBSan, Release, ON, clang, 11)
  • GitHub Check: build (clang 11 Debug with ASan, Debug, ON, clang, 11)
  • GitHub Check: build (clang 11 Release with TSan, Release, ON, clang, 11)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (clang 13 Release, Release, clang, 13, EMPTY)
  • GitHub Check: build (clang 12 Release with TSan, Release, ON, clang, 12)
  • GitHub Check: build (clang 11 Release with UBSan, Release, ON, clang, 11)
  • GitHub Check: build (clang 11 Debug with ASan, Debug, ON, clang, 11)
  • GitHub Check: build (clang 11 Release with TSan, Release, ON, clang, 11)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (clang 13 Release, Release, clang, 13, EMPTY)
  • GitHub Check: build (clang 12 Release with TSan, Release, ON, clang, 12)
  • GitHub Check: build (clang 11 Release with UBSan, Release, ON, clang, 11)
  • GitHub Check: build (clang 11 Debug with ASan, Debug, ON, clang, 11)
  • GitHub Check: build (clang 11 Release with TSan, Release, ON, clang, 11)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (clang 13 Release, Release, clang, 13, EMPTY)
  • GitHub Check: build (clang 12 Release with TSan, Release, ON, clang, 12)
  • GitHub Check: build (clang 11 Release with UBSan, Release, ON, clang, 11)
  • GitHub Check: build (clang 11 Debug with ASan, Debug, ON, clang, 11)
  • GitHub Check: build (clang 11 Release with TSan, Release, ON, clang, 11)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (clang 13 Release, Release, clang, 13, EMPTY)
  • GitHub Check: build (clang 12 Release with TSan, Release, ON, clang, 12)
  • GitHub Check: build (clang 11 Release with UBSan, Release, ON, clang, 11)
  • GitHub Check: build (clang 11 Debug with ASan, Debug, ON, clang, 11)
  • GitHub Check: build (clang 11 Release with TSan, Release, ON, clang, 11)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (clang 13 Release, Release, clang, 13, EMPTY)
  • GitHub Check: build (clang 12 Release with TSan, Release, ON, clang, 12)
  • GitHub Check: build (clang 11 Release with UBSan, Release, ON, clang, 11)
  • GitHub Check: build (clang 11 Debug with ASan, Debug, ON, clang, 11)
  • GitHub Check: build (clang 11 Release with TSan, Release, ON, clang, 11)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (clang 13 Release, Release, clang, 13, EMPTY)
  • GitHub Check: build (clang 12 Release with TSan, Release, ON, clang, 12)
  • GitHub Check: build (clang 11 Release with UBSan, Release, ON, clang, 11)
  • GitHub Check: build (clang 11 Debug with ASan, Debug, ON, clang, 11)
  • GitHub Check: build (clang 11 Release with TSan, Release, ON, clang, 11)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (clang 13 Release, Release, clang, 13, EMPTY)
  • GitHub Check: build (clang 12 Release with TSan, Release, ON, clang, 12)
  • GitHub Check: build (clang 11 Release with UBSan, Release, ON, clang, 11)
  • GitHub Check: build (clang 11 Debug with ASan, Debug, ON, clang, 11)
  • GitHub Check: build (clang 11 Release with TSan, Release, ON, clang, 11)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: build (clang 13 Release, Release, clang, 13, EMPTY)
  • GitHub Check: build (clang 12 Release with TSan, Release, ON, clang, 12)
  • GitHub Check: build (clang 11 Release with UBSan, Release, ON, clang, 11)
  • GitHub Check: build (clang 11 Debug with ASan, Debug, ON, clang, 11)
  • GitHub Check: build (clang 11 Release with TSan, Release, ON, clang, 11)
🔇 Additional comments (6)
.github/workflows/feature-matrix-build.yml (1)

14-14: Straightforward upgrade to ubuntu-latest.

This change is correct and aligns with the PR objective.

.github/workflows/codeql-analysis.yml (1)

14-14: Correct upgrade to ubuntu-latest.

No concerns; standard dependency installation will work on ubuntu 24.04.

.github/workflows/valgrind.yml (1)

14-14: Good consolidation of package installation.

Moving valgrind installation to apt-get and removing snap-based installation is cleaner and more efficient for ubuntu 24.04.

Also applies to: 35-35

.github/workflows/examples.yml (1)

14-14: Consistent package consolidation pattern.

Aligns with valgrind.yml changes; apt-based valgrind installation is appropriate for ubuntu 24.04.

Also applies to: 37-38

.github/workflows/build.yml (2)

42-42: Comprehensive and consistent ubuntu-latest upgrades.

All ubuntu-22.04 entries correctly updated; macOS entries appropriately left unchanged.

Also applies to: 47-47, 53-53, 59-59, 65-65, 70-70, 76-76, 82-82, 88-88, 94-94, 101-101, 105-105, 110-110, 116-116, 122-122, 128-128, 133-133, 139-139, 145-145, 151-151, 157-157, 273-273, 280-280


315-315: LLVM version consistency is correct.

All LLVM packages correctly target version 20 (clang-20, libomp5-20, llvm-20, lld-20, clang-tools-20, clang-tidy-20), resolving the LLVM 19 availability issues flagged in prior review.

Also applies to: 319-319, 325-325, 331-331

Comment thread .github/workflows/build.yml Outdated
@sonarqubecloud
Copy link
Copy Markdown

@laurynas-biveinis laurynas-biveinis merged commit 48d175f into master Nov 11, 2025
227 of 229 checks passed
@laurynas-biveinis laurynas-biveinis deleted the ga-ubuntu-24.04 branch November 11, 2025 08:58
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.

1 participant