Skip to content

[libc++] Shuffle the order of pre-commit CI jobs a bit #128008

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

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

ldionne
Copy link
Member

@ldionne ldionne commented Feb 20, 2025

I've recently noticed that our CI is bottlenecked around platforms on which we don't have a lot of capacity like macOS (mostly) and Windows. To try to alleviate that, this patch moves the macOS builds and the Windows builds further down the pipeline so that they will get triggered less often (if an earlier job fails).

I've recently noticed that our CI is bottlenecked around platforms on
which we don't have a lot of capacity like macOS (mostly) and Windows.
To try to alleviate that, this patch moves the macOS builds and the
Windows builds further down the pipeline so that they will get triggered
less often (if an earlier job fails).
@llvmbot llvmbot added libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. github:workflow labels Feb 20, 2025
@llvmbot
Copy link
Member

llvmbot commented Feb 20, 2025

@llvm/pr-subscribers-libcxx

@llvm/pr-subscribers-github-workflow

Author: Louis Dionne (ldionne)

Changes

I've recently noticed that our CI is bottlenecked around platforms on which we don't have a lot of capacity like macOS (mostly) and Windows. To try to alleviate that, this patch moves the macOS builds and the Windows builds further down the pipeline so that they will get triggered less often (if an earlier job fails).


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

1 Files Affected:

  • (modified) .github/workflows/libcxx-build-and-test.yaml (+3-3)
diff --git a/.github/workflows/libcxx-build-and-test.yaml b/.github/workflows/libcxx-build-and-test.yaml
index d0193a4ec2faa..93e673ca513a4 100644
--- a/.github/workflows/libcxx-build-and-test.yaml
+++ b/.github/workflows/libcxx-build-and-test.yaml
@@ -124,7 +124,7 @@ jobs:
             **/crash_diagnostics/*
   stage3:
     if: github.repository_owner == 'llvm'
-    needs: [ stage1, stage2 ]
+    needs: [ stage2 ]
     continue-on-error: false
     strategy:
       fail-fast: false
@@ -188,7 +188,7 @@ jobs:
             **/crash_diagnostics/*
 
   macos:
-    needs: [ stage1 ]
+    needs: [ stage3 ]
     strategy:
       fail-fast: false
       matrix:
@@ -232,7 +232,7 @@ jobs:
 
   windows:
     runs-on: windows-2022
-    needs: [ stage1 ]
+    needs: [ stage2 ]
     strategy:
       fail-fast: false
       matrix:

@ldionne ldionne merged commit e11ca59 into llvm:main Feb 21, 2025
66 checks passed
@ldionne ldionne deleted the review/shuffle-precommit-ci-order branch February 21, 2025 12:58
@philnik777
Copy link
Contributor

FWIW I find the title of the patch a bit misleading. This makes the pipeline even longer, which isn't at all obvious and I'm really not a huge fan of making it even longer. Is this intended to be permanent?

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.

3 participants