Skip to content

Commit fcfb77a

Browse files
committed
chore(ci): fix permanent instance selection condition
Due to 'continue-on-error' directive 'use-permanent-instance' step could not rely on failure() function.
1 parent 98d58ad commit fcfb77a

7 files changed

+11
-7
lines changed

.github/workflows/benchmark_gpu_core_crypto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
# This will allow to fallback on permanent instances running on Hyperstack.
4646
- name: Use permanent remote instance
4747
id: use-permanent-instance
48-
if: ${{ env.SECRETS_AVAILABLE == 'true' && failure() }}
48+
if: env.SECRETS_AVAILABLE == 'true' && steps.start-remote-instance.outcome == 'failure'
4949
run: |
5050
echo "runner_group=h100x1" >> "$GITHUB_OUTPUT"
5151

.github/workflows/benchmark_gpu_erc20_common.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ jobs:
7272
# This will allow to fallback on permanent instances running on Hyperstack.
7373
- name: Use permanent remote instance
7474
id: use-permanent-instance
75-
if: ${{ env.SECRETS_AVAILABLE == 'true' && failure() && inputs.profile == 'single-h100' }}
75+
if: env.SECRETS_AVAILABLE == 'true' &&
76+
steps.start-remote-instance.outcome == 'failure' &&
77+
inputs.profile == 'single-h100'
7678
run: |
7779
echo "runner_group=h100x1" >> "$GITHUB_OUTPUT"
7880

.github/workflows/benchmark_gpu_integer_common.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ jobs:
136136
# This will allow to fallback on permanent instances running on Hyperstack.
137137
- name: Use permanent remote instance
138138
id: use-permanent-instance
139-
if: ${{ env.SECRETS_AVAILABLE == 'true' && failure() && inputs.profile == 'single-h100' }}
139+
if: env.SECRETS_AVAILABLE == 'true' &&
140+
steps.start-remote-instance.outcome == 'failure' &&
141+
inputs.profile == 'single-h100'
140142
run: |
141143
echo "runner_group=h100x1" >> "$GITHUB_OUTPUT"
142144

.github/workflows/gpu_fast_h100_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
# This will allow to fallback on permanent instances running on Hyperstack.
9292
- name: Use permanent remote instance
9393
id: use-permanent-instance
94-
if: ${{ env.SECRETS_AVAILABLE == 'true' && steps.start-remote-instance.outcome == 'failure' }}
94+
if: env.SECRETS_AVAILABLE == 'true' && steps.start-remote-instance.outcome == 'failure'
9595
run: |
9696
echo "runner_group=h100x1" >> "$GITHUB_OUTPUT"
9797

.github/workflows/gpu_full_h100_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
# This will allow to fallback on permanent instances running on Hyperstack.
4343
- name: Use permanent remote instance
4444
id: use-permanent-instance
45-
if: ${{ env.SECRETS_AVAILABLE == 'true' && failure() }}
45+
if: env.SECRETS_AVAILABLE == 'true' && steps.start-remote-instance.outcome == 'failure'
4646
run: |
4747
echo "runner_group=h100x1" >> "$GITHUB_OUTPUT"
4848

.github/workflows/gpu_signed_integer_h100_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
# This will allow to fallback on permanent instances running on Hyperstack.
9393
- name: Use permanent remote instance
9494
id: use-permanent-instance
95-
if: ${{ env.SECRETS_AVAILABLE == 'true' && failure() }}
95+
if: env.SECRETS_AVAILABLE == 'true' && steps.start-remote-instance.outcome == 'failure'
9696
run: |
9797
echo "runner_group=h100x1" >> "$GITHUB_OUTPUT"
9898

.github/workflows/gpu_unsigned_integer_h100_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
# This will allow to fallback on permanent instances running on Hyperstack.
9292
- name: Use permanent remote instance
9393
id: use-permanent-instance
94-
if: ${{ env.SECRETS_AVAILABLE == 'true' && failure() }}
94+
if: env.SECRETS_AVAILABLE == 'true' && steps.start-remote-instance.outcome == 'failure'
9595
run: |
9696
echo "runner_group=h100x1" >> "$GITHUB_OUTPUT"
9797

0 commit comments

Comments
 (0)