Skip to content

Commit

Permalink
Bug fix: compatibility workflows (#699)
Browse files Browse the repository at this point in the history
* Fix compat paths

* Auto update version from '0.36.0-dev42' to '0.36.0-dev43'

* Revert changes.

* Update changelog

* trigger ci

* build_and_cache_Kokkos_linux.yml not concurrent.

* Remove C++ tests from compat tests (skipped anyways).

* Use ${{ github.ref }}-${{ github.event }}-${{ inputs.lightning-version }}-${{ inputs.pennylane-version }} for concurrency groups.

---------

Co-authored-by: ringo-but-quantum <[email protected]>
  • Loading branch information
vincentmr and ringo-but-quantum authored Apr 26, 2024
1 parent 8b131ca commit 534a222
Show file tree
Hide file tree
Showing 17 changed files with 36 additions and 214 deletions.
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
### Breaking changes

* Add `paths` directives to test workflows to avoid running tests that cannot be impacted by changes.
[(#699)](https://github.com/PennyLaneAI/pennylane-lightning/pull/699)
[(#695)](https://github.com/PennyLaneAI/pennylane-lightning/pull/695)

* Move common components of `/src/simulator/lightning_gpu/utils/` to `/src/utils/cuda_utils/`.
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/build_and_cache_Kokkos_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ on:
description: "Kokkos version"
value: ${{ jobs.linux-set-builder-matrix.outputs.kokkos_version }}

concurrency:
group: build_and_cache_Kokkos_linux-${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
linux-set-builder-matrix:
name: Set Kokkos builder matrix
Expand Down
45 changes: 5 additions & 40 deletions .github/workflows/compat-check-latest-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,72 +6,37 @@ on:
workflow_dispatch:

jobs:
tests_lgpu_cpp:
name: Lightning Compatibility test (tests_lgpu_cpp) - latest/latest
uses: ./.github/workflows/lgpu_cpp.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_lgpumpi_cpp:
name: Lightning Compatibility test (tests_lgpumpi_cpp) - latest/latest
uses: ./.github/workflows/lgpumpi_cpp.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_linux_cpp:
name: Lightning Compatibility test (tests_linux_cpp) - latest/latest
uses: ./.github/workflows/linux_cpp.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_lkcuda_cpp:
name: Lightning Compatibility test (tests_lkcuda_cpp) - latest/latest
uses: ./.github/workflows/lkcuda_cpp.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_windows_cpp:
name: Lightning Compatibility test (tests_windows_cpp) - latest/latest
uses: ./.github/workflows/windows_cpp.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_lgpu_python:
name: Lightning Compatibility test (tests_lgpu_python) - latest/latest
uses: ./.github/workflows/lgpu_python.yml
uses: ./.github/workflows/tests_lgpu_python.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_lgpumpi_python:
name: Lightning Compatibility test (tests_lgpumpi_python) - latest/latest
uses: ./.github/workflows/lgpumpi_python.yml
uses: ./.github/workflows/tests_lgpumpi_python.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_linux_python:
name: Lightning Compatibility test (tests_linux_python) - latest/latest
uses: ./.github/workflows/linux_python.yml
uses: ./.github/workflows/tests_linux_python.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_lkcuda_python:
name: Lightning Compatibility test (tests_lkcuda_python) - latest/latest
uses: ./.github/workflows/lkcuda_python.yml
uses: ./.github/workflows/tests_lkcuda_python.yml
with:
lightning-version: latest
pennylane-version: latest
secrets: inherit
tests_without_binary:
name: Lightning Compatibility test (tests_without_binary) - latest/latest
uses: ./.github/workflows/without_binary.yml
uses: ./.github/workflows/tests_without_binary.yml
with:
lightning-version: latest
pennylane-version: latest
Expand Down
45 changes: 5 additions & 40 deletions .github/workflows/compat-check-latest-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,72 +6,37 @@ on:
workflow_dispatch:

jobs:
tests_lgpu_cpp:
name: Lightning Compatibility test (tests_lgpu_cpp) - latest/stable
uses: ./.github/workflows/lgpu_cpp.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_lgpumpi_cpp:
name: Lightning Compatibility test (tests_lgpumpi_cpp) - latest/stable
uses: ./.github/workflows/lgpumpi_cpp.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_linux_cpp:
name: Lightning Compatibility test (tests_linux_cpp) - latest/stable
uses: ./.github/workflows/linux_cpp.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_lkcuda_cpp:
name: Lightning Compatibility test (tests_lkcuda_cpp) - latest/stable
uses: ./.github/workflows/lkcuda_cpp.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_windows_cpp:
name: Lightning Compatibility test (tests_windows_cpp) - latest/stable
uses: ./.github/workflows/windows_cpp.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_lgpu_python:
name: Lightning Compatibility test (tests_lgpu_python) - latest/stable
uses: ./.github/workflows/lgpu_python.yml
uses: ./.github/workflows/tests_lgpu_python.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_lgpumpi_python:
name: Lightning Compatibility test (tests_lgpumpi_python) - latest/stable
uses: ./.github/workflows/lgpumpi_python.yml
uses: ./.github/workflows/tests_lgpumpi_python.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_linux_python:
name: Lightning Compatibility test (tests_linux_python) - latest/stable
uses: ./.github/workflows/linux_python.yml
uses: ./.github/workflows/tests_linux_python.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_lkcuda_python:
name: Lightning Compatibility test (tests_lkcuda_python) - latest/stable
uses: ./.github/workflows/lkcuda_python.yml
uses: ./.github/workflows/tests_lkcuda_python.yml
with:
lightning-version: latest
pennylane-version: stable
secrets: inherit
tests_without_binary:
name: Lightning Compatibility test (tests_without_binary) - latest/stable
uses: ./.github/workflows/without_binary.yml
uses: ./.github/workflows/tests_without_binary.yml
with:
lightning-version: latest
pennylane-version: stable
Expand Down
45 changes: 5 additions & 40 deletions .github/workflows/compat-check-release-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,72 +6,37 @@ on:
workflow_dispatch:

jobs:
tests_lgpu_cpp:
name: Lightning Compatibility test (tests_lgpu_cpp) - release/release
uses: ./.github/workflows/lgpu_cpp.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_lgpumpi_cpp:
name: Lightning Compatibility test (tests_lgpumpi_cpp) - release/release
uses: ./.github/workflows/lgpumpi_cpp.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_linux_cpp:
name: Lightning Compatibility test (tests_linux_cpp) - release/release
uses: ./.github/workflows/linux_cpp.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_lkcuda_cpp:
name: Lightning Compatibility test (tests_lkcuda_cpp) - release/release
uses: ./.github/workflows/lkcuda_cpp.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_windows_cpp:
name: Lightning Compatibility test (tests_windows_cpp) - release/release
uses: ./.github/workflows/windows_cpp.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_lgpu_python:
name: Lightning Compatibility test (tests_lgpu_python) - release/release
uses: ./.github/workflows/lgpu_python.yml
uses: ./.github/workflows/tests_lgpu_python.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_lgpumpi_python:
name: Lightning Compatibility test (tests_lgpumpi_python) - release/release
uses: ./.github/workflows/lgpumpi_python.yml
uses: ./.github/workflows/tests_lgpumpi_python.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_linux_python:
name: Lightning Compatibility test (tests_linux_python) - release/release
uses: ./.github/workflows/linux_python.yml
uses: ./.github/workflows/tests_linux_python.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_lkcuda_python:
name: Lightning Compatibility test (tests_lkcuda_python) - release/release
uses: ./.github/workflows/lkcuda_python.yml
uses: ./.github/workflows/tests_lkcuda_python.yml
with:
lightning-version: release
pennylane-version: release
secrets: inherit
tests_without_binary:
name: Lightning Compatibility test (tests_without_binary) - release/release
uses: ./.github/workflows/without_binary.yml
uses: ./.github/workflows/tests_without_binary.yml
with:
lightning-version: release
pennylane-version: release
Expand Down
45 changes: 5 additions & 40 deletions .github/workflows/compat-check-stable-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,72 +6,37 @@ on:
workflow_dispatch:

jobs:
tests_lgpu_cpp:
name: Lightning Compatibility test (tests_lgpu_cpp) - stable/latest
uses: ./.github/workflows/lgpu_cpp.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_lgpumpi_cpp:
name: Lightning Compatibility test (tests_lgpumpi_cpp) - stable/latest
uses: ./.github/workflows/lgpumpi_cpp.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_linux_cpp:
name: Lightning Compatibility test (tests_linux_cpp) - stable/latest
uses: ./.github/workflows/linux_cpp.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_lkcuda_cpp:
name: Lightning Compatibility test (tests_lkcuda_cpp) - stable/latest
uses: ./.github/workflows/lkcuda_cpp.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_windows_cpp:
name: Lightning Compatibility test (tests_windows_cpp) - stable/latest
uses: ./.github/workflows/windows_cpp.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_lgpu_python:
name: Lightning Compatibility test (tests_lgpu_python) - stable/latest
uses: ./.github/workflows/lgpu_python.yml
uses: ./.github/workflows/tests_lgpu_python.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_lgpumpi_python:
name: Lightning Compatibility test (tests_lgpumpi_python) - stable/latest
uses: ./.github/workflows/lgpumpi_python.yml
uses: ./.github/workflows/tests_lgpumpi_python.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_linux_python:
name: Lightning Compatibility test (tests_linux_python) - stable/latest
uses: ./.github/workflows/linux_python.yml
uses: ./.github/workflows/tests_linux_python.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_lkcuda_python:
name: Lightning Compatibility test (tests_lkcuda_python) - stable/latest
uses: ./.github/workflows/lkcuda_python.yml
uses: ./.github/workflows/tests_lkcuda_python.yml
with:
lightning-version: stable
pennylane-version: latest
secrets: inherit
tests_without_binary:
name: Lightning Compatibility test (tests_without_binary) - stable/latest
uses: ./.github/workflows/without_binary.yml
uses: ./.github/workflows/tests_without_binary.yml
with:
lightning-version: stable
pennylane-version: latest
Expand Down
Loading

0 comments on commit 534a222

Please sign in to comment.