46 Star 35 Fork 122

openEuler / infrastructure

 / 详情

Add ci check for repository yamls

已接纳
需求 成员
创建于  
2019-11-25 11:38

这是一个bug还是新特性?:

以下两者二选一,请保留一项:

  • 特性

发生结果:
Currently the openEuler community maintains all of repositories and the members by these yamls in
https://gitee.com/openeuler/infrastructure/tree/master/repository

It is better to keep these repositories and memebers by alphabetical order.
But it's sort of hard to force every one to always keep the order. So shall we make use of CI to perform order checking and only well ordered file could be merged?

期望结果:

如何重现(尽量详细):

补充说明?:

环境情况:

  • 版本:
  • 操作系统版本 (e.g. from /etc/os-release):
  • 内核版本 (e.g. uname -a):
  • 其它:

评论 (14)

Hey @xiangxinyong, Welcome to openEuler Community.
All of the projects in OpenEuler Community are maintained by @openeuler-ci-bot.
That means the developpers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/command.md to find the details.

xiangxinyong 创建了需求
xiangxinyong 修改了标题
xiangxinyong 修改了描述
xiangxinyong 添加了
 
help-wanted
标签

/kind enhancement

openeuler-ci-bot 添加了
 
kind/enhancement
标签

IMHO, the CI is neccessary and important not only to order check but to yaml node spelling check and member id existing check. I suggest to add them as well.

@xiangxinyong @freesky-edward Sorry for bothering you. I am trying to add a job named task-check-community-yaml in jenkins but unfortunately I can not figure out which repository I should add relative script to. I guess we're using jenkins shared libraries for basic checking, right? If not, do I need an jenkins account for mannual configuration? So could you please give me a hand? Great thanks.

Hey @imjoey I am willing to add a jenkinsfile like hadoop community:

https://github.com/apache/hadoop/blob/trunk/Jenkinsfile

so that all the projects in https://gitee.com/openeuler will have their own jenkinsfile.

Our infra jenkins server is here:

http://114.116.250.98/

If you want to make some modifications in the jenkins server,
please feel free to ping me or @freesky-edward .

So I guess your task-check-community-yaml can be added in
https://gitee.com/openeuler/infrastructure as a jenkinsfile.
Any thoughts?

@imjoey sorry for making you confused, actually, we only set up the jenckins server right now, all the jobs priting in PR you can see are configuration on jenkins console by manual, so if you are going to add a new pipleline task, folowing this way would be a brisk choice.
but for the further plan, the SCM solution that is mentioned by @xiangxingyong above should be a new direction we are considering. that will allow the maintainers of each projects in openeuler group(note: excluse src-openeuler) are able to DIY their own tasks. but there still several parts should be done:

  • submit the jenkinsfile by maintainer
  • configuration the pipleline as well as the authentication.
    for the second step, it would better find an easy way instead of jenkins console, e.g. scripts configuration. the best practice as far as I know is travis against github.com. but it may take much workload.
    any suggestion will be much appreciated.

@xiangxinyong @freesky-edward Thank you for the tips.

A standalone Jenkinsfile for each repository is much convenient for contributors to customize the CI process and also I do not need asking for jenkins server access any more. That's great!

BTW: with regard to there are hundreds of repositories, we could also take advantage of Global Shared Libraries for common pipeline tasks to ease the CI workload.

@imjoey Thanks your suggestions:)
yep. we need global pipeline since we have hundreds of repos.
Actually we have already global pipeline for https://gitee.com/src-openeuler repos,
you can find the details from here http://114.116.250.98/
The global pipline is based on one gitee's global webhook for all the repos:)

@xiangxinyong yes, that's really awesome and thanks for the great work. Days ago, I submitted an issue that we'd better to prevent the .pyc files from being added into repository, please see 1 for details. I'm considering to contribute to the openeuler-check-binary-file project in jenkins to recognize more binary file like .pyc, .class, .jar and etc. Could you please guide me where to find the relative scripts defined in openeuler-check-binary-file? Thanks.

@imjoey thanks, all the ci files are in ci_check repository, could you please open PR for the privillege first?

Yang.Li 任务状态待办的 修改为新建
openeuler-ci-bot 移除了
 
help-wanted
标签
openeuler-ci-bot 移除了
 
kind/enhancement
标签
惊奇脆片饼干 任务状态新建 修改为已接纳

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
5329419 openeuler ci bot 1632792936 5227357 xiangxinyong 1578982846 5210900 freesky edward 1578982489 335059 imjoey 1659535604 5229366 tommylike 1578982886
Shell
1
https://gitee.com/openeuler/infrastructure.git
git@gitee.com:openeuler/infrastructure.git
openeuler
infrastructure
infrastructure

搜索帮助