Skip to content

Commit 3be5257

Browse files
weiherelationalaiweiherelationalai
andauthored
pipeline retry to use spot engines (#127)
* pipeline retry * pipeline use spot engine false while retry * fix typo --------- Co-authored-by: weiherelationalai <weihe@whes-mbp.relational.ai.beta.tailscale.net>
1 parent c9d12f4 commit 3be5257

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/build.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,30 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v3
18-
- uses: ./.github/actions/test
18+
19+
- name: TestOnSpot
20+
id: runonspot
21+
continue-on-error: true
22+
if: always()
23+
uses: ./.github/actions/test
1924
with:
2025
client_id: ${{ secrets.CLIENT_ID }}
2126
client_secret: ${{ secrets.CLIENT_SECRET }}
2227
client_credentials_url: ${{ secrets.CLIENT_CREDENTIALS_URL }}
28+
custom_headers: '{"x-rai-parameter-engine-spec":"{\"experimentalFeatures\":{\"useSpotEngines\": true}}"}'
29+
30+
- name: SpotDebugInfo
31+
id: spotdebugInfo
32+
if: steps.runonspot.outcome != 'success'
33+
run: |
34+
echo "potential spot engine eviction check this link to confirm https://app.datadoghq.com/logs?query=service%3Aazure%20%40evt.name%3A%22Microsoft.Compute%2FvirtualMachineScaleSets%2FevictSpotVM%2Faction%22%20&agg_q=%40resourceId&cols=host%2Cservice&index=%2A&messageDisplay=inline&sort_m=count&sort_t=count&stream_sort=desc&top_n=10&top_o=top&viz=stream&x_missing=true&from_ts=1686931686080&to_ts=1686946086080&live=true"
2335
36+
- name: TestOnRegular
37+
id: runonregular
38+
if: steps.runonspot.outcome != 'success'
39+
uses: ./.github/actions/test
40+
with:
41+
client_id: ${{ secrets.CLIENT_ID }}
42+
client_secret: ${{ secrets.CLIENT_SECRET }}
43+
client_credentials_url: ${{ secrets.CLIENT_CREDENTIALS_URL }}
44+
custom_headers: '{"x-rai-parameter-engine-spec":"{\"experimentalFeatures\":{\"useSpotEngines\": false}}"}'

0 commit comments

Comments
 (0)