Skip to content
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

Introduce pytest-splits #696

Merged
merged 142 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
c4ff75a
Try update lightning CI paths
rashidnhm Nov 13, 2023
55091b9
Auto update version
github-actions[bot] Nov 13, 2023
5522a63
Update kokkos tests to trigger on changes to pl core
rashidnhm Nov 13, 2023
89575df
Merge branch 'sc-49020-ci-lighten-investigation' of github.com:PennyL…
rashidnhm Nov 13, 2023
6e1784d
Merge branch 'master' into sc-49020-ci-lighten-investigation
vincentmr Dec 6, 2023
6a67588
Auto update version
github-actions[bot] Dec 6, 2023
d7b1c29
Merge remote-tracking branch 'origin/sc-49020-ci-lighten-investigatio…
vincentmr Apr 24, 2024
72202f9
Split tests_linux.yml into cpp/python.
vincentmr Apr 24, 2024
c128ab3
Auto update version from '0.36.0-dev36' to '0.36.0-dev38'
ringo-but-quantum Apr 24, 2024
bb7671d
Split GPU tests into cpp/python.
vincentmr Apr 24, 2024
080ae28
Merge remote-tracking branch 'origin/master' into feature/ci_conditio…
vincentmr Apr 24, 2024
2865ab5
Split MPI-GPU tests into cpp/python.
vincentmr Apr 24, 2024
7d712b6
Fix LGPU triggers.
vincentmr Apr 24, 2024
2701e14
Remove python tests from LGPU-C++.
vincentmr Apr 24, 2024
12d455c
Remove upload-to-codecov-linux-cpp from LGPUMPI tests.
vincentmr Apr 24, 2024
b5e4c5e
Rename test workflows.
vincentmr Apr 24, 2024
576268a
Update changelog.
vincentmr Apr 24, 2024
cec9d10
Change group names.
vincentmr Apr 24, 2024
7bc6402
Use paths-ignore to simplify workflow paths
vincentmr Apr 24, 2024
65d59c8
Auto update version from '0.36.0-dev38' to '0.36.0-dev39'
ringo-but-quantum Apr 24, 2024
a6ace27
Merge branch 'master' into feature/ci_conditional_tests
vincentmr Apr 24, 2024
07446cc
Fix test names.
vincentmr Apr 24, 2024
b3b3ecd
you may only define one of `paths` and `paths-ignore` for a single event
vincentmr Apr 24, 2024
3c40f07
Fix formatting
vincentmr Apr 24, 2024
185f85e
Merge remote-tracking branch 'origin/master' into feature/ci_conditio…
vincentmr Apr 24, 2024
e189a69
Auto update version from '0.36.0-dev39' to '0.36.0-dev40'
ringo-but-quantum Apr 24, 2024
296da01
Change to paths-ignore in no-bin tests.
vincentmr Apr 24, 2024
1ba1269
Merge branch 'master' into feature/ci_conditional_tests
vincentmr Apr 24, 2024
c57761b
Auto update version from '0.36.0-dev40' to '0.36.0-dev41'
ringo-but-quantum Apr 24, 2024
b4e9373
trigger ci
vincentmr Apr 24, 2024
f4e9236
Change error message.
vincentmr Apr 24, 2024
d0ca425
Split build/test jobs.
vincentmr Apr 25, 2024
0a5ecb2
Revert pennylane_lightning/lightning_kokkos/lightning_kokkos.py
vincentmr Apr 25, 2024
94cbefa
Fix setup.py command
vincentmr Apr 25, 2024
9ef8be2
Comment workflows
vincentmr Apr 25, 2024
1bb1c65
Comment pull_request:
vincentmr Apr 25, 2024
48e17dd
Copy wheels to github.workspace /wheels
vincentmr Apr 25, 2024
c4e1dcb
SKIP_COMPILATION=True
vincentmr Apr 25, 2024
ad1bfcb
Revert SKIP_COMPILATION=True
vincentmr Apr 25, 2024
87cacbb
Remove duplicate python actions.
vincentmr Apr 25, 2024
ede99c4
Split LQ-test into 5 groups.
vincentmr Apr 25, 2024
c15cb91
Update requirements-dev.txt
vincentmr Apr 25, 2024
5f2964b
2 groups
vincentmr Apr 25, 2024
54ad1b7
1 group
vincentmr Apr 25, 2024
6536e88
7 groups
vincentmr Apr 25, 2024
a7291a9
Refactor LKokos tests
vincentmr Apr 25, 2024
964230f
Merge remote-tracking branch 'origin/master' into test/ci
vincentmr Apr 25, 2024
335c751
Auto update version from '0.36.0-dev42' to '0.36.0-dev43'
ringo-but-quantum Apr 25, 2024
1950f21
Fix cache id
vincentmr Apr 25, 2024
337381b
Fix needs
vincentmr Apr 25, 2024
dd18c68
Remove all builds
vincentmr Apr 25, 2024
1699d00
put back CMAKE_PREFIX_PATH
vincentmr Apr 25, 2024
01bbf9f
install fake lightning
vincentmr Apr 25, 2024
cba37b6
Fix compat paths
vincentmr Apr 26, 2024
1cb7b68
Auto update version from '0.36.0-dev42' to '0.36.0-dev43'
ringo-but-quantum Apr 26, 2024
ca06fa6
Revert changes.
vincentmr Apr 26, 2024
f6ce700
Update changelog
vincentmr Apr 26, 2024
ca90f47
trigger ci
vincentmr Apr 26, 2024
1f03757
build_and_cache_Kokkos_linux.yml not concurrent.
vincentmr Apr 26, 2024
9a31ec9
Remove C++ tests from compat tests (skipped anyways).
vincentmr Apr 26, 2024
0cc5c57
Use ${{ github.ref }}-${{ github.event }}-${{ inputs.lightning-versio…
vincentmr Apr 26, 2024
96a1fd2
Merge branch 'bugfix/ci_plugin_test_matrix' into test/ci
vincentmr Apr 26, 2024
64f77f2
PL_BACKEND: ${{ matrix.pl_backend }}
vincentmr Apr 26, 2024
7cc5087
Merge branch 'master' into test/ci
vincentmr Apr 26, 2024
e7c7267
Update changelog
vincentmr Apr 26, 2024
7fa56ba
Install wheel package.
vincentmr Apr 26, 2024
57444b7
Auto update version from '0.36.0-dev43' to '0.36.0-dev44'
ringo-but-quantum Apr 26, 2024
7eead36
Install scipy wheel in one place.
vincentmr Apr 26, 2024
1f3e948
Comment job triggers.
vincentmr Apr 26, 2024
758f2f9
Add LK[cpu] est durations.
vincentmr Apr 26, 2024
b54a728
trigger ci
vincentmr Apr 26, 2024
635507e
Use sha independent keys.
vincentmr Apr 26, 2024
54d4bd3
trigger ci
vincentmr Apr 26, 2024
f6f3fef
build_and_cache_Kokkos
vincentmr Apr 26, 2024
5f63abf
Change LK keys
vincentmr Apr 26, 2024
e953225
ls -l
vincentmr Apr 26, 2024
fd98dea
Install version nonce
vincentmr Apr 26, 2024
5281fa8
Do not skip comp.
vincentmr Apr 26, 2024
fb74670
Trade ref for sha in key
vincentmr Apr 26, 2024
8688445
Install after PL
vincentmr Apr 26, 2024
3fa9c40
ref ==> sha
vincentmr Apr 26, 2024
dd0b96e
Reorder
vincentmr Apr 26, 2024
fcace5e
Try LQ workflows.
vincentmr Apr 26, 2024
8771fd8
Use actions/setup-python
vincentmr Apr 26, 2024
4ad05bb
Revert triggers.
vincentmr Apr 26, 2024
69d8ec8
Provide correct cov path.
vincentmr Apr 26, 2024
252b954
Revert pennylane_lightning/core/src/utils/config.h
vincentmr Apr 26, 2024
ecaf3d4
LK uses 5 groups.
vincentmr Apr 26, 2024
7ff7c30
Restore wheels to main
vincentmr Apr 26, 2024
905fb18
main/wheels
vincentmr Apr 26, 2024
c12cd48
Revert cache paths
vincentmr Apr 26, 2024
a0debc9
Fix ls -l
vincentmr Apr 26, 2024
0d11f35
fail-on-cache-miss: true
vincentmr Apr 26, 2024
40b1f88
Introduce env.GITHUB_WORKSPACE
vincentmr Apr 26, 2024
53aadab
Use artifacts
vincentmr Apr 26, 2024
1936860
Fix paths
vincentmr Apr 26, 2024
f506d7c
No ls -l
vincentmr Apr 26, 2024
59a9ecf
Download to github.workspace
vincentmr Apr 26, 2024
806aef4
fix wheel name
vincentmr Apr 26, 2024
d4b30e8
WHEEL_NAME
vincentmr Apr 26, 2024
31344b6
Add blas.
vincentmr Apr 26, 2024
5d48797
Use outputs.
vincentmr Apr 26, 2024
69cb164
Send wheel name
vincentmr Apr 26, 2024
e5cca46
Fix artifact name
vincentmr Apr 26, 2024
267324d
Fix name
vincentmr Apr 26, 2024
31e24bc
Use WHEEL_NAME var
vincentmr Apr 26, 2024
9f20951
artifacts kokkos
vincentmr Apr 26, 2024
0cfd43e
fix wheel name
vincentmr Apr 27, 2024
42ed9b2
Restore bins.
vincentmr Apr 27, 2024
c29b499
Clean up
vincentmr Apr 27, 2024
582e61b
Split Linux CPU python tests into 2.
vincentmr Apr 27, 2024
1c80342
Fix compat workflows.
vincentmr Apr 27, 2024
0513e1e
Split format and tidy workflows.
vincentmr Apr 27, 2024
d9583e8
fix lkcpu
vincentmr Apr 27, 2024
c879154
fix concurrency group
vincentmr Apr 27, 2024
ac58186
Do not use editable installs.
vincentmr Apr 27, 2024
74e1cc6
Split full kokkos tests except unitary_correct
vincentmr Apr 27, 2024
9ba3d60
Upload LK test durations.
vincentmr Apr 29, 2024
2082b0a
duration-paths
vincentmr Apr 29, 2024
6f5869b
Unique test_durations
vincentmr Apr 29, 2024
feca3fc
Unique test_durations
vincentmr Apr 29, 2024
87a6f2a
Unique test_durations
vincentmr Apr 29, 2024
620ad86
Fix path
vincentmr Apr 29, 2024
a71fe83
Update python_lightning_kokkos_test_durations
vincentmr Apr 29, 2024
6c82010
Remove obsolete all and SERIAL tests.
vincentmr Apr 29, 2024
6aa0eb5
Update changelog
vincentmr Apr 29, 2024
dcfab73
Creating the `LightningTensor` device class based on the new API (#671)
PietropaoloFrisoni Apr 29, 2024
05a98ae
Increase tolerance for a flaky test (test_single_return_value) (#703)
AmintorDusko Apr 29, 2024
aca2c9a
Merge remote-tracking branch 'origin/master' into test/ci
vincentmr Apr 30, 2024
c5c2042
Auto update version from '0.36.0-dev45' to '0.36.0-dev46'
ringo-but-quantum Apr 30, 2024
9ec5672
Merge remote-tracking branch 'origin/v0.36.0_rc' into test/ci
vincentmr Apr 30, 2024
47f52d9
Remove LTensor stuff
vincentmr Apr 30, 2024
7b16dc3
Update changelog
vincentmr Apr 30, 2024
3a5183b
Revert requirements-dev.txt
vincentmr Apr 30, 2024
2832e7a
Merge remote-tracking branch 'origin/v0.36.0_rc' into test/ci
vincentmr May 1, 2024
8f85cdb
trigger ci
vincentmr May 1, 2024
b76f577
Update python_lightning_kokkos_test_durations
vincentmr May 1, 2024
ba8068a
Restore 'all' tests in tests_lkcuda_python.yml
vincentmr May 1, 2024
f913e1a
Fix durations paths.
vincentmr May 1, 2024
75f0433
Try --splitting-algorithm=least_duration
vincentmr May 1, 2024
94d1869
Try no -n auto lkcpu tests
vincentmr May 1, 2024
7ad3ea6
One last test.
vincentmr May 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@

### Breaking changes

* Split Lightning-Qubit and Lightning-Kokkos CPU Python tests with `pytest-split`. Remove `SERIAL` from Kokkos' `exec_model` matrix. Remove `all` from Lightning-Kokkos' `pl_backend` matrix. Move `clang-tidy` checks to `tidy.yml`. Avoid editable `pip` installations.
[(#696)](https://github.com/PennyLaneAI/pennylane-lightning/pull/696)

* Update `lightning.gpu` and `lightning.kokkos` to raise an error instead of falling back to `default.qubit`.
[(#689)](https://github.com/PennyLaneAI/pennylane-lightning/pull/689)

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_cache_Kokkos_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
- name: Kokkos execution strategy
id: exec_model
run: echo "exec_model=[\"SERIAL\", \"OPENMP\"]" >> $GITHUB_OUTPUT
run: echo "exec_model=[\"OPENMP\"]" >> $GITHUB_OUTPUT

- name: Kokkos version
id: kokkos_version
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/compat-check-latest-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ jobs:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_linux_python:
name: Lightning Compatibility test (tests_linux_python) - latest/latest
uses: ./.github/workflows/tests_linux_python.yml
tests_lqcpu_python:
name: Lightning Compatibility test (tests_lqcpu_python) - latest/latest
uses: ./.github/workflows/tests_lqcpu_python.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_lkcpu_python:
name: Lightning Compatibility test (tests_lkcpu_python) - latest/latest
uses: ./.github/workflows/tests_lkcpu_python.yml
with:
lightning-version: latest
pennylane-version: latest
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/compat-check-latest-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ jobs:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_linux_python:
name: Lightning Compatibility test (tests_linux_python) - latest/stable
uses: ./.github/workflows/tests_linux_python.yml
tests_lqcpu_python:
name: Lightning Compatibility test (tests_lqcpu_python) - latest/stable
uses: ./.github/workflows/tests_lqcpu_python.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_lkcpu_python:
name: Lightning Compatibility test (tests_lkcpu_python) - latest/stable
uses: ./.github/workflows/tests_lkcpu_python.yml
with:
lightning-version: latest
pennylane-version: stable
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/compat-check-release-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ jobs:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_linux_python:
name: Lightning Compatibility test (tests_linux_python) - release/release
uses: ./.github/workflows/tests_linux_python.yml
tests_lqcpu_python:
name: Lightning Compatibility test (tests_lqcpu_python) - release/release
uses: ./.github/workflows/tests_lqcpu_python.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_lkcpu_python:
name: Lightning Compatibility test (tests_lkcpu_python) - release/release
uses: ./.github/workflows/tests_lkcpu_python.yml
with:
lightning-version: release
pennylane-version: release
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/compat-check-stable-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ jobs:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_linux_python:
name: Lightning Compatibility test (tests_linux_python) - stable/latest
uses: ./.github/workflows/tests_linux_python.yml
tests_lqcpu_python:
name: Lightning Compatibility test (tests_lqcpu_python) - stable/latest
uses: ./.github/workflows/tests_lqcpu_python.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_lkcpu_python:
name: Lightning Compatibility test (tests_lkcpu_python) - stable/latest
uses: ./.github/workflows/tests_lkcpu_python.yml
with:
lightning-version: stable
pennylane-version: latest
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/compat-check-stable-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ jobs:
lightning-version: stable
pennylane-version: stable
secrets: inherit
tests_linux_python:
name: Lightning Compatibility test (tests_linux_python) - stable/stable
uses: ./.github/workflows/tests_linux_python.yml
tests_lqcpu_python:
name: Lightning Compatibility test (tests_lqcpu_python) - stable/stable
uses: ./.github/workflows/tests_lqcpu_python.yml
with:
lightning-version: stable
pennylane-version: stable
secrets: inherit
tests_lkcpu_python:
name: Lightning Compatibility test (tests_lkcpu_python) - stable/stable
uses: ./.github/workflows/tests_lkcpu_python.yml
with:
lightning-version: stable
pennylane-version: stable
Expand Down
37 changes: 1 addition & 36 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency:
cancel-in-progress: true

jobs:
black:
format-python:
name: Format (Python)
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -42,38 +42,3 @@ jobs:

- name: Run formatter
run: PATH=$PATH:/home/ubuntu/.local/bin/:$(dirname $(which python3))/ ./bin/format --check ./pennylane_lightning/core/src

tidy-cpp:
strategy:
matrix:
os: [ubuntu-22.04]
pl_backend: ["lightning_qubit"]

name: Tidy (C++)
runs-on: ${{ matrix.os }}

steps:
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies
run: sudo apt update && sudo apt -y install cmake gcc-11 g++-11 ninja-build libomp-14-dev && python -m pip install -r requirements-dev.txt
env:
DEBIAN_FRONTEND: noninteractive

- name: Run clang-tidy compilation
run: |
cmake -BBuild -G Ninja . \
-DENABLE_CLANG_TIDY=ON \
-DCLANG_TIDY_BINARY=$(dirname $(which python))/clang-tidy \
-DBUILD_TESTS=ON \
-DENABLE_WARNINGS=ON \
-DPL_BACKEND=${{ matrix.pl_backend }} \
-DCMAKE_CXX_COMPILER="$(which g++-11)" \
-DCMAKE_C_COMPILER="$(which gcc-11)"
cmake --build ./Build
Loading
Loading