aboutsummaryrefslogtreecommitdiff
path: root/tox.ini
AgeCommit message (Collapse)AuthorFilesLines
2026-05-07Update TOX_CONSTRAINTS_FILE for stable/2026.1OpenStack Release Bot1-3/+3
Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so that anyone working on this branch will switch to the correct upper-constraints list automatically when the requirements repository branches. Until the requirements repository has as stable/2026.1 branch, tests will continue to use the upper-constraints list on master. Change-Id: I9d22724bd365457a07ce146bcc16482fb6017b2e Signed-off-by: OpenStack Release Bot <infra-root@openstack.org> Generated-By: openstack/project-config:roles/copy-release-tools-scripts/files/release-tools/functions
2026-04-23CI: Remove upper-constraints in linters tox jobMichal Nasiadka1-1/+0
j2lint 1.2.0 requires rich<15 and u-c bumped it to 15.0.0, so things are failing right now - but we don't need u-c for linters job Change-Id: Ie14c11e299da1e505d379ad35928cc62929a678f Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2026-01-09ansible-lint: Rework validate-all-file into custom rulesMichal Nasiadka1-1/+0
Test roles/ subdirectories as well (used by Zuul) In addition to that container_exec_become will also fail when "docker exec" or "podman exec" will be used instead of "{{ kolla_container_engine }} exec" Generated-By: Claude Change-Id: I75c1e48c36bb0284e2927b1cb354ce9ec47967d7 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2025-12-30Switch to pypi version of j2lint and fix linting errorsMichal Nasiadka1-2/+1
Since ipwrap filter is getting moved another time inside ansible code - let's switch to j2lint that is actively maintained and it's rules will help in readability of jinja2 templates Change-Id: I6762b691b927de31fa1abd83c4c14e87226fe5e2 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2025-11-06CI: ansible-lint: Move exclude paths to .ansible-lintMichal Nasiadka1-1/+1
Change-Id: Ide4387d3a041ee424bc7f62fb4ddb38ff3e7cb52 Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2025-06-04CI: Bump ansible-lint to <26Michal Nasiadka1-5/+0
Remove yamllint usage - it duplicates what reno lint/ansible-lint do. Change-Id: If8ad229281b2dca565570d651065779c2c871528
2024-12-05docs: minor fixes to external Ceph guidePierre Riteau1-0/+5
When a path is broken into two separate lines, the generated HTML includes an incorrect space character in the middle of the path. We need to ignore doc8 linting on this file as this change breaks the max line length check. I tried using ``ignore-path-errors`` to exclude only D001 for this file, but doc8 does not like a relative path for this option [1]. [1] https://github.com/PyCQA/doc8/issues/162 Change-Id: I1cf0b7a6b7506a68876bce2de5080718280a47be
2024-10-31CI: Add pre/run.yml to files in all base jobsMichal Nasiadka1-1/+1
Rework the base jobs structure to include a mid-level kolla-ansible-scenario-base that includes common files: stanza. Change-Id: I548b22b27dff111d625361835029354557d8c9ca
2024-08-26Merge "Use py3 as the default runtime for tox"Zuul1-2/+2
2024-08-26Use py3 as the default runtime for toxlikui1-2/+2
Moving on py3 as the default runtime for tox to avoid to update this at each new cycle. Change-Id: I9e3eb3aca01fb94a92153e26659c2c412de98093
2024-05-24CI: Pin codespell to <2.3.0Michal Nasiadka1-1/+0
Change-Id: Ief1598a017b7ff491c9fcb775fdb155628bc55d2
2024-04-22CI: Add codespell to pep8Michal Nasiadka1-0/+2
Fix existing spelling errors Change-Id: Ie689cf5a344aaa630a4860448b09242333a8e119
2024-03-18Revert "podman: install "rich" dependency"Sven Kieske1-1/+0
This reverts commit 0b1a59dd8cc2b402b5a0ad9b02144edd1daf40ca. Reason for revert: Upstream Fix available at https://github.com/containers/podman-py/pull/351 Change-Id: Iadb74ffb5a747bd16e6acebd6a9c22b3b7198fd0
2024-01-22Bump ansible-lint versionMichal Arbet1-0/+1
The version that we were capping to is no longer compatible with latest upper-constraints.txt, so let us free float again. The resulting linting errors are included for now to unblock the gate, these will still need to be discussed or fixed later. NOTE(kevko): Temporarily disabling horizon deployment, as it's not possible to unblock gates without it Co-Authored-By: Michal Arbet <michal.arbet@ultimum.io> Change-Id: Ib7f72b2663199ef80844a412bc436c6ef09322cc
2023-11-29podman: install "rich" dependencyDr. Jens Harbott1-0/+1
This dependency was added to podman-py in version 4.8.0, but not added properly to their requirements. Install it explicitly for our tox and integration testing as a workaround. [0] https://github.com/containers/podman-py/issues/350 Change-Id: I61a5fdfc4e505f2577185f0c0f1297cf2709be2c
2023-10-20Add support of podman deploymentIvan Halomi1-0/+2
This change adds basic deployment based on Podman container manager as an alternative to Docker. Signed-off-by: Ivan Halomi <i.halomi@partner.samsung.com> Signed-off-by: Martin Hiner <m.hiner@partner.samsung.com> Signed-off-by: Petr Tuma <p.tuma@partner.samsung.com> Change-Id: I2b52964906ba8b19b8b1098717b9423ab954fa3d Depends-On: Ie4b4c1cf8fe6e7ce41eaa703b423dedcb41e3afc
2023-01-25Merge "Add systemd container control"Zuul1-1/+1
2023-01-23CI: show coverage report in jobMichal Nasiadka1-0/+1
Change-Id: I67bc12cb0a9b9d27c51d9c69a689dc16cd37c757
2023-01-19Add systemd container controlMartin Hiner1-1/+1
This commit adds SystemdWorker class to kolla_docker ansible module. It is used to manage container state via systemd calls. Change-Id: I20e65a6771ebeee462a3aaaabaa5f0596bdd0581 Signed-off-by: Ivan Halomi <i.halomi@partner.samsung.com> Signed-off-by: Martin Hiner <m.hiner@partner.samsung.com>
2022-12-28CI: Support tox4Michal Nasiadka1-7/+8
Depends-On: https://review.opendev.org/866943 Change-Id: Ib3caf7378c1d5e2e9cfe04e36797bd827e99d6c5
2022-09-29[tox] Fix installation of requirementsRadosław Piliszek1-1/+2
Both venv and linters (and its children) environments install kolla-ansible and thus also install the requirements. However, they were doing this post-factum and thus without the constraints pin. This patch also removes the installation of test-requirements in venv as it is meant to be used for running the software and we already have environments for unit tests. The doc requirements are left in place because docs mention that ``tox -e venv -- reno`` should work. They should be harmless but I am open to removing them as well. Change-Id: I15f1ecc216c9ba81dad740c372d297adf279a945
2022-04-12Move lint requirements to dedicated fileDr. Jens Harbott1-2/+1
These are not needed for unit tests and we want to avoid conflicts when running with older python versions that we still test against. We intentionally duplicate ansible and reno as requirements in order to avoid having to install more items than necessary. Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: I0ec83c3e4ae38f911b922a3bade65429d91169eb
2022-01-06Refactor of kolla_docker into module_utilsMartin1-0/+2
Moved the DockerWorker class from module file into its separate file in module_utils directory for future extension. Unit tests changed accordingly. Signed-off-by: Ivan Halomi <ivan.halomi@tietoevry.com> Co-authored-by: Martin Hiner <martin.hiner@tietoevry.com> Change-Id: Ia2a471a9a2805e13b2c20dbf8a7297c23231aae3
2021-08-31[tox] Add docs-iterative commandRadosław Piliszek1-0/+7
This is useful for iterative work with docs as it avoids trashing results from previous builds and thus saves time. Change-Id: Ic4f710725cbc2d85c28ca4e00c3a32a00a72c2da
2021-08-31[tox] Optimise docs actionsRadosław Piliszek1-7/+12
Streamline all actions to behave the same (start with clean env). Additionally: - doc envs do not require k-a to be (re)installed (skip_install) - this change turns on nitpicky mode to catch reference issues early Change-Id: I8ae8a1ca5f6f77ea498573e343889611559b5c97
2021-06-17Merge "tox: Add find command to allowlist_externals list"Zuul1-4/+5
2021-05-25tox: Add find command to allowlist_externals listwu.chunyang1-4/+5
whitelist_externals is deprecated now, use allowlist_externals instead. see[0] Add find command to allowlist_externals list to fix a warning.[1] [0]: https://tox.readthedocs.io/en/latest/config.html [1]: https://zuul.opendev.org/t/openstack/build/9ac7f205080343f29d7e2b519abbdb73/log/job-output.txt#945 Change-Id: I67e9c892a945d04eff59427a0161aafceb136560
2021-05-19Indented two spaces to match the other things in this blocklikui1-2/+2
Change-Id: I87bd1cba830bd4c1de0136dd1f6b3636e74d12de
2021-02-20CI: Initial jinja2 templates syntax checksMichal Nasiadka1-0/+6
Change-Id: If42b7324b58851a4f0beb3a80c70ca2c9dd729af
2021-02-17Merge "Lint and fix renos"Zuul1-0/+1
2021-02-10CI: fix kolla-ansible installation after cryptography 3.4 releaseMark Goddard1-1/+1
Installing kolla-ansible system-wide on CentOS 8 fails with: ModuleNotFoundError: No module named 'setuptools_rust' This error appeared following the release of cryptography 3.4, which now includes Rust code. It can be installed without Rust using a Python wheel, but only with more recent pip than version 9.0.3 available as RPM on CentOS 8. The cryptography bug report [1] recommends pip>=19.1.1. This change switches to using pip --user when installing kolla-ansible. Also fixes an issue with ansible-lint which was failing on etc/kolla/globals.yml due to a missing space before comments. [1] https://github.com/pyca/cryptography/issues/5753 Change-Id: Ifaf1948ed5d42eebaa62d7bad375bbfc12b134d5 Closes-Bug: #1915141
2021-02-10Lint and fix renosRadosław Piliszek1-0/+1
One of the renos was causing issues due to a duplicated id. This change makes tox doc8 env lint renos and fixes the offending reno. Change-Id: Id3ae6e144b4261c97726cdec172ea9bef093de9e
2020-12-18Drop lower-constraintsRadosław Piliszek1-6/+0
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: I4c65a428facdf6d4ce28d97a868589aeae4c856e
2020-11-24Merge "docs: add scaffolding for redirects"Zuul1-0/+1
2020-11-02Use TOX_CONSTRAINTS_FILElikui1-1/+1
UPPER_CONSTRAINTS_FILE is old name and deprecated This allows to use lower-constraints file as more readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>. -https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file Change-Id: Ia33b5dcaddee1414b4c79a50595970745d31c8db
2020-10-30Update TOX_CONSTRAINTS_FILElikui1-3/+3
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: I10cf355191f4060eda95c6a8ee3abaaf28d16a74
2020-09-17docs: add scaffolding for redirectsMark Goddard1-0/+1
This allows us to move pages around without breaking links. Change-Id: Id2be1e6aba9fba376cf217b558ca922d8db1da28
2020-09-17bump py37 to py38 in tox.iniwu.chunyang1-1/+1
in 'victoria' cycle, we should test py38 by default. Change-Id: Ic0bfb7f6a8b2123f609e0be0be9945bbf4d73520
2020-09-10Stop install unnecessary packages when run tox -e releasenoteszhoulinhui1-7/+2
requirements.txt is unnecessary when run tox -e releasenotes, releasenotes relative stuffs is in doc/requirements.txt, this ps to remove the requirements.txt from tox.ini and reuse [docs] deps Change-Id: Ia6c51f9ffe1257f16e9bd55fe21cc832b634cbf3
2020-05-17CI: Add ansible-lint to toxMichal Nasiadka1-32/+64
* Reworked tox pep8 into linters job, that runs: - pep8 - bandit - bashate - doc8 - yamllint - ansible-lint (validate-all-files.py + ansible-lint) * Skip E701 - missing galaxy_info in meta and E602 see [1]. * Skip E301 and E503 - followup later in a separate change * Added ansible-role-jobs to zuul.d/project.yaml which will run openstack-tox-linters job in check queue * Fixed remaining style issue * Made tox and docs reference the new env for linters * Dropped pype environment (not supported) [1]: https://github.com/ansible/ansible-lint/issues/457 Change-Id: I494b4b151804aac8173120e6c6e42bc2fdb00234
2020-05-17Enable W503 for flake8 checkgugug1-3/+3
W503 and W504 are incompatible and we need to choose one of them. Existing codes follows W503, so we disable W504. Change-Id: Ic745e956dd332eb0fa49b93c1e6acb12f8a7f26c
2020-04-26Cleanup py27 supportRadosław Piliszek1-1/+0
Removes and/or replaces all mentions of py27. Cleans up obsolete requirements and their lower-constraints. Separates test-requirements. Makes lower-constraints pass outside of CI (MarkupSafe). Adds FIXMEs about some hacky Mocks that may misbehave. Change-Id: Ifc090bf3c1db17d8542ee591c91e8225a597bfe2
2020-04-04Update hacking for Python3Andreas Jaeger1-0/+5
The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found by updated hacking version. Remove hacking and friends from lower-constraints, they are not needed during installation. Change-Id: I7ef5ac8a89e94f5da97780198619b6facc86ecfe
2020-02-29[ussuri][goal] More cleanup for python 2.7 dropGhanshyam Mann1-1/+2
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: Iae7e0bb9e8af52ec3aafba7508305d8692d3c762
2020-02-28CI: Add doc8 linting of release notesMichal Nasiadka1-0/+1
Change-Id: I1439aa923a9129b752abb4acfb88559930b2178a
2020-02-10CI: Fix deploy guide jobsRadosław Piliszek1-2/+0
This fixes files relevant for them because k-a uses common files for both docs and deploy guide. We need this to finally get rid of Rocky mentions despite our recent fixes to docs. Change-Id: I46c564f3d3e53c54148186fbadfd7380c4f2fd30
2019-12-11Get rid of Python 2 supportMarcin Juszkiewicz1-11/+2
2020 is coming, 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-ansible 9.x) is the last release that will support python2.7. [1] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html Implements: blueprint drop-py2-support Change-Id: Ibb3b12a779ecfd424053d0b3e98dac2f21d909bc
2019-11-26CI: Refactor a lotRadosław Piliszek1-6/+0
Separate upgrade logic to is_upgrade job var and rename scenarios to match. Rename "ACTION" to "SCENARIO" (as it is a scenario). Separate testing of dashboard (aka Horizon) and increase its timeout to 5 minutes (CentOS 7 slow as always). Separate initialization of core OpenStack. Use gate setup script from ./tests/ Remove useless tox setupenv. Do not deploy Heat when not really necessary. Change-Id: I4fca319ccc3de7188f8b7b44c9c71321e3899467
2019-10-14tox: Keeping going with docsjacky061-4/+4
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: I405812a0039274139e055c54ab7b451dc753c842
2019-09-17Build pdf docMark Goddard1-0/+8
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