CSI driver for Ceph
Go to file
Niels de Vos dd7ac1f18e ci: log rate limit in case the GitHub API returns 403
Anonymous users have a low (currently 60) rate limit of API calls.
Authorized users have a much higher (currently 5000) limit. Print the
available, used and remainling rate limit when the GitHub API returns a
403 messages like:

    Error: 403 Client Error: rate limit exceeded

In case of anonymous access to the API, and hitting the limit, the
message in the logs will also include the following:

    Rate limit (limit/used/remaining): 60/60/0

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2020-10-14 15:30:32 +02:00
deploy ci: remove old jobs when deploying 2020-09-25 08:03:00 +00:00
jobs ci: Trigger upgrade test jobs automatically 2020-10-01 07:19:17 +00:00
scripts ci: log rate limit in case the GitHub API returns 403 2020-10-14 15:30:32 +02:00
.commitlintrc.yml ci: error out for invalid component in commit header 2020-08-19 11:15:09 +00:00
.gitignore ci: add 'make test' target to validate CI job scripts 2020-05-27 12:52:21 +02:00
ci-job-validation.groovy ci: pass REBASE=1 to have commitlint rebase the branch 2020-09-24 13:32:28 +00:00
commitlint.groovy ci: fetch full history when cloning for commitlint job 2020-08-18 11:54:23 +00:00
containerized-tests.groovy ci: skip containerized-tests for doc-only PRs 2020-08-12 16:04:26 +00:00
Makefile ci: use FETCH_HEAD like "commitlint --from" does 2020-08-18 11:54:23 +00:00
mini-e2e-helm.groovy ci: use environment{} to fetch the GitHub API token 2020-10-13 15:26:41 +00:00
mini-e2e.groovy ci: use environment{} to fetch the GitHub API token 2020-10-13 15:26:41 +00:00
prepare.sh ci: prepare.sh should accept --history without argument 2020-08-18 15:00:17 +02:00
README.md ci: update links to new OCP4 deployment 2020-07-24 14:11:42 +00:00
single-node-k8s.sh ci: run minikube.sh with podman 2020-09-24 12:52:17 +00:00
upgrade-tests.groovy ci: use environment{} to fetch the GitHub API token 2020-10-13 15:26:41 +00:00

Continuous Integration Jobs for the CentOS CI

  • dedicated Jenkins instance for Ceph-CSI
  • Jenkins is hosted on OpenShift in the CentOS CI
  • scripts and Jenkins jobs are hosted in the Ceph-CSI repository (ci/centos branch)
  • a Jenkins Pipeline is used to reserve bare metal system(s), and run jobs on those systems

Repository/Branch Structure

This is the ci/centos branch, where all the scripts for the Jenkins jobs are maintained. The tests that are executed by the jobs are part of the normal projects branches.

As an example, the containerized-tests Jenkins job consists out of the following files:

  • jobs/containerized-tests.yaml is a Jenkins Job Builder configuration that describes the events when the job should get run and fetches the .groovy file from the git repository/branch

  • containerized-tests.groovy is the Jenkins Pipeline that contains the stages for the Jenkins Job itself. In order to work with the bare-metal machines from the CentOS CI, it executes the following stages:

    1. dynamically allocate a Jenkins Slave (node('cico-workspace')) with tools and configuration to request a bare-metal machine
    2. checkout the centos/ci branch of the repository, which contains scripts for provisioning and preparing the environment for running tests
    3. reserve a bare-metal machine with cico (configured on the Jenkins Slave)
    4. provision the reserved bare-metal machine with additional tools and dependencies to run the test (see prepare.sh below)
    5. run make containerized-tests and make containerized-build in parallel
    6. as final step, return the bare-metal machine to the CentOS CI for other users (it will be re-installed with a minimal CentOS environment again)
  • prepare.sh installs dependencies for the test, and checks out the git repository and branch (or Pull Request) that contains the commits to be tested (and the test itself)

Deploying the Jenkins Jobs

The Jenkins Jobs are described in Jenkins Job Builder configuration files and Jenkins Pipelines. These need to be imported in the Jenkins instance before they can be run. Importing is done with the jenkins-jobs command, which runs in a jjb container. To build the container, and provide the configuration for Jenkins Job Builder, see the documentation in the deploy/ directory.