From 839158d2d84b642e4f203ca2aa32be66606f3876 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Sun, 27 Jul 2025 18:13:37 +0200 Subject: [PATCH 1/3] [CI] Add perf collector job for macOS --- .github/workflows/perf.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 96f1545d7..0c4aacfe2 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -34,3 +34,40 @@ jobs: with: name: perf-stat path: perf-stat.zip + macos-clang-build-perf-stats: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v4 + - name: Install Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: 'latest-stable' + - name: Setup environment + run: | + brew update + brew install ninja mpich llvm libomp openssl + brew link libomp --overwrite --force + python3 -m pip install -r requirements.txt + - name: Download installed package + uses: actions/download-artifact@v4 + with: + name: macos-clang-install + - name: Extract installed package + run: | + mkdir -p install + tar -xzvf macos-clang-install.tar.gz -C install + - name: Run perf tests + run: | + bash -e scripts/generate_perf_results.sh + env: + PPC_NUM_PROC: 2 + PPC_NUM_THREADS: 2 + - name: Archive results + uses: montudor/action-zip@v1 + with: + args: zip -qq -r perf-stat-macos.zip build/perf_stat_dir + - name: Upload results + uses: actions/upload-artifact@v4 + with: + name: perf-stat-macos + path: perf-stat-macos.zip From eae922ff8cc043dd541acb1f64d52dfb0d136c76 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Sun, 27 Jul 2025 18:49:46 +0200 Subject: [PATCH 2/3] Address review comment, add --break-system-packages --- .github/workflows/perf.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 0c4aacfe2..6cb7d6ba7 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -47,7 +47,7 @@ jobs: brew update brew install ninja mpich llvm libomp openssl brew link libomp --overwrite --force - python3 -m pip install -r requirements.txt + python3 -m pip install -r requirements.txt --break-system-packages - name: Download installed package uses: actions/download-artifact@v4 with: @@ -60,7 +60,7 @@ jobs: run: | bash -e scripts/generate_perf_results.sh env: - PPC_NUM_PROC: 2 + PPC_NUM_PROC: 1 PPC_NUM_THREADS: 2 - name: Archive results uses: montudor/action-zip@v1 From 252943d1534c5b1b13e583e8c96ce781461a7b61 Mon Sep 17 00:00:00 2001 From: Arseniy Obolenskiy Date: Sun, 27 Jul 2025 19:48:45 +0200 Subject: [PATCH 3/3] fix CI failure --- .github/workflows/perf.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 6cb7d6ba7..246555a56 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -63,9 +63,8 @@ jobs: PPC_NUM_PROC: 1 PPC_NUM_THREADS: 2 - name: Archive results - uses: montudor/action-zip@v1 - with: - args: zip -qq -r perf-stat-macos.zip build/perf_stat_dir + working-directory: build + run: zip -r perf-stat-macos.zip perf_stat_dir - name: Upload results uses: actions/upload-artifact@v4 with: