Commit Graph

23 Commits

Author SHA1 Message Date
OpenStack Release Bot b9736223eb Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Icb4424810fc7e6ff4933bc93c6cd1b1315449328
2022-09-14 07:46:03 +00:00
zhangbailin b15bc27ea7 Switch openstack-python3-zed-jobs
In Zed, we decrepated the py36/py37 job, and this patch need to change
with zed job[1].

[1]https://opendev.org/openstack/openstack-zuul-jobs/src/branch/master/zuul.d/project-templates.yaml#L504

Change-Id: Ia467087f1b48d158ce6f91dd461138ff514a8c80
2022-06-09 17:41:48 +08:00
zhangbailin 8cd846a16c add pep8 check to zuul check and gate job
Change-Id: Ie67d2717464b8944b05c06a2ffa39452dba396e8
2022-06-04 17:44:46 +08:00
zhangbailin 8f234fd54a Bump oslo.log>=5.0.0
Change-Id: I216da5b653983740a85b698821efa2012981c54b
2022-06-04 17:44:06 +08:00
zhangbailin 68c558645c Drop py3.6 and py3.7 from Cyborg
In zed cycle, OpenStack projects and oslo lib
has dropped the py3.6 and py3.7 support

- https://governance.openstack.org/tc/reference/runtimes/zed.html

With oslo not supporting the py3.6 and py3.7, we disscussed in cyborg
team, and we will remove the py3.6 and py3.7 support too.

Closes-Bug: #1977636
Change-Id: Ib934e50ee6e89cb1e2b4cbf8390eee2baa30effd
2022-06-04 14:52:44 +08:00
OpenStack Release Bot 88b57dcd0c Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I2b47cdb3ce6520f8c33b77a6440973b958f44727
2021-09-15 02:10:23 +00:00
OpenStack Release Bot 4fac92a2e1 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Icee2a36b1e2bd0c006deaf6915b20e0ebfdc134c
2021-03-19 12:14:16 +00:00
OpenStack Release Bot addd88d4ff Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I93539206015c9782f8847c1b8a55743b124f1a62
2020-09-22 14:12:23 +00:00
OpenStack Release Bot 68b704491d Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I25e89b8e25dbb0fcf8565d1023fa8030373e9c9a
2020-04-24 08:47:34 +00:00
Yumeng Bao 561cba9003 Change bandit job from non-voting to voting
Bandit check is a very important tool to check code security.
Before this patch, we put it as a non-voting job to temporarily ignore
existed bandit failures. After fixed all the existed bandit failures,
we should change this test job from non-voting to voting to make the
bandit job actually work, that is to let zuul do the bandit check for
all patches and give them zuul -1  once the new changes fail to pass
bandit the check.

Depends-On: https://review.opendev.org/#/c/720475
Depends-On: https://review.opendev.org/#/c/720456
Depends-On: https://review.opendev.org/#/c/720149
Depends-On: https://review.opendev.org/#/c/720143

Change-Id: I8480243382f66779a12b1e433b69d9be512e843e
2020-04-21 12:04:28 +00:00
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