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

[Github][libc++] Prefer ubuntu-24.04 over ubuntu-latest #129949

Merged

Conversation

boomanaiden154
Copy link
Contributor

This patch replaces all instances of ubuntu-latest with ubuntu-24.04 based on the guidelines in the LLVM CI best practices doc (https://llvm.org/docs/CIBestPractices.html).

This patch replaces all instances of ubuntu-latest with ubuntu-24.04 based on
the guidelines in the LLVM CI best practices doc (https://llvm.org/docs/CIBestPractices.html).
@llvmbot llvmbot added libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. github:workflow labels Mar 5, 2025
@llvmbot
Copy link
Member

llvmbot commented Mar 5, 2025

@llvm/pr-subscribers-libcxx

Author: Aiden Grossman (boomanaiden154)

Changes

This patch replaces all instances of ubuntu-latest with ubuntu-24.04 based on the guidelines in the LLVM CI best practices doc (https://llvm.org/docs/CIBestPractices.html).


Full diff: https://github.com/llvm/llvm-project/pull/129949.diff

3 Files Affected:

  • (modified) .github/workflows/libcxx-build-containers.yml (+1-1)
  • (modified) .github/workflows/libcxx-check-generated-files.yml (+1-1)
  • (modified) .github/workflows/libcxx-restart-preempted-jobs.yaml (+2-2)
diff --git a/.github/workflows/libcxx-build-containers.yml b/.github/workflows/libcxx-build-containers.yml
index bb4bd8843772f..b499af943c8e7 100644
--- a/.github/workflows/libcxx-build-containers.yml
+++ b/.github/workflows/libcxx-build-containers.yml
@@ -26,7 +26,7 @@ on:
 
 jobs:
   build-and-push:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-24.04
     if: github.repository_owner == 'llvm'
     permissions:
       packages: write
diff --git a/.github/workflows/libcxx-check-generated-files.yml b/.github/workflows/libcxx-check-generated-files.yml
index 570055624b2a8..1f8103a114b9f 100644
--- a/.github/workflows/libcxx-check-generated-files.yml
+++ b/.github/workflows/libcxx-check-generated-files.yml
@@ -9,7 +9,7 @@ permissions:
 
 jobs:
   check_generated_files:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-24.04
     steps:
       - name: Fetch LLVM sources
         uses: actions/checkout@v4
diff --git a/.github/workflows/libcxx-restart-preempted-jobs.yaml b/.github/workflows/libcxx-restart-preempted-jobs.yaml
index e7e3772d4de22..7b341d7f22e41 100644
--- a/.github/workflows/libcxx-restart-preempted-jobs.yaml
+++ b/.github/workflows/libcxx-restart-preempted-jobs.yaml
@@ -26,7 +26,7 @@ jobs:
       statuses: read
       checks: write
       actions: write
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-24.04
     steps:
       - name: "Restart Job"
         uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
@@ -161,7 +161,7 @@ jobs:
       statuses: read
       checks: write
       actions: write
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-24.04
     steps:
       - name: "Restart Job (test)"
         uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1

@llvmbot
Copy link
Member

llvmbot commented Mar 5, 2025

@llvm/pr-subscribers-github-workflow

Author: Aiden Grossman (boomanaiden154)

Changes

This patch replaces all instances of ubuntu-latest with ubuntu-24.04 based on the guidelines in the LLVM CI best practices doc (https://llvm.org/docs/CIBestPractices.html).


Full diff: https://github.com/llvm/llvm-project/pull/129949.diff

3 Files Affected:

  • (modified) .github/workflows/libcxx-build-containers.yml (+1-1)
  • (modified) .github/workflows/libcxx-check-generated-files.yml (+1-1)
  • (modified) .github/workflows/libcxx-restart-preempted-jobs.yaml (+2-2)
diff --git a/.github/workflows/libcxx-build-containers.yml b/.github/workflows/libcxx-build-containers.yml
index bb4bd8843772f..b499af943c8e7 100644
--- a/.github/workflows/libcxx-build-containers.yml
+++ b/.github/workflows/libcxx-build-containers.yml
@@ -26,7 +26,7 @@ on:
 
 jobs:
   build-and-push:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-24.04
     if: github.repository_owner == 'llvm'
     permissions:
       packages: write
diff --git a/.github/workflows/libcxx-check-generated-files.yml b/.github/workflows/libcxx-check-generated-files.yml
index 570055624b2a8..1f8103a114b9f 100644
--- a/.github/workflows/libcxx-check-generated-files.yml
+++ b/.github/workflows/libcxx-check-generated-files.yml
@@ -9,7 +9,7 @@ permissions:
 
 jobs:
   check_generated_files:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-24.04
     steps:
       - name: Fetch LLVM sources
         uses: actions/checkout@v4
diff --git a/.github/workflows/libcxx-restart-preempted-jobs.yaml b/.github/workflows/libcxx-restart-preempted-jobs.yaml
index e7e3772d4de22..7b341d7f22e41 100644
--- a/.github/workflows/libcxx-restart-preempted-jobs.yaml
+++ b/.github/workflows/libcxx-restart-preempted-jobs.yaml
@@ -26,7 +26,7 @@ jobs:
       statuses: read
       checks: write
       actions: write
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-24.04
     steps:
       - name: "Restart Job"
         uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
@@ -161,7 +161,7 @@ jobs:
       statuses: read
       checks: write
       actions: write
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-24.04
     steps:
       - name: "Restart Job (test)"
         uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1

Copy link
Member

@mordante mordante left a comment

Choose a reason for hiding this comment

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

Thanks for catching this! Did you manually verify this or did you use a script?

LGTM!

@philnik777
Copy link
Contributor

@mordante I feel like you're sending mixed messages here.

@mordante
Copy link
Member

mordante commented Mar 6, 2025

@mordante I feel like you're sending mixed messages here.

Thanks for catching this, it seems I selected the wrong item.

Copy link
Member

@mordante mordante left a comment

Choose a reason for hiding this comment

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

Now really approved ;-)

@boomanaiden154
Copy link
Contributor Author

Did you manually verify this or did you use a script?

I fixed these by manually combing over the repo. I'm planning on looking into setting up some automation for upgrading things, but need to do some more thinking on how exactly we want to do it.

@boomanaiden154 boomanaiden154 merged commit a17a155 into llvm:main Mar 6, 2025
13 checks passed
@boomanaiden154 boomanaiden154 deleted the fix-actions-to-ubuntu-24.04-libcxx branch March 6, 2025 18:31
jph-13 pushed a commit to jph-13/llvm-project that referenced this pull request Mar 21, 2025
This patch replaces all instances of ubuntu-latest with ubuntu-24.04
based on the guidelines in the LLVM CI best practices doc
(https://llvm.org/docs/CIBestPractices.html).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github:workflow libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants