@@ -11,6 +11,7 @@ stages:
11
11
- benchmarks-build
12
12
- benchmarks-run
13
13
- publish
14
+ - integration-test
14
15
15
16
default :
16
17
interruptible : true
@@ -28,6 +29,7 @@ variables:
28
29
CI_IMAGE : " paritytech/ci-linux:production"
29
30
DOCKER_OS : " debian:stretch"
30
31
ARCH : " x86_64"
32
+ ZOMBIENET_IMAGE : " docker.io/paritytech/zombienet:v1.2.53"
31
33
32
34
.collect-artifacts : &collect-artifacts
33
35
artifacts :
@@ -84,6 +86,15 @@ variables:
84
86
rules :
85
87
- if : $CI_COMMIT_REF_NAME =~ /^release-parachains-v[0-9].*$/ # i.e. release-parachains-v1.0, release-parachains-v2.1rc1, release-parachains-v3000
86
88
89
+ .zombienet-refs : &zombienet-refs
90
+ rules :
91
+ - if : $CI_PIPELINE_SOURCE == "pipeline"
92
+ when : never
93
+ - if : $CI_PIPELINE_SOURCE == "schedule"
94
+ when : never
95
+ - if : $CI_COMMIT_REF_NAME == "master"
96
+ - if : $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
97
+
87
98
.docker-env : &docker-env
88
99
image : " ${CI_IMAGE}"
89
100
before_script :
@@ -212,6 +223,8 @@ build-test-parachain:
212
223
- echo "___Packing the artifacts___"
213
224
- mkdir -p ./artifacts
214
225
- mv ./target/release/test-parachain ./artifacts/.
226
+ - mkdir -p ./artifacts/zombienet
227
+ - mv ./target/release/wbuild/cumulus-test-runtime/wasm_binary_spec_version_incremented.rs.compact.compressed.wasm ./artifacts/zombienet/.
215
228
216
229
# ### stage: publish
217
230
@@ -395,6 +408,161 @@ update-parachain-template:
395
408
--github-api-token "$GITHUB_TOKEN"
396
409
--polkadot-branch "$CI_COMMIT_REF_NAME"
397
410
411
+ # ### stage: integration-test
412
+
413
+ zombienet-0001-sync_blocks_from_tip_without_connected_collator :
414
+ stage : integration-test
415
+ image : " ${ZOMBIENET_IMAGE}"
416
+ << : *zombienet-refs
417
+ needs :
418
+ - job : build-push-image-test-parachain
419
+ variables :
420
+ POLKADOT_IMAGE : " docker.io/paritypr/polkadot-debug:master"
421
+ GH_DIR : " https://github.com/paritytech/cumulus/tree/${CI_COMMIT_SHORT_SHA}/zombienet_tests"
422
+ COL_IMAGE : " docker.io/paritypr/test-parachain:${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}"
423
+ before_script :
424
+ - echo "Zombie-net Tests Config"
425
+ - echo "${ZOMBIENET_IMAGE}"
426
+ - echo "${RELAY_IMAGE}"
427
+ - echo "${COL_IMAGE}"
428
+ - echo "${GH_DIR}"
429
+ - export DEBUG=zombie
430
+ - export RELAY_IMAGE=${POLKADOT_IMAGE}
431
+ - export COL_IMAGE=${COL_IMAGE}
432
+ script :
433
+ - /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
434
+ --github-remote-dir="${GH_DIR}"
435
+ --concurrency=1
436
+ --test="0001-sync_blocks_from_tip_without_connected_collator.feature"
437
+ allow_failure : true
438
+ retry : 2
439
+ tags :
440
+ - zombienet-polkadot-integration-test
441
+
442
+ zombienet-0002-pov_recovery :
443
+ stage : integration-test
444
+ image : " ${ZOMBIENET_IMAGE}"
445
+ << : *zombienet-refs
446
+ needs :
447
+ - job : build-push-image-test-parachain
448
+ variables :
449
+ POLKADOT_IMAGE : " docker.io/paritypr/polkadot-debug:master"
450
+ GH_DIR : " https://github.com/paritytech/cumulus/tree/${CI_COMMIT_SHORT_SHA}/zombienet_tests"
451
+ COL_IMAGE : " docker.io/paritypr/test-parachain:${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}"
452
+ before_script :
453
+ - echo "Zombie-net Tests Config"
454
+ - echo "${ZOMBIENET_IMAGE}"
455
+ - echo "${RELAY_IMAGE}"
456
+ - echo "${COL_IMAGE}"
457
+ - echo "${GH_DIR}"
458
+ - export DEBUG=zombie
459
+ - export RELAY_IMAGE=${POLKADOT_IMAGE}
460
+ - export COL_IMAGE=${COL_IMAGE}
461
+ script :
462
+ - /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
463
+ --github-remote-dir="${GH_DIR}"
464
+ --concurrency=1
465
+ --test="0002-pov_recovery.feature"
466
+ allow_failure : true
467
+ retry : 2
468
+ tags :
469
+ - zombienet-polkadot-integration-test
470
+
471
+ zombienet-0003-full_node_catching_up :
472
+ stage : integration-test
473
+ image : " ${ZOMBIENET_IMAGE}"
474
+ << : *zombienet-refs
475
+ needs :
476
+ - job : build-push-image-test-parachain
477
+ variables :
478
+ POLKADOT_IMAGE : " docker.io/paritypr/polkadot-debug:master"
479
+ GH_DIR : " https://github.com/paritytech/cumulus/tree/${CI_COMMIT_SHORT_SHA}/zombienet_tests"
480
+ COL_IMAGE : " docker.io/paritypr/test-parachain:${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}"
481
+ before_script :
482
+ - echo "Zombie-net Tests Config"
483
+ - echo "${ZOMBIENET_IMAGE}"
484
+ - echo "${RELAY_IMAGE}"
485
+ - echo "${COL_IMAGE}"
486
+ - echo "${GH_DIR}"
487
+ - export DEBUG=zombie
488
+ - export RELAY_IMAGE=${POLKADOT_IMAGE}
489
+ - export COL_IMAGE=${COL_IMAGE}
490
+ script :
491
+ - /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
492
+ --github-remote-dir="${GH_DIR}"
493
+ --concurrency=1
494
+ --test="0003-full_node_catching_up.feature"
495
+ allow_failure : true
496
+ retry : 2
497
+ tags :
498
+ - zombienet-polkadot-integration-test
499
+
500
+ zombienet-0004-runtime_upgrade :
501
+ stage : integration-test
502
+ image : " ${ZOMBIENET_IMAGE}"
503
+ << : *zombienet-refs
504
+ needs :
505
+ - job : build-push-image-test-parachain
506
+ - job : build-test-parachain
507
+ artifacts : true
508
+ variables :
509
+ POLKADOT_IMAGE : " docker.io/paritypr/polkadot-debug:master"
510
+ GH_DIR : " https://github.com/paritytech/cumulus/tree/${CI_COMMIT_SHORT_SHA}/zombienet_tests"
511
+ COL_IMAGE : " docker.io/paritypr/test-parachain:${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}"
512
+ before_script :
513
+ - ls -ltr *
514
+ - cp ./artifacts/zombienet/wasm_binary_spec_version_incremented.rs.compact.compressed.wasm /tmp/
515
+ - ls /tmp
516
+ - echo "Zombie-net Tests Config"
517
+ - echo "${ZOMBIENET_IMAGE}"
518
+ - echo "${RELAY_IMAGE}"
519
+ - echo "${COL_IMAGE}"
520
+ - echo "${GH_DIR}"
521
+ - export DEBUG=zombie
522
+ - export RELAY_IMAGE=${POLKADOT_IMAGE}
523
+ - export COL_IMAGE=${COL_IMAGE}
524
+ script :
525
+ - /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
526
+ --github-remote-dir="${GH_DIR}"
527
+ --concurrency=1
528
+ --test="0004-runtime_upgrade.feature"
529
+ allow_failure : true
530
+ retry : 2
531
+ tags :
532
+ - zombienet-polkadot-integration-test
533
+
534
+ zombienet-0005-migrate_solo_to_para :
535
+ stage : integration-test
536
+ image : " ${ZOMBIENET_IMAGE}"
537
+ << : *zombienet-refs
538
+ needs :
539
+ - job : build-push-image-test-parachain
540
+ - job : build-test-parachain
541
+ artifacts : true
542
+ variables :
543
+ POLKADOT_IMAGE : " docker.io/paritypr/polkadot-debug:master"
544
+ GH_DIR : " https://github.com/paritytech/cumulus/tree/${CI_COMMIT_SHORT_SHA}/zombienet_tests"
545
+ COL_IMAGE : " docker.io/paritypr/test-parachain:${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}"
546
+ before_script :
547
+ - ls -ltr *
548
+ - echo "Zombie-net Tests Config"
549
+ - echo "${ZOMBIENET_IMAGE}"
550
+ - echo "${RELAY_IMAGE}"
551
+ - echo "${COL_IMAGE}"
552
+ - echo "${GH_DIR}"
553
+ - export DEBUG=zombie
554
+ - export RELAY_IMAGE=${POLKADOT_IMAGE}
555
+ - export COL_IMAGE=${COL_IMAGE}
556
+ script :
557
+ - /home/nonroot/zombie-net/scripts/ci/run-test-env-manager.sh
558
+ --github-remote-dir="${GH_DIR}"
559
+ --concurrency=1
560
+ --test="0005-migrate_solo_to_para.feature"
561
+ allow_failure : true
562
+ retry : 2
563
+ tags :
564
+ - zombienet-polkadot-integration-test
565
+
398
566
# ### stage: .post
399
567
400
568
# This job cancels the whole pipeline if any of provided jobs fail.
0 commit comments