Skip to content

ddaina/CRABServer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRAB CI/CD flow with Jenkins

1. Building RPMs
  • Each release created in CRABServer repository triggers Jenkins job that builds RPMs for crabserver and crabtaskworker.
  • In master branch agreed naming convention for tagging new releases should follow this logic: v3.YYMMDD. Note: dash is not allowed in branch or tag name as RPM build will fail.
  • Built RPMs are stored in comp.crab_[branch] repository every time overwriting old RPMs files. [branch] stands for the branch name which was used to create new release, e.g. comp.crab_master.
2. Building Docker images
  • If RPMs build job was successful, Jenkins job that builds Docker images is triggered.
  • Built images are stored in cmssw/[crabserver|crabtaskworker] Docker Hub repository while crabserver is also stored in CERN Registry.
  • After build is done, email notification is sent confirming that overall build process is done with indication whether build failed or succeeded. Log file is attached to the email for investigation.
3. Deploying crabserver
  • crabserver can be deployed to given environment by entering needed parameters in this Jenkins job.
  • Two parameters should be provided before starting the build job: CRABServer_image and REST_Instance.
  • CRABServer_image requires to enter image tag that should be deployed.
  • REST_Instance requires to enter k8s host name where provided tag should be deployed. Default value points to cmsweb-test2.cern.ch.
  • After deployment of crabserver is done, email notification is sent confirming that deployment process is done with indication whether it failed or succeeded. Log file is attached to the email for investigation.
4. Deploying TaskWorker/Publisher
  • TaskWorker/Publisher can be deployed to given environment by entering needed parameters in this Jenkins job.
  • Three parameters should be provided before starting the build job: Service, Image and Environment.
  • Service requires to select which service should be deployed: TaskWorker or Publisher.
  • Image requires to enter image tag that should be deployed.
  • Environment requires to enter host name where provided tag should be deployed. Default value points to crab-dev-tw01.
  • After deployment of TaskWorker/Publisher is done, email notification is sent confirming that deployment process is done with indication whether it failed or succeeded. Log file is attached to the email for investigation.
5. Running testing with Jenkins
  • One can start running testing suits in this Jenkins job.
  • 3 kinds of testings can be started: Client_Validation_Suite, Task_Submission_Status_Tracking and Client_Configuration_Validation.
  • Different kinds of testings and needed to provide parameters are explained in Jenkins jobs description.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 86.3%
  • Shell 7.2%
  • JavaScript 3.9%
  • Smarty 1.3%
  • HTML 0.6%
  • Jupyter Notebook 0.5%
  • Other 0.2%