bae519db07
Without the `-w` argument, the output of `top` gets truncated, and the commandline of the processes is not comlete. It would be useful to eb able to tell which command uses 100% CPU in an output like: 17377 root 20 0 110.8m 8.2m 0.0 0.1 0:00.89 S `- containerd+ 17414 167 20 0 1036.7m 59.6m 0.0 0.4 0:03.47 S `- ceph-o+ 40875 root 20 0 283.9m 30.4m 100.0 0.2 0:00.23 R `- ceph Updates: #1969 Signed-off-by: Niels de Vos <ndevos@redhat.com> |
||
---|---|---|
deploy | ||
jobs | ||
scripts | ||
.commitlintrc.yml | ||
.gitignore | ||
ci-job-validation.groovy | ||
commitlint.groovy | ||
containerized-tests.groovy | ||
k8s-e2e-external-storage.groovy | ||
Makefile | ||
mini-e2e-helm.groovy | ||
mini-e2e.groovy | ||
podman2minikube.sh | ||
prepare.sh | ||
README.md | ||
run-k8s-external-storage-e2e.sh | ||
single-node-k8s.sh | ||
system-status.sh | ||
upgrade-tests.groovy |
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:- dynamically allocate a Jenkins Slave (
node('cico-workspace')
) with tools and configuration to request a bare-metal machine - checkout the
centos/ci
branch of the repository, which contains scripts for provisioning and preparing the environment for running tests - reserve a bare-metal machine with
cico
(configured on the Jenkins Slave) - provision the reserved bare-metal machine with additional tools and
dependencies to run the test (see
prepare.sh
below) - run
make containerized-tests
andmake containerized-build
in parallel - 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)
- dynamically allocate a Jenkins Slave (
-
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.