From 376c8416b6198714a1c9127ada831fa7286ae01c Mon Sep 17 00:00:00 2001 From: Angela Burton Date: Mon, 15 Jun 2026 15:55:59 -0700 Subject: [PATCH 1/2] add wheel build against cuda-quantum@main to the nightly tests Signed-off-by: Angela Burton --- .github/workflows/build_wheels.yaml | 18 +++++++++++++++++- .github/workflows/nightly_tests.yaml | 13 +++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yaml b/.github/workflows/build_wheels.yaml index cbf78568..14d48ba0 100644 --- a/.github/workflows/build_wheels.yaml +++ b/.github/workflows/build_wheels.yaml @@ -65,6 +65,16 @@ on: type: string default: '' required: false + cudaq_repo: + type: string + description: Optional CUDA-Q repository override. + default: '' + required: false + cudaq_ref: + type: string + description: Optional CUDA-Q ref override. + default: '' + required: false cache_key_suffix: type: string default: '' @@ -76,7 +86,7 @@ on: required: false concurrency: - group: ${{ github.workflow }}-build-wheels-${{ github.ref }} + group: ${{ github.workflow }}-build-wheels-${{ github.ref }}-${{ inputs.cudaq_repo || 'default-repo' }}-${{ inputs.cudaq_ref || 'default-ref' }} cancel-in-progress: true jobs: @@ -176,6 +186,9 @@ jobs: - name: Get required CUDAQ version id: get-cudaq-version uses: ./.github/actions/get-cudaq-version + with: + repo: ${{ inputs.cudaq_repo }} + ref: ${{ inputs.cudaq_ref }} - name: Get CUDAQ code uses: actions/checkout@v4 @@ -283,6 +296,9 @@ jobs: - name: Get required CUDAQ version id: get-cudaq-version uses: ./.github/actions/get-cudaq-version + with: + repo: ${{ inputs.cudaq_repo }} + ref: ${{ inputs.cudaq_ref }} - name: Get CUDAQ wheels uses: ./.github/actions/get-cudaq-wheels diff --git a/.github/workflows/nightly_tests.yaml b/.github/workflows/nightly_tests.yaml index a7dc3658..641b4880 100644 --- a/.github/workflows/nightly_tests.yaml +++ b/.github/workflows/nightly_tests.yaml @@ -114,6 +114,18 @@ jobs: cache_key_suffix: nightly secrets: inherit + cudaq-main-wheels: + name: Wheels against CUDA-Q main + needs: [resolve-cudaq-main, build-cudaq-main] + uses: ./.github/workflows/build_wheels.yaml + with: + build_type: Release + cudaq_wheels: Custom + cache_key_suffix: nightly + cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }} + cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }} + secrets: inherit + cleanup-nightly-cache: name: Clean up nightly cache if: ${{ always() }} @@ -125,6 +137,7 @@ jobs: - cudaq-main-qec - cudaq-main-solvers - cudaq-main-docs + - cudaq-main-wheels runs-on: ubuntu-latest permissions: actions: write From a7e5d519335879c0abdaee963f482df9b279ada0 Mon Sep 17 00:00:00 2001 From: Angela Burton Date: Mon, 15 Jun 2026 15:56:50 -0700 Subject: [PATCH 2/2] debug: test wheel against cudaq main Signed-off-by: Angela Burton --- .github/workflows/nightly_tests.yaml | 98 ++++++++++++++-------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/.github/workflows/nightly_tests.yaml b/.github/workflows/nightly_tests.yaml index 641b4880..c2ef2502 100644 --- a/.github/workflows/nightly_tests.yaml +++ b/.github/workflows/nightly_tests.yaml @@ -6,14 +6,14 @@ on: workflow_dispatch: jobs: - wheels: - name: Build and test wheels - uses: ./.github/workflows/build_wheels.yaml - with: - build_type: Release - cudaq_wheels: Custom - cache_key_suffix: nightly - secrets: inherit + # wheels: + # name: Build and test wheels + # uses: ./.github/workflows/build_wheels.yaml + # with: + # build_type: Release + # cudaq_wheels: Custom + # cache_key_suffix: nightly + # secrets: inherit resolve-cudaq-main: name: Resolve CUDA-Q main @@ -74,45 +74,45 @@ jobs: save-ccache: false platform: ${{ matrix.platform }}-cu${{ steps.config.outputs.cuda_major }} - cudaq-main-all-libs: - name: All libs against CUDA-Q main - needs: [resolve-cudaq-main, build-cudaq-main] - uses: ./.github/workflows/all_libs.yaml - with: - cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }} - cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }} - cache_key_suffix: nightly - secrets: inherit + # cudaq-main-all-libs: + # name: All libs against CUDA-Q main + # needs: [resolve-cudaq-main, build-cudaq-main] + # uses: ./.github/workflows/all_libs.yaml + # with: + # cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }} + # cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }} + # cache_key_suffix: nightly + # secrets: inherit - cudaq-main-qec: - name: QEC against CUDA-Q main - needs: [resolve-cudaq-main, build-cudaq-main] - uses: ./.github/workflows/lib_qec.yaml - with: - cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }} - cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }} - cache_key_suffix: nightly - secrets: inherit + # cudaq-main-qec: + # name: QEC against CUDA-Q main + # needs: [resolve-cudaq-main, build-cudaq-main] + # uses: ./.github/workflows/lib_qec.yaml + # with: + # cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }} + # cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }} + # cache_key_suffix: nightly + # secrets: inherit - cudaq-main-solvers: - name: Solvers against CUDA-Q main - needs: [resolve-cudaq-main, build-cudaq-main] - uses: ./.github/workflows/lib_solvers.yaml - with: - cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }} - cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }} - cache_key_suffix: nightly - secrets: inherit + # cudaq-main-solvers: + # name: Solvers against CUDA-Q main + # needs: [resolve-cudaq-main, build-cudaq-main] + # uses: ./.github/workflows/lib_solvers.yaml + # with: + # cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }} + # cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }} + # cache_key_suffix: nightly + # secrets: inherit - cudaq-main-docs: - name: Docs against CUDA-Q main - needs: [resolve-cudaq-main, build-cudaq-main] - uses: ./.github/workflows/docs.yaml - with: - cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }} - cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }} - cache_key_suffix: nightly - secrets: inherit + # cudaq-main-docs: + # name: Docs against CUDA-Q main + # needs: [resolve-cudaq-main, build-cudaq-main] + # uses: ./.github/workflows/docs.yaml + # with: + # cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }} + # cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }} + # cache_key_suffix: nightly + # secrets: inherit cudaq-main-wheels: name: Wheels against CUDA-Q main @@ -130,13 +130,13 @@ jobs: name: Clean up nightly cache if: ${{ always() }} needs: - - wheels + # - wheels - resolve-cudaq-main - build-cudaq-main - - cudaq-main-all-libs - - cudaq-main-qec - - cudaq-main-solvers - - cudaq-main-docs + # - cudaq-main-all-libs + # - cudaq-main-qec + # - cudaq-main-solvers + # - cudaq-main-docs - cudaq-main-wheels runs-on: ubuntu-latest permissions: