1 Star 1 Fork 116

solarhu / openEuler-Advisor

forked from openEuler / openEuler-Advisor 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.en.md 4.59 KB
一键复制 编辑 原始数据 按行查看 历史
smileknife 提交于 2021-01-06 17:48 . README: update contacts

openEuler-Advisor

Description

Collection of automation tools for easily maintaining openEuler

Pharse Rules Requires Automatic Data & Tool
1.Select & Fetch 1.1 Official Release official git/svn.. url from spec, from other package system Software Metadata
1.2 Best Version release note、test、user feedback newest/stable/official/compatible version
1.3 Best Version Notify issue/PR auto issue/PR
2.Package 2.1 Meta data summary, deps ... from spec, from other package system
2.2 Check Old Patch (while updating) drop upstreamed patch; check conflict
2.3 Python to RPM way to build python package by pip turn pip to rpm
3.Modify 3.1 CVE & CVE official fix CVE notify & official patch/commit
3.2 Patch upstream upstream bugzilla/git URL auto bugzilla/PR
4.Test 4.1 Upstream Test & Feedback upstream test entry & feedback channel standard test entry & auto feedback
5.Release TODO

Software Metadata

Configs

version_control: git
src_repo: xxxx
tag_prefix: ^v
separator: .

version_control The type of a software's version control system. Now we support: svn/github/git/hg/metacpan/gitlab.gnome/pypi

src_repo The original official source url of a software.

tag_prefix The version name is not always the same with the tag name. For example, if a software version is 1.0.0, the tag might be v1.0.0. v here is the prefix.

separator The separator of a software's version name. For example, if a software version is 1.0.0, the separator is ..

How to add a software metadata file

  1. Please check if the metafile is already exist
  2. Copy the Template to Database Dir
  3. Rename the file name, it is suggested that the file name SHOULD be same with the repo name in src-openeuler.
  4. Find the official source url of the software.
  5. Check the version control type, the tag prefix and the separator
  6. Fill the configs

DONE! than you can create a Pull Request.

Metadata Database

Database

Introduction of advisors

Enviroment Setting

1. necessary packages install
pip3 install python-rpm-spec (ver>=0.10)
pip3 install PyYAML (ver>=5.3.1)
pip3 install requests (ver>=2.24.0)
yum install rpmdevtools (ver>=8.3)
pip3 install beautifulsoup4 (ver>=4.9.3)
yum install yum-utils (ver>=1.1.31)
2. json file config
~/.gitee_personal_token.json
content format: {"user":"user_name","access_token":"token_passwd"}

setting personal access token: https://gitee.com/profile/personal_access_tokens
3. gitee ssh config
if not config, please refer: https://gitee.com/help/articles/4181
4. OBS config
if not config, please refer: https://openeuler.org/zh/docs/20.09/docs/ApplicationDev/%E6%9E%84%E5%BB%BARPM%E5%8C%85.html
5. Python enviroment config
if in development, you want to use the tool directly, please config Python path firstly: source ./develop_env.sh

Use Instructions

1. simple_update_robot.py
single package auto-upgrade: python3 simple_update_robot.py -u pkg pkg_name branch_name [-n new_version]
ep: python3 simple_update_robot.py -u pkg snappy master

single package manual upgrade: python3 simple_update_robot.py pkg_name branch_name [-fc] [-d] [-s] [-n new_version] [-b] [-p]
ep: python3 simple_update_robot.py snappy openEuler-20.03-LTS -fc -d -s -n 1.8.1

multi-packages in a repo auto-upgrade: python3 simple_update_robot.py -u repo repo_name branch_name
ep: python3 simple_update_robot.py -u repo src-openeuler master

you can config local yaml for auto upgrade, such as: upgrade-example.yaml
repositories:
- name: A-Tune
- name: python-py
- name: python-ply
if you want to specify upgrade version for some package:
repositories:
- name: A-Tune
  u_ver: x.y.z
- name: python-py
- name: python-ply
then auto upgrade upgrade-example: python3 simple_update_robot.py -u repo upgrade-example master
2. oa_upgradable.py
display all tags of target package: python3 oa_upgradable.py pkg_name
ep: python3 oa_upgradable.py glibc

Consultation for advisors:

if any problem, please contact: licihua@huawei.com/zwfeng@huawei.com/shanshishi@huawei.com

Contribution

  1. Fork the repository
  2. Create Feat_xxx branch
  3. Commit your code
  4. Create Pull Request
1
https://gitee.com/solarhu/openEuler-Advisor.git
git@gitee.com:solarhu/openEuler-Advisor.git
solarhu
openEuler-Advisor
openEuler-Advisor
master

搜索帮助