13 Commits

Author SHA1 Message Date
Yumeng Bao
d765a344ee Introduce bandit security linter
Cyborg now does not have a code security check, which may connive at
possible security issues. For example, shell-related operations for drivers
may be insecure. Current "sudo lspci -nnn -D" in huawei ascend driver code[0]
is insecure, but there is no any job/test that can check the potential security
issues. So this patch introduces bandit as a code security check.

[0]:https://github.com/openstack/cyborg/blob/master/cyborg/accelerator/drivers/aichip/huawei/ascend.py#L69

Change-Id: Ia1f9acbbd176180cb5fe97b1a2eee5f98a95dea6
2020-01-05 19:49:22 -08:00
Arthur Dayne
6b9ab023e1 Stop testing python2.7
Python 2.7 support has been dropped. Last release of Cyborg to support
py2.7 is OpenStack Train. The minimum version of Python now
supported by Cyborg is Python 3.6.

Depends-On: https://review.opendev.org/#/c/691766/
Change-Id: Ie87ef7727b50d8d5ca43f0283c5688199c35412e
2019-11-19 02:09:08 -05:00
Zuul
4f75adcc2c Merge "Switch to Ussuri jobs" 2019-10-30 15:27:50 +00:00
chenke
9dcbbb33bc Enable openstack-cover-jobs in zuul check for cyborg
In this U version, Improve UT for important Cyborg module is
an important task.

It is necessary to add openstack-cover-jobs to zuul. This way
we can easily view the unit test coverage of each file.

such as nova:
https://github.com/openstack/nova/blob/master/.zuul.yaml#L374

Change-Id: I854a51a2105628c5e5e9c30282e0f4b259c33ed3
2019-10-24 20:39:54 +08:00
kangyufei
7d78a3e9b8 Switch to Ussuri jobs
Change-Id: I8176ae09da3e1d359266a06b6a18b44a30dcf8da
2019-10-22 12:10:58 +08:00
Ghanshyam Mann
1bda697885 [train][goal] Run 'cyborg-tempest-ipv6-only' job in gate
As part of Train community goal 'Support IPv6-Only Deployments and Testing'[1],
Tempest has defined the base job 'devstack-tempest-ipv6' which will
deploy services on IPv6.

This commit Run 'cyborg-tempest-ipv6-only' job in cyborg gate.

Because cyborg-tempest-ipv6-only is non-voting job it is added on check
pipeline only. This is non voting because cyborg-tempest job is not yet
voting.

Depends-On: https://review.opendev.org/#/c/682514/

Story: #2005477
Task: #35886

[1] https://governance.openstack.org/tc/goals/train/ipv6-support-and-testing.html

Change-Id: I24e6e1e407391932049a126502ba94e57cbc6124
2019-09-23 11:34:38 -07:00
Shogo Saito
38119f675e python3 patch (including zuul config)
Fix points are extracted in following methods.

1st: check with sixer:
    change unicode function to use sixer lib.
2nd: check & fix manually.
    2-1: as_dict() function
         fix as_dict() to work in py3 env.
    2-2: delete unnecessary as_dict() call in response to the change in as_dict()
    2-3: fix all_pfs_have_vf() to be able to treat both list and iterator,
         because filter() function returns list in py2, iterator in py3.
    2-4: To treats map() in same way in py2/3 env , wrap map() with list()  in P6,P7
    2-5: add python3.7 to setup.cfg
    2-6: add py3 tests, as voting

Change-Id: Ibfdec7258c731ee45ce1b9bdba4b2024cea78a12
Story: #2003219
Task: #23418
2019-09-13 09:27:22 -07:00
Yumeng Bao
dd965ff667 add cyborg-tempest job and remove cyborg-devstack job
this patch:
1. added cyborg-tempest[0] job to cyborg
2. removed cyborg-devstack job since cyborg-tempest job already contains
devstack_plugins
3. deleted legacy/cyborg-devstack/** for two reasons:
  1) cyborg-devstack is removed
  2) in zuul v3, devstack base job changed to the following[1][2]

[0]https://github.com/openstack/cyborg-tempest-plugin/blob/master/.zuul.yaml#L12
[1]https://docs.openstack.org/infra/manual/zuulv3.html#reworking-legacy-jobs-to-be-v3-native
[2]https://review.opendev.org/#/c/500365/34

Change-Id: Ia25b0e83f8438c57e698fe0fc781ff6fc5d77164
2019-09-11 23:20:21 -07:00
OpenDev Sysadmins
a74b99594d OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:39:22 +00:00
Nguyen Hai
6d3f74d0e4 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I0d5c754e54910f3bdca69470dd518411a0958d83
Story: #2002586
Task: #24291
2018-08-17 14:47:35 +09:00
Nguyen Hai
800d8a8662 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I9126f432d33b139f936cbf31f8f11bca3a92770f
Story: #2002586
Task: #24291
2018-08-17 14:46:57 +09:00
James E. Blair
3febc582af Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I3066f4fdf016d26f43a34ecd60c64ec6423f31fd
2018-02-02 06:09:51 -08:00
Duong Ha-Quang
a2fb9b4f42 Move legacy jobs to project
This patch implements first step in zuulv3 migration guide [1]:

Move jobs to Cyborg repo

[1] https://docs.openstack.org/infra/manual/zuulv3.html#legacy-job-migration-details

Change-Id: I31d5d7aed511aca18c1096b9f5eb7572f683d613
Needed-By: If816cfec5ace8f9fd7293c0749948d2c0dcb817a
Needed-By: I40e9380d049f541bf34488a3010d95f4a6835179
2017-12-29 09:27:59 +01:00