@@ -209,16 +209,13 @@ jobs:
209
209
steps :
210
210
- name : Checkout
211
211
uses : actions/checkout@v4
212
- - name : Configure kubectl
213
- uses : ./.github/actions/tests/staging-preview-tests
214
- env :
215
- kubeconfig_base64 : ${{ secrets.kubeconfig_base64 }}
216
- K8S_SERVER : ${{ secrets.K8S_SERVER }}
217
- K8S_SA_TOKEN : ${{ secrets.K8S_SA_TOKEN }}
218
212
- name : Setup tests
219
213
uses : ./.github/actions/tests/setup-python
220
214
env :
221
215
ACTIONS_PAT : ${{ secrets.ACTIONS_PAT }}
216
+ kubeconfig_base64 : ${{ secrets.kubeconfig_base64 }}
217
+ K8S_SERVER : ${{ secrets.K8S_SERVER }}
218
+ K8S_SA_TOKEN : ${{ secrets.K8S_SA_TOKEN }}
222
219
- name : Run smoke tests
223
220
uses : ./.github/actions/tests/run-e2e-tests
224
221
with :
@@ -236,16 +233,13 @@ jobs:
236
233
steps :
237
234
- name : Checkout
238
235
uses : actions/checkout@v4
239
- - name : Configure kubectl
240
- uses : ./.github/actions/tests/staging-preview-tests
241
- env :
242
- kubeconfig_base64 : ${{ secrets.kubeconfig_base64 }}
243
- K8S_SERVER : ${{ secrets.K8S_SERVER }}
244
- K8S_SA_TOKEN : ${{ secrets.K8S_SA_TOKEN }}
245
236
- name : Setup tests
246
237
uses : ./.github/actions/tests/setup-python
247
238
env :
248
239
ACTIONS_PAT : ${{ secrets.ACTIONS_PAT }}
240
+ kubeconfig_base64 : ${{ secrets.kubeconfig_base64 }}
241
+ K8S_SERVER : ${{ secrets.K8S_SERVER }}
242
+ K8S_SA_TOKEN : ${{ secrets.K8S_SA_TOKEN }}
249
243
- name : Run all tests (some skipped due to new deployment)
250
244
uses : ./.github/actions/tests/run-e2e-tests
251
245
env :
@@ -257,7 +251,7 @@ jobs:
257
251
markers : " not active_flow and not passive_flow"
258
252
deployment_mc_epoch : $DEPLOYMENT_MC_EPOCH
259
253
260
- wait-for-next -epoch :
254
+ wait-for-n1 -epoch :
261
255
permissions :
262
256
id-token : write
263
257
contents : read
@@ -267,7 +261,7 @@ jobs:
267
261
- name : Checkout
268
262
uses : actions/checkout@v4
269
263
- name : Configure kubectl
270
- uses : ./.github/actions/tests/staging-preview-tests
264
+ uses : ./.github/actions/tests/configure-kubectl
271
265
env :
272
266
kubeconfig_base64 : ${{ secrets.kubeconfig_base64 }}
273
267
K8S_SERVER : ${{ secrets.K8S_SERVER }}
@@ -289,26 +283,83 @@ jobs:
289
283
node : staging-preview-validator-1
290
284
environment : staging-preview
291
285
292
- run-all-tests-2 :
286
+ run-all-tests-on-n1-epoch :
293
287
permissions :
294
288
id-token : write
295
289
contents : read
296
- needs : wait-for-next-epoch
290
+ needs : wait-for-n1-epoch
291
+ runs-on : [self-hosted, eks]
292
+ steps :
293
+ - name : Checkout
294
+ uses : actions/checkout@v4
295
+ - name : Setup tests
296
+ uses : ./.github/actions/tests/setup-python
297
+ env :
298
+ ACTIONS_PAT : ${{ secrets.ACTIONS_PAT }}
299
+ kubeconfig_base64 : ${{ secrets.kubeconfig_base64 }}
300
+ K8S_SERVER : ${{ secrets.K8S_SERVER }}
301
+ K8S_SA_TOKEN : ${{ secrets.K8S_SA_TOKEN }}
302
+ - name : Run all tests (some skipped due to new deployment)
303
+ uses : ./.github/actions/tests/run-e2e-tests
304
+ env :
305
+ DEPLOYMENT_MC_EPOCH : ${{needs.partner-chain-ready.outputs.deployment_mc_epoch}}
306
+ with :
307
+ blockchain : substrate
308
+ env : staging
309
+ decrypt : true
310
+ latest_mc_epoch : true
311
+ markers : " not active_flow and not passive_flow"
312
+ deployment_mc_epoch : $DEPLOYMENT_MC_EPOCH
313
+
314
+ wait-for-n2-epoch :
315
+ permissions :
316
+ id-token : write
317
+ contents : read
318
+ needs : wait-for-n1-epoch
297
319
runs-on : [self-hosted, eks]
298
320
steps :
299
321
- name : Checkout
300
322
uses : actions/checkout@v4
301
323
- name : Configure kubectl
302
- uses : ./.github/actions/tests/staging-preview-tests
324
+ uses : ./.github/actions/tests/configure-kubectl
303
325
env :
304
326
kubeconfig_base64 : ${{ secrets.kubeconfig_base64 }}
305
327
K8S_SERVER : ${{ secrets.K8S_SERVER }}
306
328
K8S_SA_TOKEN : ${{ secrets.K8S_SA_TOKEN }}
329
+ - name : Set MC epoch to wait for
330
+ id : increment-epoch
331
+ env :
332
+ DEPLOYMENT_MC_EPOCH : ${{needs.partner-chain-ready.outputs.deployment_mc_epoch}}
333
+ run : |
334
+ echo "Current epoch: $DEPLOYMENT_MC_EPOCH"
335
+ incremented_epoch=$((DEPLOYMENT_MC_EPOCH + 2))
336
+ echo "Incremented epoch: $incremented_epoch"
337
+ echo "mc_epoch_to_wait_for=$incremented_epoch" >> $GITHUB_OUTPUT
338
+ - name : Wait for next MC epoch
339
+ uses : ./.github/actions/tests/wait-for-epoch
340
+ with :
341
+ epoch : ${{ steps.increment-epoch.outputs.mc_epoch_to_wait_for }}
342
+ deployment : kubernetes
343
+ node : staging-preview-validator-1
344
+ environment : staging-preview
345
+
346
+ run-all-tests-on-n2-epoch :
347
+ permissions :
348
+ id-token : write
349
+ contents : read
350
+ needs : wait-for-n2-epoch
351
+ runs-on : [self-hosted, eks]
352
+ steps :
353
+ - name : Checkout
354
+ uses : actions/checkout@v4
307
355
- name : Setup tests
308
356
uses : ./.github/actions/tests/setup-python
309
357
env :
310
358
ACTIONS_PAT : ${{ secrets.ACTIONS_PAT }}
311
- - name : Run all tests (some skipped due to new deployment)
359
+ kubeconfig_base64 : ${{ secrets.kubeconfig_base64 }}
360
+ K8S_SERVER : ${{ secrets.K8S_SERVER }}
361
+ K8S_SA_TOKEN : ${{ secrets.K8S_SA_TOKEN }}
362
+ - name : Run all tests (no skipped tests)
312
363
uses : ./.github/actions/tests/run-e2e-tests
313
364
env :
314
365
DEPLOYMENT_MC_EPOCH : ${{needs.partner-chain-ready.outputs.deployment_mc_epoch}}
0 commit comments