X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=XTesting%2Fkubespray%2Fdocs%2Fci-setup.md;fp=XTesting%2Fkubespray%2Fdocs%2Fci-setup.md;h=1721f992191b1117cd05b66394ae031164e01deb;hb=31af17bb5935b722dcf59d5800aaff9e789cfa93;hp=0000000000000000000000000000000000000000;hpb=c8bda4f07b7e87beb2aa3d8729f9b0b456d4da6f;p=it%2Ftest.git diff --git a/XTesting/kubespray/docs/ci-setup.md b/XTesting/kubespray/docs/ci-setup.md new file mode 100644 index 0000000..1721f99 --- /dev/null +++ b/XTesting/kubespray/docs/ci-setup.md @@ -0,0 +1,27 @@ +# CI Setup + +## Pipeline + +1. unit-tests: fast jobs for fast feedback (linting, etc...) +2. deploy-part1: small number of jobs to test if the PR works with default settings +3. deploy-part2: slow jobs testing different platforms, OS, settings, CNI, etc... +4. deploy-part3: very slow jobs (upgrades, etc...) + +## Runners + +Kubespray has 3 types of GitLab runners: + +- packet runners: used for E2E jobs (usually long) +- light runners: used for short lived jobs +- auto scaling runners: used for on-demand resources, see [GitLab docs](https://docs.gitlab.com/runner/configuration/autoscale.html) for more info + +## Vagrant + +Vagrant jobs are using the [quay.io/kubespray/vagrant](/test-infra/vagrant-docker/Dockerfile) docker image with `/var/run/libvirt/libvirt-sock` exposed from the host, allowing the container to boot VMs on the host. + +## CI Variables + +In CI we have a set of overrides we use to ensure greater success of our CI jobs and avoid throttling by various APIs we depend on. See: + +- [Docker mirrors](/tests/common/_docker_hub_registry_mirror.yml) +- [Test settings](/tests/common/_kubespray_test_settings.yml)