From 288b08d1f491319fde56307a27d8283b8e8a846b Mon Sep 17 00:00:00 2001 From: Ali Asadi <10773383+maliasadi@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:16:32 -0400 Subject: [PATCH] Fix the CodeCov issue with compat-check actions (#682) * Add secrets and update codecov-action version v3 -> v4 * Update support * Auto update version * trigger ci * Update suppress-no-test-exit-code * Update/test gpu_kokkos * Update support * trigger ci * Auto update version * trigger ci --------- Co-authored-by: Dev version update bot --- .github/CHANGELOG.md | 3 +++ .github/workflows/compat-check-latest-latest.yml | 5 +++++ .github/workflows/compat-check-latest-stable.yml | 5 +++++ .github/workflows/compat-check-release-release.yml | 5 +++++ .github/workflows/compat-check-stable-latest.yml | 5 +++++ .github/workflows/compat-check-stable-stable.yml | 5 +++++ .github/workflows/tests_gpu_cuda.yml | 6 ++++-- .github/workflows/tests_linux.yml | 11 ++++++++--- .github/workflows/tests_linux_x86_mpi_gpu.yml | 4 ++-- .github/workflows/tests_windows.yml | 5 +++-- .github/workflows/tests_without_binary.yml | 5 +++-- pennylane_lightning/core/_version.py | 2 +- 12 files changed, 49 insertions(+), 12 deletions(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index bce7e0a22..e176c95de 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -89,6 +89,9 @@ * Update the `LightningQubit` new device API to work with Catalyst. [(#665)](https://github.com/PennyLaneAI/pennylane-lightning/pull/665) +* Update the version of `codecov-action` to v4 and fix the CodeCov issue with the PL-Lightning check-compatibility actions. + [(#682)](https://github.com/PennyLaneAI/pennylane-lightning/pull/682) + ### Contributors This release contains contributions from (in alphabetical order): diff --git a/.github/workflows/compat-check-latest-latest.yml b/.github/workflows/compat-check-latest-latest.yml index 63533e089..fadf592de 100644 --- a/.github/workflows/compat-check-latest-latest.yml +++ b/.github/workflows/compat-check-latest-latest.yml @@ -12,27 +12,32 @@ jobs: with: lightning-version: latest pennylane-version: latest + secrets: inherit # pass all secrets tests_lkokkos_gpu: name: Lightning Compatibility test (tests_lkokkos_gpu) - latest/latest uses: ./.github/workflows/tests_gpu_kokkos.yml with: lightning-version: latest pennylane-version: latest + secrets: inherit # pass all secrets tests_lgpu_gpu: name: Lightning Compatibility test (tests_lgpu_gpu) - latest/latest uses: ./.github/workflows/tests_gpu_cuda.yml with: lightning-version: latest pennylane-version: latest + secrets: inherit # pass all secrets tests_lgpu_gpu_mpi: name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - latest/latest uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml with: lightning-version: latest pennylane-version: latest + secrets: inherit # pass all secrets tests_without_binary: name: Lightning Compatibility test (tests_without_binary) - latest/latest uses: ./.github/workflows/tests_without_binary.yml with: lightning-version: latest pennylane-version: latest + secrets: inherit # pass all secrets diff --git a/.github/workflows/compat-check-latest-stable.yml b/.github/workflows/compat-check-latest-stable.yml index 3e589283e..d395d0953 100644 --- a/.github/workflows/compat-check-latest-stable.yml +++ b/.github/workflows/compat-check-latest-stable.yml @@ -12,27 +12,32 @@ jobs: with: lightning-version: latest pennylane-version: stable + secrets: inherit # pass all secrets tests_lkokkos_gpu: name: Lightning Compatibility test (tests_lkokkos_gpu) - latest/stable uses: ./.github/workflows/tests_gpu_kokkos.yml with: lightning-version: latest pennylane-version: stable + secrets: inherit # pass all secrets tests_lgpu_gpu: name: Lightning Compatibility test (tests_lgpu_gpu) - latest/stable uses: ./.github/workflows/tests_gpu_cuda.yml with: lightning-version: latest pennylane-version: stable + secrets: inherit # pass all secrets tests_lgpu_gpu_mpi: name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - latest/stable uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml with: lightning-version: latest pennylane-version: stable + secrets: inherit # pass all secrets tests_without_binary: name: Lightning Compatibility test (tests_without_binary) - latest/stable uses: ./.github/workflows/tests_without_binary.yml with: lightning-version: latest pennylane-version: stable + secrets: inherit # pass all secrets diff --git a/.github/workflows/compat-check-release-release.yml b/.github/workflows/compat-check-release-release.yml index 52c6bea41..2c3f9becf 100644 --- a/.github/workflows/compat-check-release-release.yml +++ b/.github/workflows/compat-check-release-release.yml @@ -12,27 +12,32 @@ jobs: with: lightning-version: release pennylane-version: release + secrets: inherit # pass all secrets tests_lkokkos_gpu: name: Lightning Compatibility test (tests_lkokkos_gpu) - release/release uses: ./.github/workflows/tests_gpu_kokkos.yml with: lightning-version: release pennylane-version: release + secrets: inherit # pass all secrets tests_lgpu_gpu: name: Lightning Compatibility test (tests_lgpu_gpu) - release/release uses: ./.github/workflows/tests_gpu_cuda.yml with: lightning-version: release pennylane-version: release + secrets: inherit # pass all secrets tests_lgpu_gpu_mpi: name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - release/release uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml with: lightning-version: release pennylane-version: release + secrets: inherit # pass all secrets tests_without_binary: name: Lightning Compatibility test (tests_without_binary) - release/release uses: ./.github/workflows/tests_without_binary.yml with: lightning-version: release pennylane-version: release + secrets: inherit # pass all secrets diff --git a/.github/workflows/compat-check-stable-latest.yml b/.github/workflows/compat-check-stable-latest.yml index f7e125ca6..a06e4b9a9 100644 --- a/.github/workflows/compat-check-stable-latest.yml +++ b/.github/workflows/compat-check-stable-latest.yml @@ -12,27 +12,32 @@ jobs: with: lightning-version: stable pennylane-version: latest + secrets: inherit # pass all secrets tests_lkokkos_gpu: name: Lightning Compatibility test (tests_lkokkos_gpu) - stable/latest uses: ./.github/workflows/tests_gpu_kokkos.yml with: lightning-version: stable pennylane-version: latest + secrets: inherit # pass all secrets tests_lgpu_gpu: name: Lightning Compatibility test (tests_lgpu_gpu) - stable/latest uses: ./.github/workflows/tests_gpu_cuda.yml with: lightning-version: stable pennylane-version: latest + secrets: inherit # pass all secrets tests_lgpu_gpu_mpi: name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - stable/latest uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml with: lightning-version: stable pennylane-version: latest + secrets: inherit # pass all secrets tests_without_binary: name: Lightning Compatibility test (tests_without_binary) - stable/latest uses: ./.github/workflows/tests_without_binary.yml with: lightning-version: stable pennylane-version: latest + secrets: inherit # pass all secrets diff --git a/.github/workflows/compat-check-stable-stable.yml b/.github/workflows/compat-check-stable-stable.yml index 8f33068c3..ddf6e07b1 100644 --- a/.github/workflows/compat-check-stable-stable.yml +++ b/.github/workflows/compat-check-stable-stable.yml @@ -12,27 +12,32 @@ jobs: with: lightning-version: stable pennylane-version: stable + secrets: inherit # pass all secrets tests_lkokkos_gpu: name: Lightning Compatibility test (tests_lkokkos_gpu) - stable/stable uses: ./.github/workflows/tests_gpu_kokkos.yml with: lightning-version: stable pennylane-version: stable + secrets: inherit # pass all secrets tests_lgpu_gpu: name: Lightning Compatibility test (tests_lgpu_gpu) - stable/stable uses: ./.github/workflows/tests_gpu_cuda.yml with: lightning-version: stable pennylane-version: stable + secrets: inherit # pass all secrets tests_lgpu_gpu_mpi: name: Lightning Compatibility test (tests_lgpu_gpu_mpi) - stable/stable uses: ./.github/workflows/tests_linux_x86_mpi_gpu.yml with: lightning-version: stable pennylane-version: stable + secrets: inherit # pass all secrets tests_without_binary: name: Lightning Compatibility test (tests_without_binary) - stable/stable uses: ./.github/workflows/tests_without_binary.yml with: lightning-version: stable pennylane-version: stable + secrets: inherit # pass all secrets diff --git a/.github/workflows/tests_gpu_cuda.yml b/.github/workflows/tests_gpu_cuda.yml index 9d276b170..c15f4fa1b 100644 --- a/.github/workflows/tests_gpu_cuda.yml +++ b/.github/workflows/tests_gpu_cuda.yml @@ -340,9 +340,10 @@ jobs: name: ubuntu-codecov-results-python - name: Upload to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: true + verbose: true token: ${{ secrets.CODECOV_TOKEN }} upload-to-codecov-linux-cpp: @@ -359,9 +360,10 @@ jobs: name: ubuntu-codecov-results-cpp - name: Upload to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: true + verbose: true token: ${{ secrets.CODECOV_TOKEN }} - name: Cleanup diff --git a/.github/workflows/tests_linux.yml b/.github/workflows/tests_linux.yml index 6f8885211..840575d24 100644 --- a/.github/workflows/tests_linux.yml +++ b/.github/workflows/tests_linux.yml @@ -560,10 +560,13 @@ jobs: cd main/ DEVICENAME=`echo ${{ matrix.pl_backend }} | sed "s/_/./g"` PL_DEVICE=${DEVICENAME} python -m pytest tests/ -k "not test_native_mcm" $COVERAGE_FLAGS - OMP_NUM_THREADS=1 PL_DEVICE=${DEVICENAME} python -m pytest -n auto tests/ -k "test_native_mcm" $COVERAGE_FLAGS --cov-append pl-device-test --device ${DEVICENAME} --skip-ops --shots=20000 $COVERAGE_FLAGS --cov-append pl-device-test --device ${DEVICENAME} --shots=None --skip-ops $COVERAGE_FLAGS --cov-append mv .coverage .coverage-${{ github.job }}-${{ matrix.pl_backend }} + # TODO: Remove this if-cond with release v0.36.0 + if [ -f tests/test_native_mcm.py ]; then + OMP_NUM_THREADS=1 PL_DEVICE=${DEVICENAME} python -m pytest -n auto tests/ -k "test_native_mcm" $COVERAGE_FLAGS --cov-append + fi - name: Install all backend devices if: ${{ matrix.pl_backend == 'all' }} @@ -622,9 +625,10 @@ jobs: python -m coverage xml -i -o coverage-${{ github.job }}.xml - name: Upload to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: true + verbose: true token: ${{ secrets.CODECOV_TOKEN }} upload-to-codecov-linux-cpp: @@ -641,9 +645,10 @@ jobs: name: ubuntu-codecov-results-cpp - name: Upload to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: true + verbose: true token: ${{ secrets.CODECOV_TOKEN }} cpptestsWithMultipleBackends: diff --git a/.github/workflows/tests_linux_x86_mpi_gpu.yml b/.github/workflows/tests_linux_x86_mpi_gpu.yml index 1e324524b..4d78d4cff 100644 --- a/.github/workflows/tests_linux_x86_mpi_gpu.yml +++ b/.github/workflows/tests_linux_x86_mpi_gpu.yml @@ -297,7 +297,7 @@ jobs: name: ubuntu-codecov-results-cpp - name: Upload to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: true verbose: true @@ -324,7 +324,7 @@ jobs: name: ubuntu-codecov-results-python - name: Upload to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: true verbose: true diff --git a/.github/workflows/tests_windows.yml b/.github/workflows/tests_windows.yml index 19add8c6c..b31ff91c9 100644 --- a/.github/workflows/tests_windows.yml +++ b/.github/workflows/tests_windows.yml @@ -262,7 +262,8 @@ jobs: name: windows-coverage-report - name: Upload to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: true - token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + verbose: true + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/tests_without_binary.yml b/.github/workflows/tests_without_binary.yml index 9a0b68285..c061e64d7 100644 --- a/.github/workflows/tests_without_binary.yml +++ b/.github/workflows/tests_without_binary.yml @@ -109,8 +109,9 @@ jobs: PL_DEVICE=${DEVICENAME} python -m pytest tests/ $COVERAGE_FLAGS - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: files: ./main/coverage.xml fail_ci_if_error: true - token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + verbose: true + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/pennylane_lightning/core/_version.py b/pennylane_lightning/core/_version.py index 7fbbc4aee..22ae5e03f 100644 --- a/pennylane_lightning/core/_version.py +++ b/pennylane_lightning/core/_version.py @@ -16,4 +16,4 @@ Version number (major.minor.patch[-label]) """ -__version__ = "0.36.0-dev30" +__version__ = "0.36.0-dev31"