Commit 1570c6e
fix(ci): add matrix sharding to import profiler workflow (#17779)
## Overview
This PR implements static matrix sharding for the `import-profiler`
workflow to run modified packages in parallel across 8 shards, speeding
up CI execution time on multi-package PRs.
## Key Changes
* **Parallel Sharding**: Updated
[`.github/workflows/import-profiler.yml`](file:///usr/local/google/home/hebaalazzeh/git/google-cloud-python/.github/workflows/import-profiler.yml)
to split modified packages under `packages/` across 8 GitHub Actions
runner matrix shards using modulo logic (`idx % TOTAL_SHARDS`).
* **Unified Status Check**: Added an `all-import-profiles` aggregation
job that depends on the matrix run (`needs: import-profile`) to serve as
the single required GitHub status check for branch protection and merge
queue rules.
---------
Co-authored-by: Anthonios Partheniou <partheniou@google.com>1 parent b8f6776 commit 1570c6e
1 file changed
Lines changed: 46 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
23 | | - | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
0 commit comments