Skip to content

Commit d057395

Browse files
authored
Merge branch 'main' into ptsbe_launch_integration
2 parents ef36834 + 5f0ee5b commit d057395

84 files changed

Lines changed: 1491 additions & 526 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/pre-commit/spelling_allowlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ enum
281281
et
282282
excitations
283283
executables
284+
exponentials
284285
exponentiated
285286
expressibility
286287
expressivity

.github/workflows/build_package_sources.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,11 @@ jobs:
239239
uses: actions/checkout@v6
240240
with:
241241
persist-credentials: false
242-
submodules: recursive
242+
243+
- name: Initialize submodules (with retry)
244+
run: |
245+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
246+
retry git submodule update --init --recursive
243247
244248
- name: Set base image
245249
id: base-image

.github/workflows/ci_macos.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,11 @@ jobs:
120120
steps:
121121
- name: Checkout repository
122122
uses: actions/checkout@v6
123-
with:
124-
submodules: true
123+
124+
- name: Initialize submodules (with retry)
125+
run: |
126+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
127+
retry git submodule update --init --recursive
125128
126129
- name: Set up Python
127130
uses: actions/setup-python@v6
@@ -214,8 +217,11 @@ jobs:
214217
steps:
215218
- name: Checkout repository
216219
uses: actions/checkout@v6
217-
with:
218-
submodules: true
220+
221+
- name: Initialize submodules (with retry)
222+
run: |
223+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
224+
retry git submodule update --init --recursive
219225
220226
- name: Set up Python
221227
uses: actions/setup-python@v6
@@ -368,8 +374,11 @@ jobs:
368374
steps:
369375
- name: Checkout repository
370376
uses: actions/checkout@v6
371-
with:
372-
submodules: true
377+
378+
- name: Initialize submodules (with retry)
379+
run: |
380+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
381+
retry git submodule update --init --recursive
373382
374383
- name: Set up Python
375384
uses: actions/setup-python@v6

.github/workflows/dev_environment.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,12 @@ jobs:
221221
uses: actions/checkout@v6
222222
with:
223223
ref: "${{ (inputs.pull_request_number != '' && (inputs.pull_request_commit || format('refs/pull/{0}/merge', inputs.pull_request_number))) || '' }}"
224-
submodules: ${{ inputs.checkout_submodules }}
224+
225+
- name: Initialize submodules (with retry)
226+
if: ${{ inputs.checkout_submodules }}
227+
run: |
228+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
229+
retry git submodule update --init --recursive
225230
226231
- name: Set up context for buildx
227232
run: |
@@ -382,7 +387,9 @@ jobs:
382387
env:
383388
DIGEST: ${{ steps.docker_build.outputs.digest }}
384389
TAGS: ${{ needs.metadata.outputs.image_tags }}
385-
run: cosign sign --yes --recursive "${TAGS}@${DIGEST}"
390+
run: |
391+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
392+
retry cosign sign --yes --recursive "${TAGS}@${DIGEST}"
386393
387394
# See also https://github.com/moby/buildkit/issues/1896
388395
- name: Clean up build cache

.github/workflows/dev_environment_macos.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ jobs:
208208
# wheel jobs only change Python3_EXECUTABLE, which keeps ninja's
209209
# incremental rebuild scoped to the binding targets.
210210
# Initialize nanobind submodule which are needed for MLIR Python bindings
211-
git submodule update --init --recursive tpls/nanobind
211+
retry git submodule update --init --recursive tpls/nanobind
212212
213213
source scripts/set_env_defaults.sh
214214
@@ -246,7 +246,9 @@ jobs:
246246
if: steps.cache_check.outputs.cache_hit != 'true' && steps.push_image.outputs.digest != ''
247247
env:
248248
DIGEST: ${{ steps.push_image.outputs.digest }}
249-
run: cosign sign --yes "${DIGEST}"
249+
run: |
250+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
251+
retry cosign sign --yes "${DIGEST}"
250252
251253
- name: Set image hash
252254
id: image_hash

.github/workflows/docker_images.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ jobs:
206206
env:
207207
DIGEST: ${{ steps.docker_build.outputs.digest }}
208208
TAGS: ${{ steps.metadata.outputs.tags }}
209-
run: cosign sign --yes --recursive "${TAGS}@${DIGEST}"
209+
run: |
210+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
211+
retry cosign sign --yes --recursive "${TAGS}@${DIGEST}"
210212
211213
- name: Cache cuda-quantum image
212214
if: steps.build_info.outputs.tar_cache && steps.build_info.outputs.tar_archive
@@ -424,7 +426,9 @@ jobs:
424426
env:
425427
DIGEST: ${{ steps.docker_build.outputs.digest }}
426428
TAGS: ${{ steps.metadata.outputs.tags }}
427-
run: cosign sign --yes --recursive "${TAGS}@${DIGEST}"
429+
run: |
430+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
431+
retry cosign sign --yes --recursive "${TAGS}@${DIGEST}"
428432
429433
- name: Cache cuda-quantum-dev image
430434
if: steps.prereqs.outputs.tar_cache && steps.prereqs.outputs.tar_archive
@@ -687,7 +691,9 @@ jobs:
687691
env:
688692
DIGEST: ${{ steps.release_build.outputs.digest }}
689693
TAGS: ${{ steps.cudaqdev_metadata.outputs.tags }}
690-
run: cosign sign --yes --recursive "${TAGS}@${DIGEST}"
694+
run: |
695+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
696+
retry cosign sign --yes --recursive "${TAGS}@${DIGEST}"
691697
692698
- name: Log in to NGC
693699
if: needs.metadata.outputs.push_to_ngc == 'true'
@@ -757,7 +763,9 @@ jobs:
757763
env:
758764
DIGEST: ${{ steps.cudaq_build.outputs.digest }}
759765
TAGS: ${{ steps.cudaq_metadata.outputs.tags }}
760-
run: cosign sign --yes --recursive "${TAGS}@${DIGEST}"
766+
run: |
767+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
768+
retry cosign sign --yes --recursive "${TAGS}@${DIGEST}"
761769
762770
- name: Install NGC CLI
763771
if: inputs.environment && needs.metadata.outputs.push_to_ngc == 'true'

.github/workflows/migrate_image.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ jobs:
141141
env:
142142
DIGEST: ${{ steps.copy_build.outputs.digest }}
143143
TAGS: ${{ steps.metadata.outputs.tags }}
144-
run: cosign sign --yes --recursive "${TAGS}@${DIGEST}"
144+
run: |
145+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
146+
retry cosign sign --yes --recursive "${TAGS}@${DIGEST}"
145147
146148
- name: Install NGC CLI
147149
if: inputs.sign_image && steps.config.outputs.push_to_ngc == 'true'

.github/workflows/prebuilt_binaries.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ jobs:
6060
steps:
6161
- name: Checkout repository
6262
uses: actions/checkout@v6
63-
with:
64-
submodules: true
63+
64+
- name: Initialize submodules (with retry)
65+
run: |
66+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
67+
retry git submodule update --init --recursive
6568
6669
- name: Log in to DockerHub
6770
uses: docker/login-action@v4
@@ -226,7 +229,9 @@ jobs:
226229
env:
227230
DIGEST: ${{ steps.docker_build.outputs.digest }}
228231
TAGS: ${{ steps.metadata.outputs.tags }}
229-
run: cosign sign --yes --recursive "${TAGS}@${DIGEST}"
232+
run: |
233+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
234+
retry cosign sign --yes --recursive "${TAGS}@${DIGEST}"
230235
231236
- name: Build installer
232237
uses: docker/build-push-action@v7

.github/workflows/publishing.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,9 @@ jobs:
525525
env:
526526
DIGEST: ${{ steps.cudaq_build.outputs.digest }}
527527
TAGS: ${{ steps.metadata.outputs.tags }}
528-
run: cosign sign --yes --recursive "${TAGS}@${DIGEST}"
528+
run: |
529+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
530+
retry cosign sign --yes --recursive "${TAGS}@${DIGEST}"
529531
530532
- name: Install NGC CLI
531533
if: steps.release_info.outputs.push_to_ngc == 'true'

.github/workflows/publishing_stable.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ jobs:
156156
env:
157157
DIGEST: ${{ steps.copy_build.outputs.digest }}
158158
TAGS: ${{ steps.metadata.outputs.tags }}
159-
run: cosign sign --yes --recursive "${TAGS}@${DIGEST}"
159+
run: |
160+
retry() { for n in 1 2 3; do "$@" && return 0; [ $n -lt 3 ] && sleep $((15*n*n)); done; return 1; }
161+
retry cosign sign --yes --recursive "${TAGS}@${DIGEST}"
160162
161163
- name: Install NGC CLI
162164
if: inputs.sign_image && steps.config.outputs.push_to_ngc == 'true'

0 commit comments

Comments
 (0)