Commit Graph

12 Commits

Author SHA1 Message Date
niuke a428a8500e Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I1d14ad2649aa65a74876809b7e3e448adb1ce3dc
2022-09-15 17:15:27 +08:00
zhangbailin 14d45468ce Change the doc8 check mode
In Ib226cbf9fc1fb7d3146083d65c44d8e0b80e2a7b we were introduced the doc8
check, but the configuration in cyborg/tox.ini is incorrect. This patch
will combine the doc8 check in [testenv:docs] to fix 'tox -e doc8' error.

Story: 2008084
Task: 40785

Change-Id: I9eb30de1407022a31086caab265e5e51e3d06bf9
2020-09-16 09:52:18 +00:00
zhangbailin 8752d94e99 Adjust the nova-cyborg-interaction specs
Although we were proposed nova-cyborg interaction[1] in the Queues release,
but it has not really been implemented. Then we were proposed this feature
in nova in Train release[2], but we were not completed it in Train. So we
were re-proposed it in Ussuri release[3], and we were completed.

Mainly chages:
1.Keep the first spec in cyborg-specs in queues release, and put the
  old spec in the approved directory.

2.I will keep the nova-cyborg interaction description is consistent with
  the nova-spec[2][3] from the Train version, because this is the clearest
  description of the nova-cyborg interaction.

3.Since we completed the nova-cyborg interaction in the Ussuri release,
  we moved this spec into the implemented directory.

[1]https://specs.openstack.org/openstack/cyborg-specs/specs/queens/approved/cyborg-nova-interaction.html
[2]https://specs.openstack.org/openstack/nova-specs/specs/train/approved/nova-cyborg-interaction.html
[3]https://specs.openstack.org/openstack/nova-specs/specs/ussuri/implemented/nova-cyborg-interaction.html

Change-Id: I2e057d54ed1fba4ccc44445e382aff4257e87f82
Signed-off-by: Brin Zhang <zhangbailin@inspur.com>
2020-09-14 19:59:57 +08:00
Zuul b4258e3737 Merge "Update tox py version conflict flag" 2020-04-07 01:27:39 +00:00
zhangbailin aad2353b0d Switch to sphinx-build and cleanup
1.Sync sphinx dependency with global requirements. It caps python 2
  since sphinx 2.0 no longer supports Python 2.7.

2. Switch to using modern sphinx-build.
3. Remove oslotest, testtools packages from test-requirements.txt,
   their not used.

Change-Id: Ia25e4a06ca2ec4e0018d5763e0946ded704b521b
2020-02-27 04:21:56 +00:00
Ghanshyam Mann d61c67babf Update tox py version conflict flag
ignore_basepython_conflict flag needs to be set True
as basepython is py3 in common env.

Change-Id: If7aeb0be012cb4ec43d29880c466a8bd14dd6532
2020-02-03 12:19:13 -06:00
zhangbailin 452028b602 Move basepython variable to the [testenv]
In tox.ini, while we add a new test class, we need default
depends on python3, this patch move 'basepython = python3'
to the [testenv] as the default configuration.

The py35,py27 in envlist are unused in this project, so I
was also removed that in this patch.

Change-Id: Ib226cbf9fc1fb7d3146083d65c33d9e0b90e4d5b
2020-01-17 06:49:19 +00:00
Yumeng_Bao 6a764dc418 add doc8 check
Current cyborg-specs has no check for trailing whitespace, which is
found in patch[0]. Trailing whitespace is a big deal,we should avoid
that. This patch:
1. added doc8 check
2. fixed doc8 failures caused by previous merged specs

[0]:https://review.opendev.org/#/c/699099/7/specs/ussuri/policy-defaults-refresh.rst

Change-Id: Ib226cbf9fc1fb7d3146083d65c44d8e0b80e2a7b
2020-01-17 03:56:56 +00:00
chenke 46b3ef1b49 Switch to the new canonical constraints URL on master
Reference:
1. http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I2deeb59540a86be6c89a19dc2f944a1903b428f0
2019-06-17 22:06:15 +08:00
caoyuan 22ed48cb82 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I6bdc8577380549f6d667accfb2689dd09bbcb8cc
2019-05-27 05:34:20 +00:00
huang.zhiping b6645641f0 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I3ef38d70bfa66fdb210f68175f3b4c361d292a4e
2018-06-08 23:21:19 +08:00
Yumeng Bao c87d8215e6 Initialize cyborg-specs repository
This patch initializes cyborg-specs repository using cookiecutter template[1]
[1]: https://docs.openstack.org/infra/manual/creators.html#preparing-a-new-git-repository-using-cookiecutter

Change-Id: I0c1ea27b1956e9af7d5d3b8d46ee894f22acb9ff
2018-03-22 16:07:07 +08:00