From 0a3307040457127bd263b703e3e6b594c4258046 Mon Sep 17 00:00:00 2001 From: Kay Yan Date: Mon, 8 Apr 2024 06:39:12 +0000 Subject: [PATCH] refactor-docker-machine test --- .gitlab-ci.yml | 12 ++++++------ .gitlab-ci/molecule.yml | 18 ++++++++++-------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 61cde2c9e41..d48686ae7bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,12 @@ --- stages: - - build - - unit-tests + # - build + # - unit-tests - deploy-part1 - - moderator - - deploy-part2 - - deploy-part3 - - deploy-special + # - moderator + # - deploy-part2 + # - deploy-part3 + # - deploy-special variables: KUBESPRAY_VERSION: v2.24.1 diff --git a/.gitlab-ci/molecule.yml b/.gitlab-ci/molecule.yml index 94e5a5606fb..2959d4a86e9 100644 --- a/.gitlab-ci/molecule.yml +++ b/.gitlab-ci/molecule.yml @@ -1,15 +1,13 @@ --- .molecule: - tags: [c3.small.x86] + tags: + - packet + extends: .testcases only: [/^pr-.*$/] except: ['triggers'] - image: $PIPELINE_IMAGE services: [] stage: deploy-part1 - before_script: - - tests/scripts/rebase.sh - - ./tests/scripts/vagrant_clean.sh script: - ./tests/scripts/molecule_run.sh after_script: @@ -18,6 +16,10 @@ when: always paths: - molecule_logs/ + variables: + ANSIBLE_TIMEOUT: "120" + CI_PLATFORM: packet + SSH_USER: kubespray # CI template for periodic CI jobs # Enabled when PERIODIC_CI_ENABLED var is set @@ -41,13 +43,13 @@ molecule_docker: extends: .molecule script: - ./tests/scripts/molecule_run.sh -i container-engine/cri-dockerd - when: on_success + when: manual molecule_containerd: extends: .molecule script: - ./tests/scripts/molecule_run.sh -i container-engine/containerd - when: on_success + when: manual molecule_cri-o: extends: .molecule @@ -55,7 +57,7 @@ molecule_cri-o: script: - ./tests/scripts/molecule_run.sh -i container-engine/cri-o allow_failure: true - when: on_success + when: manual # Stage 3 container engines don't get as much attention so allow them to fail molecule_kata: