Commit Graph

143 Commits

Author SHA1 Message Date
Michal Nasiadka d79c07effb CI: Add codespell for spell checking
Fix existing spell checking

Change-Id: Ief7b8f2d427b2557c84fda9b3774ed85ceb105f4
2024-04-15 14:56:34 +00:00
Michal Arbet b76bd4c6ef Add podman for image building
Add podman as an option to choose for container engine
for kolla-build (--engine podman)

Signed-off-by: Konstantin Yarovoy <konstantin.yarovoy@tietoevry.com>
Co-Authored-By: Michal Arbet <michal.arbet@ultimum.io>
Change-Id: I068c906df97745e397408d8c3ef6af47ee037638
2023-09-21 11:01:21 +02:00
Michal Nasiadka a313ed46dd CI: Fix tox 4 once again
Change-Id: I4d2f521b36ee4684a331e725787bfb56434d1d44
2022-12-28 18:30:32 +01:00
Dr. Jens Harbott c291f3b827 Fix tox.ini for tox4
Use bash to call shell scripts instead of adding them explicitly to
allowlist_externals. Drop external command that is no longer being used.

Change-Id: I4f90fbcc3a679660c437e99a3aa1f81747b72054
2022-12-08 15:49:47 +01:00
Radosław Piliszek 8477e86db8 [CI] Drop bindep
It is not necessary and it may be confusing.

Change-Id: Ie84bce6a90de622dc76a2309fc579d881325b956
2022-06-23 10:24:14 +02:00
wu.chunyang fd49c3d6fe tox: Use allowlist_externals instead of whitelist_externals
whitelist_externals is now deprecated, use allowlist_externals
instead. see[0]

[0]: https://tox.readthedocs.io/en/latest/config.html

follow: https://review.opendev.org/c/openstack/kolla-ansible/+/791928

Change-Id: I511fa599f43c5376f841ec6d03e272243aaa2ba4
2021-06-22 01:06:38 +00:00
Radosław Piliszek 8e9323d236 Drop lower-constraints
Per our PTG resolution [1] and general OpenStack resolution [2], lower-constraints
are not worth the extra work and confusion they introduce.
This patch drops them along with all mentions.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-October/018445.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019521.html

Change-Id: I58807c27fd20c7269019e26e8b507744d35325f3
2020-12-18 20:10:47 +01:00
likui 5035945efd Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://review.opendev.org/#/c/722814/

Change-Id: I486b6f8ad54f2ae5d32675d3c28660c32247b20b
2020-10-30 09:54:22 +08:00
wu.chunyang 6ec35a3d19 bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.
and remove redundant python env.

Change-Id: I5365c435bac63ce0071fb6107373f37f70e2799b
2020-09-17 19:34:03 +08:00
zhoulinhui 0cbba11213 Reuse the docs deps for releasenotes to benefit from constraints
Depends-On: Ic22d0d4baca7295a01d97bd15c940716ca6f5232
Change-Id: If2a37cfd7874eaa2685777927fd1939b4e900870
2020-09-10 09:36:09 +00:00
zhoulinhui 5a45f408e6 Stop install unnecessary packages when run tox -edocs
requirements.txt is unnecessary when run tox -e docs,
docs relative stuffs is in doc/requirements.txt, this ps to
remove the requirements.txt from tox.ini

Change-Id: Ic22d0d4baca7295a01d97bd15c940716ca6f5232
2020-09-10 09:35:38 +00:00
jacky06 135f3a347a Remove pypy job
Pypy is not tested in OpenStack anymore, remove the job.

Change-Id: I747f30a385b8163ac1ea173b0a8024c281fc272b
2020-05-17 17:50:46 +08:00
Radosław Piliszek 6c480c3d89 Cleanup py27 support
Removes and/or replaces all mentions of py27.

Cleans up obsolete requirements and their lower-constraints.

Change-Id: Id43f1bbd6a454832ab8dbf003a058403f6b34b5d
2020-04-17 18:07:29 +02:00
Zuul baec0b913a Merge "CI: Avoid tox" 2020-04-04 16:31:27 +00:00
Radosław Piliszek c089eab392 CI: Avoid tox
We don't need tox nor tell our users to use it when doing kolla builds.

Tox is going away from base infra images (it is already gone from
aarch64 ones).

Depends-on: https://review.opendev.org/713134
Co-authored-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>

Change-Id: Ib1d97a783951ac42740ebf91bcc6ecaf2bf70853
2020-04-03 15:46:11 +02:00
Andreas Jaeger 1456d8b6f9 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Update local hacking checks for new flake8.

Remove hacking and friends from lower-constraints, they are not
needed in installations.

Change-Id: I67e5ca24c550163c218fb06692de0b7c528d8318
2020-04-01 21:42:41 +02:00
Ghanshyam Mann b9417cd745 [ussuri][goal] More cleanup for python 2.7 drop
Cleanup requirement and set ignore_basepython_conflict = True
in tox to avoid python version conflict warning which going
to be error in future.

Change-Id: Ia749d558df33f475dfdbe7a1f9dfdb30aeba8da0
2020-02-29 15:23:25 -06:00
Zuul 9354a9e270 Merge "Remove skipping B303 for bandit checks" 2020-02-20 21:06:35 +00:00
Marcin Juszkiewicz ceae02f09d Get rid of Python 2 support
2020 came, everyone should be using Python 3 now.

As per the official python support timeline set forth
by the OpenStack TC [1], OpenStack Train (in our case,
kolla 9.x) is the last release that will support python2.7.

[1] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html

Related bug: https://bugs.launchpad.net/tripleo/+bug/1856678

Merging depends on TripleO team - once they move CI job to CentOS 8 we
can merge.

Implements: blueprint drop-py2-support

Change-Id: Ic459561ab6ab8c62993c044c7a82d887839da289
2020-02-17 18:01:41 +00:00
Mark Goddard b060623b90 CentOS 8: Add zuul build and publish jobs
Adds build and publishing jobs for CentOS 8 images:

- kolla-build-centos8-binary
- kolla-build-centos8-source
- kolla-publish-centos8-binary
- kolla-publish-centos8-source

The 'base' image has been added to the list of unbuildable images for
CentOS 8 (now separate from the list for CentOS 7). This means that no
images will be built - the jobs should essentially be a 'noop'.

Change-Id: Ie9a0109bd4eef337358d714e4b5088b8e3de2f23
Partially-Implements: blueprint centos-rhel-8
2020-01-09 16:23:39 +00:00
Marcin Juszkiewicz 8d1dead890 tox: use Python 3 where possible
Time to say goodbye for Python 2

Depends-On: https://review.opendev.org/693356

Change-Id: I5f23da932df70bf17d09d42420ac408221d0e02f
2019-11-07 15:58:33 +00:00
jacky06 75d70a0c8a tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: I6b8897472220e2f45ec3230be8d3f82adacc7c7e
2019-10-14 18:32:14 +08:00
Zuul a1dfaff2e6 Merge "Build pdf doc" 2019-09-19 08:44:47 +00:00
Mark Goddard fa8e174be6 Remove support for OracleLinux
We have agreed to remove support for Oracle Linux.

http://lists.openstack.org/pipermail/openstack-discuss/2019-June/006896.html

Change-Id: I961dfba1aeef2c509ecdaf376dfe6928926ffb39
Depends-On: https://review.opendev.org/682858
2019-09-18 13:42:47 +01:00
Mark Goddard 75e7bd530d Build pdf doc
The is one of community goals that each project should produce a
single PDF file. The pdf should be in the output of openstack-tox-docs
job.

TeX packages are required to build PDF locally, following is
recommended:

* inkscape
* texlive-latex-base
* texlive-latex-extra
* texlive-fonts-recommended

More about the goal:
https://governance.openstack.org/tc/goals/train/pdf-doc-generation.html
https://etherpad.openstack.org/p/train-pdf-support-goal
https://etherpad.openstack.org/p/pdf-goal-train-common-problems

Change-Id: Ia0f8b73bcbda6295319f5c8de1aa02a40844207b
2019-09-17 14:25:32 +01:00
Corey Bryant 008aa957f2 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I3cb7d2c482cf6d57e01892b6ba0f76d9580ff53c
Story: #2005924
Task: #34216
2019-07-05 11:43:43 -04:00
Radosław Piliszek c7ac0f0de0 Clean up test process
If stestr failed, then no node info was logged.
Logging node info is now handled in pre and post stages of Zuul.
Additionally Zuul v3 migration recommendations were applied
and some unused code removed improving general readability.

Change-Id: Iae9d37cb76997ba8389e21c7e2a3bf5905abe029
Signed-off-by: Radosław Piliszek <radoslaw.piliszek@gmail.com>
2019-06-20 10:25:41 +02:00
tonybrad a64a0c574f Move to releases.openstack.org
Change-Id: I7ec146d0edc96f5ce925792530c42d7eedf8a409
2019-06-12 09:53:29 +08:00
Zuul 105cec6d42 Merge "Move to opendev" 2019-04-29 14:30:48 +00:00
Michal Nasiadka 075f1b71aa Remove skipping B303 for bandit checks
Depends-On: https://review.opendev.org/655623/
Change-Id: Ife905cb6b5dff201da357aecf100a34e599bbe80
2019-04-25 07:08:50 +00:00
ZhongShengping 4fc5f1cc6e Move to opendev
1.Use opendev.org instead of git.openstack.org.
2.Use review.opendev.org instead of review.openstack.org.

You can see the discussion below:
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html

Change-Id: I377ea63827b6f3995ee275fdc466c1b2100eafc7
2019-04-24 15:22:57 +08:00
confi-surya 802a21f68f Update the min version of tox
In Train, we will use python3.6 and 3.7 for which
the minimum tox version required is 2.5[1]

[1]https://tox.readthedocs.io/en/latest/changelog.html#v2-6-0-2017-02-04

Change-Id: Iea2da5e698959e85a6996b32bda85701b4aa0676
2019-04-22 15:39:29 +05:30
Mark Goddard fdd2fb35cb Remove unused scripts
Removed various scripts which were part of previous CI configurations.

Change-Id: I674c3bb89e049638926fcb2ad6577123117b5d32
2019-03-25 11:44:15 +00:00
confi-surya f3568a1ba3 Drop py35 jobs
Python 3.5 was the target runtime for the Rocky release. The current
target py3 runtime for Stein is Python 3.6, so there is no reason to
keep testing against the older version.

https://governance.openstack.org/tc/reference/runtimes/stein.html#python-runtime-for-stein

Change-Id: Ib7804441fb3608b955c642014620fcab39d911ef
2019-02-27 08:57:46 +00:00
Vu Cong Tuan 92d35e9e8c Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I27308a2435a4dca572d736f56a02b0bbc8563981
2019-02-24 20:23:49 +01:00
Michal Nasiadka a490eef0d5 Fix py36 gate job
python 3.6 pycache also includes links - so those also
need to be removed

Depends-On: https://review.openstack.org/636750
Change-Id: I0f995df45bf203acc79cc7bd52b9ac51577468da
2019-02-14 09:13:32 +01:00
Zuul 08bff2ed5a Merge "Fix tox dependencies for release note generation" 2019-01-31 17:30:08 +00:00
Natal Ngétal 55a31ee2bd [Configuration] Add missing py37 and corrected default envlist.
Change order of default tox envlist in order of likeliness to fail on a
new change and add py37 and py36.

Change-Id: I7b88f0ebce37a319e66b20d5438852976195f06e
2018-12-18 10:31:18 +01:00
Zuul 3a44481f22 Merge "Update min tox version to 2.0" 2018-12-14 09:56:20 +00:00
Mark Goddard 41aa8f9a86 Fix tox dependencies for release note generation
Change-Id: I3aa42fe9225ca57151b5fdf1252a8fa37773d86a
2018-12-13 13:58:12 +00:00
Nguyen Hai Truong 1266656162 Add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 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: I37bd6b96781ad8ca47c5cd57f455c540245f27f0
2018-11-07 11:16:18 +00:00
Nguyen Hai Truong 7eae234408 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.
Update to reflect reality, which should help with local running of
constraints targets.

Change-Id: Ie74cd61e251d46524d83a05c0b48fd462aeb4a57
2018-11-02 00:04:16 -07:00
Doug Hellmann 6d6e1c85a3 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: I916dfe05c88d3960e0239a6b9a7e5affc6d79196
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:55:18 -04:00
Eduardo Gonzalez 989306a98e Temporary ignore B303 in bandit tests
Revert this change once the insecure usages are fixed.

Change-Id: I36712b3c187afd5b1014d8f3b030a794621474be
2018-08-17 14:46:39 +02:00
Liping Mao (limao) 339e9b2051 Fix yaml warning in release notes and enable yamllint strict mode
Fix yaml warning in release notes. And this patch wants to
make sure pep8 jenkins job can cover yaml warning check
in the future. So use yamllint with strict mode[1]
to treat warning as error.

[1] http://yamllint.readthedocs.io/en/stable/configuration.html#errors-and-warnings

Closes-Bug: #1778389

Change-Id: I05af5204c4d5388daa8bd3c8582fd1058df15920
2018-06-24 16:46:23 +08:00
confi-surya 0f2c0d54b8 Following the new PTI for document build
For compliance with the Project Testing Interface [1] as described in
[2]

[1]
https://governance.openstack.org/tc/reference/project-testing-interface.html
[2]
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ic0b3f6c24b3229bbee19b39f9264a40884c700c9
2018-04-12 13:48:50 +09:00
Doug Hellmann 956dc0da6a add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I5753b175264c074ff722b47293c65063f0187ffe
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 14:21:55 -04:00
Nguyen Hai 850bd8afaf Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
[1] https://governance.openstack.org/tc/reference/project-testing-interface.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I302aced3b50b038900375e9632ca7ed136f32914
2018-03-16 03:32:55 +09:00
Eduardo Gonzalez 01a5388169 Verify YAML syntax in gates
Test yaml syntax is correct on new changes.
Fixes current warnings and errors

Change-Id: I5888f8e4a9d27a08506036df2c564b9f2081ccee
2018-02-27 21:45:57 +00:00
Jenkins ef949dafd7 Merge "Fix doc build warnings" 2017-07-18 15:07:46 +00:00