Commit Graph

20 Commits

Author SHA1 Message Date
Ghanshyam Mann a606c60efc Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Depends-On: https://review.opendev.org/c/openstack/ansible-role-collect-logs/+/910044
Depends-On: https://review.opendev.org/c/openstack/neutron/+/910099

Change-Id: I338ed19678cf4a6248c46551bdf9cb23abc511bd
2024-02-24 20:22:39 +00:00
Arx Cruz 0c2cf3e63c Install dataclasses only for python version < 3.7
According [1] the dataclasses is already included in python 3.7 and
foward versions. Attempt to install it fails because the package
doesn't exist. This patch fix the test-requirements.txt to only
install it when python version is lower than 3.7.

1 - https://github.com/ericvsmith/dataclasses

Closes-Bug: #1960603
Change-Id: Iab540e69b698205cbb9c75061313aad9d9c2d3c4
2022-02-11 10:50:29 +01:00
Sagi Shnaidman bc1849b3e3 Set strict versions of molecule and its deps
In order to prevent future bugs with new molecule and its deps
versions set strict versions in requirements.
Change-Id: I92d6f34817789c9352a4b3513a14467acc2a7621
2022-01-13 14:12:26 +02:00
Sagi Shnaidman 4f5f287f27 Bump ansible version to fix molecule job
Install ansible which contains all required collections, since
it failed with new ansible-compat module.
Closes-Bug: #1957116

Change-Id: Id8b24b24e9540f2aa20128e2ce40837e4e525bd2
2022-01-13 10:47:22 +02:00
Ronelle Landy de398e6b1d Lock versions of ansible-compat and identify
tripleo-tox-molecule started failing with the new releases
of ansible-compat-1.0.0 and identify-2.4.3.

This patch locks to previous versions to avoid
the failures until addressed.

Change-Id: I0de852f389979f0e33b9506cdf17712ca4883522
Related-Bug: #1957116
2022-01-11 17:15:59 -05:00
Sagi Shnaidman 3e7254fb2d Fix tripleo tox molecule job
Remove for now "containers" driver and use "docker", since it
conflicts with podman.
Closes-Bug: #1952618
Change-Id: Iaed4f3f74d34e7fc7cd1dd424f551ad090601019
2021-11-30 11:21:38 +02:00
Sorin Sbarnea 599c6aa101 Future proof ansible test code
- upgrade ansible-lint and fix reported issues
- allow us to test code using newer versions of ansible
- `yaml` callback was removed
- ini_file module is no longer shipped with code

Change-Id: I899fc736da88de337fd4ee62535755e70d61d63c
2021-07-23 16:48:34 +01:00
Sorin Sbarnea 29dbd915ec Remove EPEL from test images
Closes-Bug: #1933193
Change-Id: I4f032471a1b1ab7fbf1051a4e3d8f85870f31dcc
2021-06-23 17:02:33 +01:00
Wes Hayutin 2d55b124e1 ensure molecule runs on centos8
define the nodeset for tox-molecule jobs

Closes-Bug: 1908328
Change-Id: Ie0aa4cca983d45c959611e0e93effb4b21a69488
2021-01-29 16:12:00 +00:00
Chandan Kumar (raukadah) 0ffe0ebc05 Restrict pytest-molecule to < 1.3.1
With pytest-molecule==1.3.1, openstack-tox-molecule
tests fail with:
ImportError: cannot import name 'ansible_version'

Locking the pytest-molecule until the version bug is
addressed.

Add ansible for test-requirements.tx and install
molecule>=3.0,<3.1 so that all work toegther.

Closes-Bug: #1900033

Change-Id: I0eaf402066f1bb0257ea404926db6bc98ad268b9
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
2020-10-16 09:53:38 +00:00
Chandan Kumar (raukadah) 41aafa02d7 Remove pprint from test-requirements.txt
pprint is a python standard library shipped with the python
itself. There is no package available on pypi and not used
within tripleo-ci codebase. So removing it.

If third party deps is using it, it will be consumed from
Python3 standard library.

Closes-Bug: #1891971

Change-Id: I245a4dba477b42aedce419e45e726dec817cd572
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
2020-08-18 11:36:52 +05:30
Hervé Beraud e025b60f1a Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: Iba639e105ef6d8d9223967863ec6ac5d971be58f
2020-06-11 10:12:54 +02:00
Sorin Sbarnea e5217e01a4 Refactored tox jobs
- assure we test triple-jobs-gerrit.py file
- fix division by zero bug with above file
- simplified tox.ini file
- prevent accidental regression on CI by checking number of passed tests
- removed test_molecule.py file which was the precursor of what later
  become pytest-molecule

Change-Id: Id6ffb9df88a376bcd3c8a0d77b2d378fca8da115
2020-03-27 13:39:35 +00:00
Sorin Sbarnea 7b84c23443 lint: maintenance chore
- reverted previours workarounds
- assures we run ansible-lint on our files
- bumped linters
- fixed new problems found by the linters

Change-Id: I7812fcfd17569b0c438f58bec73ab0f4b07e625c
2019-11-11 18:01:00 +00:00
Sorin Sbarnea f39cd8a9c3 Make pytest run generate html reports
Improve readability of pytest executions by producing html reports
which are also advertised by zuul, saving user time.

Change-Id: I306ad28c855c59f3d575da7a6132782ce02966d7
2019-04-16 09:22:07 +00:00
Sorin Sbarnea be9d4d6d2b Refactored tox.ini to ease usage for developer and CI
* Fixes ocassionally pre-commit linting was broken after a merge (-a)
  By always running on all files we avoid this rare case from happening.
  As seen on https://review.openstack.org/#/c/636160/55

* Fix minor bashare identation error that slipped in due to previous
  issue fix.

* Adds .eggs/ to ignore

* Moves whitelist_externals at top level to simplify tox.ini file

* Adds missing file patterns for tox py27/py35 job

* Avoids repetition of file patterns between py27/py37 jobs.

* removed pyflakes as this is included in flake8

* Running just "tox" now works even if developer has alternative python
  versions like py36/py37 instead of py35. No impact on CI where job
  is forcing use of specific interpreter.

* Remove bindep tox env and include bindep run as part of unittest
  environments. This will assure it runs on CI, as it previously din't.

Change-Id: Ia8f98fc0fda18203be3c17d4fdb93d33ca244dc4
2019-04-03 14:53:01 +01:00
Sorin Sbarnea ed27a979d5 Adopt use of pre-commit linting
Follows the same configuration that was used on
tripleo-quickstart-extras and documented use on tripleo-docs.

Change-Id: Iba8a2db92137f9f6ad28f498627eb1b87039d99f
Story: https://tree.taiga.io/project/tripleo-ci-board/task/381
2018-12-14 15:50:06 +00:00
John Trowbridge 53e4092038 Add CLI argument parser and YAML file parser
This adds a CLI interface with the following options:
  --stable-release
  --featureset-file
  --output-file
  --log-file

This also adds the code and tests for the YAML file
parsing. I tried adding a specific error case for
when the YAML file fails to parse vs the more generic
case when the file just cannot be opened. However,
mock would not behave for testing the specific case.

We log and raise the exception in both cases though,
and the tests cover both as well.

Change-Id: I0834a0e9b3193c664b377ae7e066fe15239bbfb1
2018-05-18 14:35:41 +00:00
John Trowbridge d0bb823d0c Add python script to dynamically compose releases
Currently, we do this in a combination of bash in this
repo and the release files themselves. However, as we begin
to support more different upgrade scenarios, this has proven
to be difficult to maintain.

Instead, we will use this python script to create a dictionary
of releases which describes which release will be used at each
point in the deploy: undercloud_install, undercloud_upgrade,
overcloud_deploy, and overcloud_upgrade.

This commit only provides an intial skeleton to work from.
Follow-up commits will provide:

  1. The ability to get a DLRN hash for each of the above breakpoints
  2. A CLI for the tool so it can be called from the TOCI scripts
  3. The ability to parse a featureset config for upgrade variables
  4. The ability to output the dictionary for consumption by TOCI scripts

Change-Id: Ibf61d7d12230f6714eb7dad91169aa043f5f8417
2018-05-16 11:47:27 +02:00
Dan Prince a4f7707364 Add setup/tox/requirements files
This patch adds files so that tripleo-ci can run
pep8 tests, and also be capable of running the
CI status report in a tox environment.

Pep8 tests are currently failing... those will be fixed
in a follow up patch.

Change-Id: Ifdfb0a8f3db0d53097b871408203448266145d50
2015-09-28 10:18:38 -04:00