2022-04-29 15:09:12 +08:00
|
|
|
---
|
|
|
|
.molecule:
|
2024-07-01 18:25:36 +08:00
|
|
|
tags: [ffci-vm-med]
|
2022-04-29 15:09:12 +08:00
|
|
|
only: [/^pr-.*$/]
|
|
|
|
except: ['triggers']
|
2024-10-31 21:47:26 +08:00
|
|
|
image: quay.io/kubespray/vm-kubespray-ci:v13
|
2022-04-29 15:09:12 +08:00
|
|
|
services: []
|
|
|
|
stage: deploy-part1
|
2024-07-01 18:25:36 +08:00
|
|
|
needs: []
|
|
|
|
# - ci-not-authorized
|
|
|
|
variables:
|
|
|
|
VAGRANT_DEFAULT_PROVIDER: "libvirt"
|
2024-10-31 21:47:26 +08:00
|
|
|
VAGRANT_HOME: "$CI_PROJECT_DIR/.vagrant.d"
|
|
|
|
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
|
2022-04-29 15:09:12 +08:00
|
|
|
before_script:
|
2024-10-31 21:47:26 +08:00
|
|
|
- mkdir -p $VAGRANT_HOME
|
2024-07-01 18:25:36 +08:00
|
|
|
- groups
|
|
|
|
- python3 -m venv citest
|
|
|
|
- source citest/bin/activate
|
|
|
|
- vagrant plugin expunge --reinstall --force --no-tty
|
|
|
|
- vagrant plugin install vagrant-libvirt
|
|
|
|
- pip install --no-compile --no-cache-dir pip -U
|
|
|
|
- pip install --no-compile --no-cache-dir -r $CI_PROJECT_DIR/requirements.txt
|
|
|
|
- pip install --no-compile --no-cache-dir -r $CI_PROJECT_DIR/tests/requirements.txt
|
|
|
|
- ./tests/scripts/rebase.sh
|
|
|
|
- ./tests/scripts/vagrant_clean.sh
|
2022-04-29 15:09:12 +08:00
|
|
|
script:
|
2024-07-01 18:25:36 +08:00
|
|
|
- ./tests/scripts/molecule_run.sh
|
2022-04-29 15:09:12 +08:00
|
|
|
after_script:
|
2024-07-01 18:25:36 +08:00
|
|
|
- ./tests/scripts/molecule_logs.sh
|
2022-04-29 15:09:12 +08:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
2024-07-01 18:25:36 +08:00
|
|
|
- molecule_logs/
|
2024-10-31 21:47:26 +08:00
|
|
|
cache:
|
|
|
|
key: $CI_JOB_NAME_SLUG
|
|
|
|
paths:
|
|
|
|
- .vagrant.d/boxes
|
|
|
|
- .cache/pip
|
|
|
|
policy: pull-push # TODO: change to "pull" when not on main
|
2022-04-29 15:09:12 +08:00
|
|
|
|
|
|
|
# CI template for periodic CI jobs
|
|
|
|
# Enabled when PERIODIC_CI_ENABLED var is set
|
|
|
|
.molecule_periodic:
|
|
|
|
only:
|
|
|
|
variables:
|
2024-07-01 18:25:36 +08:00
|
|
|
- $PERIODIC_CI_ENABLED
|
2022-04-29 15:09:12 +08:00
|
|
|
allow_failure: true
|
|
|
|
extends: .molecule
|
|
|
|
|
|
|
|
molecule_full:
|
|
|
|
extends: .molecule_periodic
|
|
|
|
|
|
|
|
molecule_no_container_engines:
|
|
|
|
extends: .molecule
|
|
|
|
script:
|
2024-07-01 18:25:36 +08:00
|
|
|
- ./tests/scripts/molecule_run.sh -e container-engine
|
2022-04-29 15:09:12 +08:00
|
|
|
when: on_success
|
|
|
|
|
|
|
|
molecule_docker:
|
|
|
|
extends: .molecule
|
|
|
|
script:
|
2024-07-01 18:25:36 +08:00
|
|
|
- ./tests/scripts/molecule_run.sh -i container-engine/cri-dockerd
|
2022-04-29 15:09:12 +08:00
|
|
|
when: on_success
|
|
|
|
|
|
|
|
molecule_containerd:
|
|
|
|
extends: .molecule
|
|
|
|
script:
|
2024-07-01 18:25:36 +08:00
|
|
|
- ./tests/scripts/molecule_run.sh -i container-engine/containerd
|
2022-04-29 15:09:12 +08:00
|
|
|
when: on_success
|
|
|
|
|
|
|
|
molecule_cri-o:
|
|
|
|
extends: .molecule
|
2024-07-01 18:25:36 +08:00
|
|
|
stage: deploy-part1
|
2022-04-29 15:09:12 +08:00
|
|
|
script:
|
2024-07-01 18:25:36 +08:00
|
|
|
- ./tests/scripts/molecule_run.sh -i container-engine/cri-o
|
2023-08-17 12:12:19 +08:00
|
|
|
allow_failure: true
|
2022-04-29 15:09:12 +08:00
|
|
|
when: on_success
|
|
|
|
|
2024-07-01 18:25:36 +08:00
|
|
|
# # Stage 3 container engines don't get as much attention so allow them to fail
|
|
|
|
# molecule_kata:
|
|
|
|
# extends: .molecule
|
|
|
|
# stage: deploy-extended
|
|
|
|
# script:
|
|
|
|
# - ./tests/scripts/molecule_run.sh -i container-engine/kata-containers
|
|
|
|
# when: manual
|
|
|
|
# # FIXME: this test is broken (perma-failing)
|
2022-04-29 15:09:12 +08:00
|
|
|
|
|
|
|
molecule_gvisor:
|
|
|
|
extends: .molecule
|
2024-07-01 18:25:36 +08:00
|
|
|
stage: deploy-extended
|
2022-04-29 15:09:12 +08:00
|
|
|
script:
|
2024-07-01 18:25:36 +08:00
|
|
|
- ./tests/scripts/molecule_run.sh -i container-engine/gvisor
|
2024-02-20 02:00:39 +08:00
|
|
|
when: manual
|
|
|
|
# FIXME: this test is broken (perma-failing)
|
2022-04-29 15:09:12 +08:00
|
|
|
|
|
|
|
molecule_youki:
|
|
|
|
extends: .molecule
|
2024-07-01 18:25:36 +08:00
|
|
|
stage: deploy-extended
|
2022-04-29 15:09:12 +08:00
|
|
|
script:
|
2024-07-01 18:25:36 +08:00
|
|
|
- ./tests/scripts/molecule_run.sh -i container-engine/youki
|
2024-02-20 02:00:39 +08:00
|
|
|
when: manual
|
|
|
|
# FIXME: this test is broken (perma-failing)
|