Skip to content

Commit 460aa5e

Browse files
Lower timeout-minutes. (#503)
* Lower timeout-minutes. * trigger CI * Update changelog. * Fix timeout-minutes. * Auto update version * trigger CI * Bump aarch64 and ppc64le timeouts to 45 minutes. * Auto update version * trigger CI --------- Co-authored-by: Dev version update bot <github-actions[bot]@users.noreply.github.com>
1 parent 6b8dbac commit 460aa5e

13 files changed

+32
-25
lines changed

.github/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
### Breaking changes
99

10+
* Introduce `timeout-minutes` in various workflows, mainly to avoid Windows builds hanging for several hours.
11+
[(#503)](https://github.com/PennyLaneAI/pennylane-lightning/pull/503)
12+
1013
* Cast integral-valued arrays to the device's complex type on entry in `_preprocess_state_vector` to ensure the state is correctly represented with floating-point numbers.
1114
[(#501)](https://github.com/PennyLaneAI/pennylane-lightning/pull/501)
1215

.github/workflows/build_and_cache_Kokkos_linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
matrix:
4646
exec_model: ${{ fromJson(needs.linux-set-builder-matrix.outputs.exec_model) }}
4747
kokkos_version: ${{ fromJson(needs.linux-set-builder-matrix.outputs.kokkos_version) }}
48-
48+
timeout-minutes: 30
4949
name: Kokkos core (${{ matrix.exec_model }})
5050
runs-on: ${{ inputs.os }}
5151

.github/workflows/tests_linux.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
matrix:
2323
os: [ubuntu-22.04]
2424
pl_backend: ["lightning_qubit"]
25-
25+
timeout-minutes: 30
2626
name: C++ tests
2727
runs-on: ${{ matrix.os }}
2828

@@ -88,7 +88,7 @@ jobs:
8888
matrix:
8989
os: [ubuntu-22.04]
9090
pl_backend: ["lightning_qubit"]
91-
91+
timeout-minutes: 30
9292
name: Python tests
9393
runs-on: ${{ matrix.os }}
9494

@@ -144,7 +144,7 @@ jobs:
144144
matrix:
145145
os: [ubuntu-22.04]
146146
pl_backend: ["lightning_qubit"]
147-
147+
timeout-minutes: 30
148148
name: C++ tests (OpenBLAS)
149149
runs-on: ${{ matrix.os }}
150150

@@ -211,7 +211,7 @@ jobs:
211211
matrix:
212212
os: [ubuntu-22.04]
213213
pl_backend: ["lightning_qubit"]
214-
214+
timeout-minutes: 30
215215
name: Python tests with OpenBLAS
216216
runs-on: ${{ matrix.os }}
217217

@@ -262,7 +262,7 @@ jobs:
262262
name: ubuntu-codecov-results-python
263263
path: ./main/coverage-${{ github.job }}-${{ matrix.pl_backend }}.xml
264264

265-
build_and_cache_Kokkos:
265+
build_and_cache_Kokkos:
266266
name: "Build and cache Kokkos"
267267
uses: ./.github/workflows/build_and_cache_Kokkos_linux.yml
268268
with:
@@ -276,7 +276,7 @@ jobs:
276276
pl_backend: ["lightning_kokkos"]
277277
exec_model: ${{ fromJson(needs.build_and_cache_Kokkos.outputs.exec_model) }}
278278
kokkos_version: ${{ fromJson(needs.build_and_cache_Kokkos.outputs.kokkos_version) }}
279-
279+
timeout-minutes: 30
280280
name: C++ tests (Kokkos)
281281
runs-on: ${{ matrix.os }}
282282

@@ -361,7 +361,7 @@ jobs:
361361
exclude:
362362
- pl_backend: ["all"]
363363
exec_model: OPENMP
364-
364+
timeout-minutes: 30
365365
name: Python tests with Kokkos
366366
runs-on: ${{ matrix.os }}
367367

@@ -496,7 +496,7 @@ jobs:
496496
os: [ubuntu-22.04]
497497
exec_model: ${{ fromJson(needs.build_and_cache_Kokkos.outputs.exec_model) }}
498498
kokkos_version: ${{ fromJson(needs.build_and_cache_Kokkos.outputs.kokkos_version) }}
499-
499+
timeout-minutes: 30
500500
name: C++ tests (multiple backends)
501501
runs-on: ${{ matrix.os }}
502502

.github/workflows/tests_windows.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ concurrency:
1111

1212
jobs:
1313
cpptests:
14+
timeout-minutes: 30
1415
name: C++ tests (Windows)
1516
runs-on: ${{ matrix.os }}
1617
strategy:
@@ -98,7 +99,7 @@ jobs:
9899
os: [windows-latest]
99100
exec_model: ${{ fromJson(needs.win-set-matrix-x86.outputs.exec_model) }}
100101
kokkos_version: ${{ fromJson(needs.win-set-matrix-x86.outputs.kokkos_version) }}
101-
102+
timeout-minutes: 30
102103
name: Kokkos core (${{ matrix.exec_model }})
103104
runs-on: ${{ matrix.os }}
104105

@@ -155,6 +156,7 @@ jobs:
155156
exec_model: ${{ fromJson(needs.win-set-matrix-x86.outputs.exec_model) }}
156157
kokkos_version: ${{ fromJson(needs.win-set-matrix-x86.outputs.kokkos_version) }}
157158

159+
timeout-minutes: 30
158160
name: C++ tests (Windows, Kokkos)
159161
runs-on: ${{ matrix.os }}
160162

@@ -229,7 +231,7 @@ jobs:
229231
path: .\coverage-${{ github.job }}-${{ matrix.pl_backend }}.xml
230232

231233
upload-to-codecov-windows:
232-
needs: [cpptests, cpptestswithKokkos]
234+
needs: [cpptests, cpptestswithkokkos]
233235
name: Upload coverage data to codecov
234236
runs-on: ubuntu-latest
235237
steps:

.github/workflows/tests_without_binary.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ concurrency:
1414

1515
jobs:
1616
pythontests:
17+
timeout-minutes: 30
1718
name: Python tests
1819
runs-on: ${{ matrix.os }}
1920
strategy:

.github/workflows/wheel_linux_aarch64.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
exec_model: ${{ fromJson(needs.set_wheel_build_matrix.outputs.exec_model) }}
3333
kokkos_version: ${{ fromJson(needs.set_wheel_build_matrix.outputs.kokkos_version) }}
3434
container_img: ["quay.io/pypa/manylinux2014_aarch64"]
35-
35+
timeout-minutes: 45
3636
name: Kokkos core (${{ matrix.exec_model }}::${{ matrix.arch }})
3737
runs-on: ${{ matrix.os }}
3838

@@ -94,7 +94,7 @@ jobs:
9494
exec_model: ${{ fromJson(needs.set_wheel_build_matrix.outputs.exec_model) }}
9595
kokkos_version: ${{ fromJson(needs.set_wheel_build_matrix.outputs.kokkos_version) }}
9696
container_img: ["quay.io/pypa/manylinux2014_aarch64"]
97-
97+
timeout-minutes: 45
9898
name: ${{ matrix.os }}::${{ matrix.arch }} - ${{ matrix.pl_backend }} (Python ${{ fromJson('{ "cp39-*":"3.9","cp310-*":"3.10","cp311-*":"3.11" }')[matrix.cibw_build] }})
9999
runs-on: ${{ matrix.os }}
100100

.github/workflows/wheel_linux_ppc64le.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
exec_model: ${{ fromJson(needs.set_wheel_build_matrix.outputs.exec_model) }}
3333
kokkos_version: ${{ fromJson(needs.set_wheel_build_matrix.outputs.kokkos_version) }}
3434
container_img: ["quay.io/pypa/manylinux2014_ppc64le"]
35-
35+
timeout-minutes: 45
3636
name: Kokkos core (${{ matrix.exec_model }}::${{ matrix.arch }})
3737
runs-on: ${{ matrix.os }}
3838

@@ -94,7 +94,7 @@ jobs:
9494
exec_model: ${{ fromJson(needs.set_wheel_build_matrix.outputs.exec_model) }}
9595
kokkos_version: ${{ fromJson(needs.set_wheel_build_matrix.outputs.kokkos_version) }}
9696
container_img: ["quay.io/pypa/manylinux2014_ppc64le"]
97-
97+
timeout-minutes: 45
9898
name: ${{ matrix.os }}::${{ matrix.arch }} - ${{ matrix.pl_backend }} (Python ${{ fromJson('{"cp39-*":"3.9","cp310-*":"3.10","cp311-*":"3.11" }')[matrix.cibw_build] }})
9999
runs-on: ${{ matrix.os }}
100100

.github/workflows/wheel_linux_x86_64.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
exec_model: ${{ fromJson(needs.set_wheel_build_matrix.outputs.exec_model) }}
3636
kokkos_version: ${{ fromJson(needs.set_wheel_build_matrix.outputs.kokkos_version) }}
3737
container_img: ["quay.io/pypa/manylinux2014_x86_64"]
38-
38+
timeout-minutes: 30
3939
name: Kokkos core (${{ matrix.exec_model }})
4040
runs-on: ${{ matrix.os }}
4141
container: ${{ matrix.container_img }}
@@ -99,7 +99,7 @@ jobs:
9999
exec_model: ${{ fromJson(needs.set_wheel_build_matrix.outputs.exec_model) }}
100100
kokkos_version: ${{ fromJson(needs.set_wheel_build_matrix.outputs.kokkos_version) }}
101101
container_img: ["quay.io/pypa/manylinux2014_x86_64"]
102-
102+
timeout-minutes: 30
103103
name: ${{ matrix.os }}::${{ matrix.arch }} - ${{ matrix.pl_backend }} (Python ${{ fromJson('{ "cp39-*":"3.9","cp310-*":"3.10","cp311-*":"3.11" }')[matrix.cibw_build] }})
104104
runs-on: ${{ matrix.os }}
105105
container: ${{ matrix.container_img }}

.github/workflows/wheel_macos_arm64.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ concurrency:
2424

2525
jobs:
2626
mac-set-matrix-arm:
27+
timeout-minutes: 30
2728
name: Set builder matrix
2829
runs-on: ubuntu-latest
2930

@@ -56,7 +57,7 @@ jobs:
5657
arch: [arm64]
5758
pl_backend: ["lightning_kokkos", "lightning_qubit"]
5859
cibw_build: ${{fromJson(needs.mac-set-matrix-arm.outputs.python_version)}}
59-
60+
timeout-minutes: 30
6061
name: macos-latest::arm64 - ${{ matrix.pl_backend }} (Python ${{ fromJson('{ "cp39-*":"3.9","cp310-*":"3.10","cp311-*":"3.11" }')[matrix.cibw_build] }})
6162
runs-on: ${{ matrix.os }}
6263

.github/workflows/wheel_macos_x86_64.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
jobs:
24-
set_wheel_build_matrix:
24+
set_wheel_build_matrix:
2525
name: "Set wheel build matrix"
2626
uses: ./.github/workflows/set_wheel_build_matrix.yml
2727
with:
@@ -35,7 +35,7 @@ jobs:
3535
arch: [x86_64]
3636
exec_model: ${{ fromJson(needs.set_wheel_build_matrix.outputs.exec_model) }}
3737
kokkos_version: ${{ fromJson(needs.set_wheel_build_matrix.outputs.kokkos_version) }}
38-
38+
timeout-minutes: 30
3939
name: Kokkos (${{ matrix.exec_model }}::${{ matrix.arch }})
4040
runs-on: ${{ matrix.os }}
4141

@@ -97,7 +97,7 @@ jobs:
9797
cibw_build: ${{fromJson(needs.set_wheel_build_matrix.outputs.python_version)}}
9898
exec_model: ${{ fromJson(needs.set_wheel_build_matrix.outputs.exec_model) }}
9999
kokkos_version: ${{ fromJson(needs.set_wheel_build_matrix.outputs.kokkos_version) }}
100-
100+
timeout-minutes: 30
101101
name: ${{ matrix.os }} - ${{ matrix.pl_backend }} (Python ${{ fromJson('{ "cp39-*":"3.9","cp310-*":"3.10","cp311-*":"3.11" }')[matrix.cibw_build] }})
102102
runs-on: ${{ matrix.os }}
103103

.github/workflows/wheel_noarch.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
matrix:
2424
os: [ubuntu-latest]
2525
pl_backend: ["lightning_kokkos", "lightning_qubit"]
26-
26+
timeout-minutes: 30
2727
name: ${{ matrix.os }} - Pure Python wheels - ${{ matrix.pl_backend }} (Python 3.9)
2828
runs-on: ${{ matrix.os }}
2929

.github/workflows/wheel_win_x86_64.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
os: [windows-2022]
3737
exec_model: ${{ fromJson(needs.set_wheel_build_matrix.outputs.exec_model) }}
3838
kokkos_version: ${{ fromJson(needs.set_wheel_build_matrix.outputs.kokkos_version) }}
39-
39+
timeout-minutes: 30
4040
name: Kokkos core (${{ matrix.exec_model }})
4141
runs-on: ${{ matrix.os }}
4242

@@ -95,7 +95,7 @@ jobs:
9595
cibw_build: ${{ fromJson(needs.set_wheel_build_matrix.outputs.python_version) }}
9696
exec_model: ${{ fromJson(needs.set_wheel_build_matrix.outputs.exec_model) }}
9797
kokkos_version: ${{ fromJson(needs.set_wheel_build_matrix.outputs.kokkos_version) }}
98-
98+
timeout-minutes: 30
9999
name: ${{ matrix.os }} - ${{ matrix.pl_backend }} (Python ${{ fromJson('{ "cp39-*":"3.9","cp310-*":"3.10","cp311-*":"3.11" }')[matrix.cibw_build] }})
100100
runs-on: ${{ matrix.os }}
101101

pennylane_lightning/core/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
Version number (major.minor.patch[-label])
1717
"""
1818

19-
__version__ = "0.33.0-dev12"
19+
__version__ = "0.33.0-dev13"

0 commit comments

Comments
 (0)