Code Monkey home page Code Monkey logo

ci's Introduction

PingCAP CI/CD public configurations

Servers

New

Only one site in our roadmap.

Notices: when you develop new pipeplines or jobs, you should put them in /staging folder and create a PR. When the PR merged, seed job will deploy it in staging CI server. When you tested with successful results, please create a PR with contents moved in top level folders and comment the PR with your tested job links in staging CI server.

Old ones

New top level directories

  • /docs documents about CI/CD jobs, tools, etc.
  • /prow-jobs store the top level prow jobs.
  • /jobs store Jenkins CI job DSL files. some jobs will be called by prow jobs defined in /prow-jobs.
  • /pipelines store Jenkins CI pipeline scripts.
  • /libraries store Jenkins CI shared libraries.
  • /staging store staging jobs and pipelines before deploying to production.
    • /staging/jobs like /jobs but only deployed to staging env.
    • ......

File structure for jobs and pipelines

  • using <org>/<repo>/<branch-special>/<pipeline-name>.groovy structure.
    • the lastet store CI jobs and scripts for trunk branch and feature branches.
    • the release-x.y store CI jobs and scripts for the special release branch.

Job DSL important usage

  • Do not use light checkout: avoid soft link in git.

Old directories(migrating)

  • /jenkins/jobs store migrated or migrating Jenkins CI job DSL files for server ci.pingcap.net, ci2.pingcap.net and cd.pingcap.net.
  • /jenkins/pipelines store Jenkins CI pipeline scripts for server ci.pingcap.net, ci2.pingcap.net and cd.pingcap.net.

ci's People

Contributors

3pointer avatar amyangfei avatar charlescheung96 avatar csuzhangxc avatar defined2014 avatar dianqihanwangzi avatar djshow832 avatar ehco1996 avatar hawkingrei avatar heibaijian avatar icemap avatar jebter avatar kivenchen avatar lance6716 avatar leavrth avatar lijie0123 avatar lilinghai avatar mahjonp avatar martinnose avatar mini256 avatar purelind avatar renovate[bot] avatar rustin170506 avatar schrodingerzhu avatar shiyuhang0 avatar shuke987 avatar wuhuizuo avatar xhebox avatar zhouqiang-cl avatar zimulala avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ci's Issues

将邮件中的统计数据,merge 成功率,rerun 比例,CI 结果分布 加到 Dashboard。

新建 CI 页面。
第一排:
1、merge 成功率随日期变化曲线,展示 30 天。3 个 repo 3 条曲线
2、rerun 率随日期变化曲线,展示 30 天。3 个 repo 3 条曲线。
第二 - N 排:
TiDB CI 结果柱状图随时间变化的曲线,展示 30 天。每根柱 100 份,CI 成功多少份,case 原因失败多少份,环境原因多少份,未知错误多少份。
TiKV。
PD。

Automate tidb-test on DBaaS

Currently tests in https://github.com/pingcap/tidb-test/ is kind of messy, namely

  • testing scripts are not well structed in a uniform way, different tests have different running pipeline
  • env set up is coupled with testing, we should separate env set up (get TiDB running) and testing (running SQL on TiDB), so that the env can be swapped to DBaaS easily.

using br repo for lightning

Since there are some code refector for lightning, after v4.0.11, we using pingcap/br repo for lightning

  • CI upload to fileserver
  • download.pingcap.org
  • image
  • remove clone lightning in docker image
  • tiup

unify make command

In optimization-build-tidb-darwin-amd
The code like

            if (product in ["tidb", "tidb-binlog", "pd"]) {
                sh """
                    for a in \$(git tag --contains ${hash}); do echo \$a && git tag -d \$a;done
                    git tag -f ${RELEASE_TAG} ${hash}
                    git branch -D refs/tags/${RELEASE_TAG} || true
                    git checkout -b refs/tags/${RELEASE_TAG}
                    export GOPATH=/Users/pingcap/gopkg
                    export PATH=/Users/pingcap/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/pingcap/.cargo/bin:/usr/local/go/bin
                    if [ ${product} != "pd" ]; then
                        make clean
                    fi;
                    make
                    if [ ${product} = "pd" ]; then
                        make tools;
                    fi;
                    rm -rf ${target}
                    mkdir -p ${target}/bin
                    if [ ${product} = "tidb" ]; then
                        cp /Users/pingcap/binarys/tidb-ctl ${target}/bin/
                    fi;
                    cp bin/* ${target}/bin
                """
            }
            if (product in ["tidb-tools", "ticdc", "br", "dumpling"]) {
                sh """
                    for a in \$(git tag --contains ${hash}); do echo \$a && git tag -d \$a;done
                    git tag -f ${RELEASE_TAG} ${hash}
                    git branch -D refs/tags/${RELEASE_TAG} || true
                    git checkout -b refs/tags/${RELEASE_TAG}
                    export GOPATH=/Users/pingcap/gopkg
                    export PATH=/Users/pingcap/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/pingcap/.cargo/bin:/usr/local/go/bin
                    if [ ${product} = "tidb-tools" ]; then
                        make clean;
                    fi;  
                    make build
                    rm -rf ${target}
                    mkdir -p ${target}/bin
                    mv bin/* ${target}/bin/
                """
            }

在邮件中加入每天 tidb merge 失败的原因和比例

环境问题
tidb 单测问题,对应的 issue
其他问题

目标:
自动解析出 merge 失败的任务极其失败的 case(对应的 issue),节省值班的人力,研发定位到 case 的工作量。
第一期:先 cover tidb ut

reduce jenkins log size

Script can like

def jobName = "tikv_ghpr_test"
def maxNumber = 60000
 
 
Jenkins.instance.getItemByFullName(jobName).builds.findAll {
  it.number <= maxNumber && it.result == Result.SUCCESS
}.each {
  it.delete()
}

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.