Skip to content

Commit 02e2668

Browse files
authored
ci: aggregate checks with guardian (#20635)
1 parent e8d70bc commit 02e2668

File tree

4 files changed

+45
-72
lines changed

4 files changed

+45
-72
lines changed

.github/checkgroup.yml

Lines changed: 3 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,7 @@ subprojects:
1919
- "!*.md"
2020
- "!**/*.md"
2121
checks:
22-
- "pl-cpu (macOS-14, lightning, 3.9, 2.1, oldest)"
23-
- "pl-cpu (macOS-14, lightning, 3.10, 2.1)"
24-
- "pl-cpu (macOS-14, lightning, 3.11, 2.2.2)"
25-
- "pl-cpu (macOS-14, lightning, 3.11, 2.3)"
26-
- "pl-cpu (macOS-14, lightning, 3.12.7, 2.4.1)"
27-
- "pl-cpu (macOS-14, lightning, 3.12.7, 2.5.1)"
28-
- "pl-cpu (ubuntu-20.04, lightning, 3.9, 2.1, oldest)"
29-
- "pl-cpu (ubuntu-20.04, lightning, 3.10, 2.1)"
30-
- "pl-cpu (ubuntu-20.04, lightning, 3.11, 2.2.2)"
31-
- "pl-cpu (ubuntu-20.04, lightning, 3.11, 2.3)"
32-
- "pl-cpu (ubuntu-22.04, lightning, 3.12.7, 2.4.1)"
33-
- "pl-cpu (ubuntu-22.04, lightning, 3.12.7, 2.5.1)"
34-
- "pl-cpu (windows-2022, lightning, 3.9, 2.1, oldest)"
35-
- "pl-cpu (windows-2022, lightning, 3.10, 2.1)"
36-
- "pl-cpu (windows-2022, lightning, 3.11, 2.2.2)"
37-
- "pl-cpu (windows-2022, lightning, 3.11, 2.3)"
38-
- "pl-cpu (windows-2022, lightning, 3.12.7, 2.4.1)"
39-
- "pl-cpu (windows-2022, lightning, 3.12.7, 2.5.1)"
40-
- "pl-cpu (macOS-14, pytorch, 3.9, 2.1)"
41-
- "pl-cpu (ubuntu-20.04, pytorch, 3.9, 2.1)"
42-
- "pl-cpu (windows-2022, pytorch, 3.9, 2.1)"
43-
- "pl-cpu (macOS-14, pytorch, 3.12.7, 2.5.1)"
44-
- "pl-cpu (ubuntu-22.04, pytorch, 3.12.7, 2.5.1)"
45-
- "pl-cpu (windows-2022, pytorch, 3.12.7, 2.5.1)"
22+
- "pl-cpu-guardian" # aggregated check for all cases
4623

4724
- id: "pytorch_lightning: Azure GPU"
4825
paths:
@@ -172,30 +149,7 @@ subprojects:
172149
- "!*.md"
173150
- "!**/*.md"
174151
checks:
175-
- "fabric-cpu (macOS-14, lightning, 3.9, 2.1, oldest)"
176-
- "fabric-cpu (macOS-14, lightning, 3.10, 2.1)"
177-
- "fabric-cpu (macOS-14, lightning, 3.11, 2.2.2)"
178-
- "fabric-cpu (macOS-14, lightning, 3.11, 2.3)"
179-
- "fabric-cpu (macOS-14, lightning, 3.12.7, 2.4.1)"
180-
- "fabric-cpu (macOS-14, lightning, 3.12.7, 2.5.1)"
181-
- "fabric-cpu (ubuntu-20.04, lightning, 3.9, 2.1, oldest)"
182-
- "fabric-cpu (ubuntu-20.04, lightning, 3.10, 2.1)"
183-
- "fabric-cpu (ubuntu-20.04, lightning, 3.11, 2.2.2)"
184-
- "fabric-cpu (ubuntu-20.04, lightning, 3.11, 2.3)"
185-
- "fabric-cpu (ubuntu-22.04, lightning, 3.12.7, 2.4.1)"
186-
- "fabric-cpu (ubuntu-22.04, lightning, 3.12.7, 2.5.1)"
187-
- "fabric-cpu (windows-2022, lightning, 3.9, 2.1, oldest)"
188-
- "fabric-cpu (windows-2022, lightning, 3.10, 2.1)"
189-
- "fabric-cpu (windows-2022, lightning, 3.11, 2.2.2)"
190-
- "fabric-cpu (windows-2022, lightning, 3.11, 2.3)"
191-
- "fabric-cpu (windows-2022, lightning, 3.12.7, 2.4.1)"
192-
- "fabric-cpu (windows-2022, lightning, 3.12.7, 2.5.1)"
193-
- "fabric-cpu (macOS-14, fabric, 3.9, 2.1)"
194-
- "fabric-cpu (ubuntu-20.04, fabric, 3.9, 2.1)"
195-
- "fabric-cpu (windows-2022, fabric, 3.9, 2.1)"
196-
- "fabric-cpu (macOS-14, fabric, 3.12.7, 2.5.1)"
197-
- "fabric-cpu (ubuntu-22.04, fabric, 3.12.7, 2.5.1)"
198-
- "fabric-cpu (windows-2022, fabric, 3.12.7, 2.5.1)"
152+
- "fabric-cpu-guardian" # aggregated check for all cases
199153

200154
- id: "lightning_fabric: Azure GPU"
201155
paths:
@@ -259,27 +213,4 @@ subprojects:
259213
- "!*.md"
260214
- "!**/*.md"
261215
checks:
262-
- "install-pkg (ubuntu-22.04, fabric, 3.9)"
263-
- "install-pkg (ubuntu-22.04, fabric, 3.11)"
264-
- "install-pkg (ubuntu-22.04, pytorch, 3.9)"
265-
- "install-pkg (ubuntu-22.04, pytorch, 3.11)"
266-
- "install-pkg (ubuntu-22.04, lightning, 3.9)"
267-
- "install-pkg (ubuntu-22.04, lightning, 3.11)"
268-
- "install-pkg (ubuntu-22.04, notset, 3.9)"
269-
- "install-pkg (ubuntu-22.04, notset, 3.11)"
270-
- "install-pkg (macOS-14, fabric, 3.9)"
271-
- "install-pkg (macOS-14, fabric, 3.11)"
272-
- "install-pkg (macOS-14, pytorch, 3.9)"
273-
- "install-pkg (macOS-14, pytorch, 3.11)"
274-
- "install-pkg (macOS-14, lightning, 3.9)"
275-
- "install-pkg (macOS-14, lightning, 3.11)"
276-
- "install-pkg (macOS-14, notset, 3.9)"
277-
- "install-pkg (macOS-14, notset, 3.11)"
278-
- "install-pkg (windows-2022, fabric, 3.9)"
279-
- "install-pkg (windows-2022, fabric, 3.11)"
280-
- "install-pkg (windows-2022, pytorch, 3.9)"
281-
- "install-pkg (windows-2022, pytorch, 3.11)"
282-
- "install-pkg (windows-2022, lightning, 3.9)"
283-
- "install-pkg (windows-2022, lightning, 3.11)"
284-
- "install-pkg (windows-2022, notset, 3.9)"
285-
- "install-pkg (windows-2022, notset, 3.11)"
216+
- "install-pkg-guardian" # aggregated check for all cases

.github/workflows/ci-pkg-install.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,17 @@ jobs:
103103
LIGHTING_TESTING: 1 # path for require wrapper
104104
PY_IGNORE_IMPORTMISMATCH: 1
105105
run: python -m pytest src/lit/${PKG_NAME} --ignore-glob="**/cli/*-template/**" --doctest-plus
106+
107+
install-pkg-guardian:
108+
runs-on: ubuntu-latest
109+
needs: install-pkg
110+
if: always()
111+
steps:
112+
- run: echo "${{ needs.install-pkg.result }}"
113+
- name: failing...
114+
if: needs.install-pkg.result == 'failure'
115+
run: exit 1
116+
- name: cancelled or skipped...
117+
if: contains(fromJSON('["cancelled", "skipped"]'), needs.install-pkg.result)
118+
timeout-minutes: 1
119+
run: sleep 90

.github/workflows/ci-tests-fabric.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,17 @@ jobs:
186186
flags: ${{ env.COVERAGE_SCOPE }},cpu,pytest,python${{ matrix.python-version }}
187187
name: CPU-coverage
188188
fail_ci_if_error: false
189+
190+
fabric-cpu-guardian:
191+
runs-on: ubuntu-latest
192+
needs: fabric-cpu
193+
if: always()
194+
steps:
195+
- run: echo "${{ needs.fabric-cpu.result }}"
196+
- name: failing...
197+
if: needs.fabric-cpu.result == 'failure'
198+
run: exit 1
199+
- name: cancelled or skipped...
200+
if: contains(fromJSON('["cancelled", "skipped"]'), needs.fabric-cpu.result)
201+
timeout-minutes: 1
202+
run: sleep 90

.github/workflows/ci-tests-pytorch.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,17 @@ jobs:
223223
flags: ${{ env.COVERAGE_SCOPE }},cpu,pytest-full,python${{ matrix.python-version }},pytorch${{ matrix.pytorch-version }}
224224
name: CPU-coverage
225225
fail_ci_if_error: false
226+
227+
pl-cpu-guardian:
228+
runs-on: ubuntu-latest
229+
needs: pl-cpu
230+
if: always()
231+
steps:
232+
- run: echo "${{ needs.pl-cpu.result }}"
233+
- name: failing...
234+
if: needs.pl-cpu.result == 'failure'
235+
run: exit 1
236+
- name: cancelled or skipped...
237+
if: contains(fromJSON('["cancelled", "skipped"]'), needs.pl-cpu.result)
238+
timeout-minutes: 1
239+
run: sleep 90

0 commit comments

Comments
 (0)