Giter Site home page Giter Site logo

cms-bot's Introduction

Introduction.

cms-bot started as a single script used to drive PR approval and grew to be the core of the whole release engineering process for CMSSW.

This fork of cms-bot has been modified to work with the Fermilab Jenkins infrastructure.

Setup

Instructions on having your repos tested on the Fermilab Jenkins CI infrastructure are show below.

Setting up Pull Requests and/or Push CI testing for your organizations repositories

  • This will ensure that the appropriate people are aware that you want to start testing pull requests and/or pushes for your repos and the Jenkins jobs can be configured for this.

Setup your repository

  • Make a Pull Request to add your repository configuration in cms-bot/repos/your_github_user/your_repository
    • If you have - in your github user or repository name then replace it with _
  • It is better to copy an existing configuration and change it accordingly e.g. copy repos/LArSoft/larsoft into repos/(your github user or organization)/(your repo name) and make changes to reflect your repositories.
  • Add these repository directories with 'git add' and create a pull request to have them added to the master branch.
  • Allow @FNALbuild to update your repository
    • If you have a github organization then please add github user @FNALbuild into a team with write (or admin) rights
    • If it is not an organization then please add @FNALbuild as Collaborators (under the Settings of your repository).
  • Add github webhook so that bot can get notifications.
    • If you have given admin rights to FNALbuild and set ADD_WEB_HOOK=True in repos/you_or_org/your_repo/repo_config.py then the bot can add web-hook
    • If FNALbuild does not have admin rights to your repository then please the github webhook (under Settings of your repository) manaully and send [email protected] the "Secret" pass phrase so that your web hooks can be validated. The webhook whould have the following properties.
      • Payload URL: https://scd-ci.fnal.gov/cgi-bin/github_webhook
      • Content type: application/json
      • Secret: any password of your choice
      • Let me select individual events: Select
      • Issues, Issue comment, Pull request
      • Pushes (for push based events)

Pull request Testing:

  • You can have your repository set up to trigger the tests whenever you create or update a pull request with new commits to a branch. In this case, please make sure that github webhook for Pull requests is active.

Push based testing

  • You can have your repository set up to trigger the tests whenever you push some changes to your repo. In this case, please make sure that github webhook for Pushes is active.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.