Commit Graph

19 Commits

Author SHA1 Message Date
Ghanshyam Mann 72ea117f61 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

Change-Id: Ic549bdcc76a5e12a0104143fbe79fd0db2c866b0
2024-02-24 11:44:35 -08:00
Sagi Shnaidman c63d021a99 Fix ansible-lint failure
Update to newest version

Change-Id: I884a12f5c408d238e37a959f56609c823522d40d
2022-01-10 22:28:47 +00:00
Sagi Shnaidman dbd36eebc7 Run CI with Ansible 2.11 (extras)
Depends-On: https://review.opendev.org/c/openstack/tripleo-quickstart/+/769480

Change-Id: I1669faf68853e75ef36a87feb5f1c083d15da804
2021-11-16 17:10:33 +00:00
wes hayutin 37109c55aa Revert "Upgrade linters (ansible-lint v5)"
This reverts commit ac93fbbb47.

Reason for revert: breaks default install path for quickstart

Change-Id: I7d513d1bffdfd4293f199c38216ceb00343e06c5
2021-03-12 17:50:42 +00:00
Sorin Sbarnea ac93fbbb47 Upgrade linters (ansible-lint v5)
Change-Id: I75562efd62fff9739d32f8b1b92e7826120e9d1a
2021-03-11 13:48:54 +00:00
Sorin Sbarnea 28b62e71f9 Bump linters
Change-Id: I33d1ed7941b5c56475bf8fcf678acdf6f11a7b6f
2020-11-09 14:41:17 +00:00
Sagi Shnaidman 2f335749c9 Fix ansible lint for python 3.8
As linters jobs are failing with the issue [1].

Don't use ansible 2.10.0 It seems to have
broken linters and molecule jobs,
let's not use it till we fix those.

[1]: https://zuul.opendev.org/t/openstack/build/2b50f5e021634cc4abfbab46181cd310
[2]: https://groups.google.com/g/ansible-project/c/yFnMgbjqYnU/m/4nTCm4w1BAAJ

Change-Id: I5d16f7e09116116830cbbd5c376c0b87cbcea087
2020-09-24 15:49:15 +05:30
Zuul 2e001a3b11 Merge "lint: enabled whitespace fixes" 2020-01-11 21:29:34 +00:00
Sorin Sbarnea 01c3637a88 lint: bump flake8
- Use recommended flake8 setup in pre-commit
- Removes use of hacking as pre-commit provides the lock-in
- Bumps flake8 to latest stable
- Resolves two ignored rules

Change-Id: I98f382cd2b72345748e40106624c73039e0f0f2c
2020-01-10 13:44:42 +00:00
Sorin Sbarnea 16649df878 lint: bumping to latest versions
- run `pre-commit autoupdate` and fixed new issues
- adopted newer pre-commit config for ansible-lint 4.2.0+
- fixed some reported broken rules
- temporary disabled few rules, just to contain the size of of review,
  planning to drop/fix them in follow-ups.

Change-Id: I807ba4e919527be56c85ec72d0f4c7148f04e994
2020-01-05 19:36:36 +00:00
Sorin Sbarnea fce23f7646 lint: enabled whitespace fixes
Adds two checks that were used in order repos (liketq)but not on this
one.

Change-Id: I4ccaf3dc78777b4b661fa17382f2feef8eb0d03e
2020-01-05 14:07:37 +00:00
Sorin Sbarnea 1c6b947bf2 ansible-lint: removed skip of 206
- Fixes 206 errors and removed the skip.
- Also replaces revision with latest tag (pushed today)

Bug: https://bugs.launchpad.net/tripleo/+bug/1848512
Change-Id: I69d75ba9de8ab0e91eb45fd4f9febfdb28cdcb3a
2019-10-25 17:15:40 +01:00
Sorin Sbarnea e702a6b97f ansible-lint: re-enabled
Previously ansible-lint was running without any rules, so mainly as good
as not runnign at all. Renabling it required updating the list of skips,
but we will address these in follow-ups.

This also bumps ansible-lint to the master version which is not affected
by the installation bug.

Bug: https://bugs.launchpad.net/tripleo/+bug/1848512
Change-Id: I3e78dbf6d3a09aea9430a01e9553d31f8171235a
2019-10-23 12:12:49 +01:00
Sorin Sbarnea 6bd8a4df1e fixed linters
- workaround for ansible-lint failure with new setuptools
- bumping linters
- consolidated linters configuration

Partial-Bug: https://bugs.launchpad.net/tripleo/+bug/1848512
Change-Id: Ic763d5b39d5059526ee5de99fec82bec7524d460
2019-10-18 10:42:29 +01:00
Sorin Sbarnea ebcf22bb69 Migrate ansible-lint to pre-commit
* Kept old specific linter tox targets for backwards compatibility,
  so developer can easily run a single linter if desired.
* Reused tox linters virtualenvs to avoid wasting space
* Moved linter config to their official location which enables
  developer to call them in any way he wants (like his IDE)
* Updates yamllint to its newer version which supports strict
* Fixed yamllint errors
* Used parsable output format on yamllint which is more consistent
  with other tools, being also recognized by IDEs and terminals.

Change-Id: I2bd44feb0a221dcd6f5402e070cf38b31fd8ac97
Depends-On: https://review.openstack.org/#/c/621930/
Story: https://tree.taiga.io/project/tripleo-ci-board/task/381
2018-12-06 20:11:28 +00:00
Sorin Sbarnea 72141b7fab Adopt yamllint strict linting
Upgrades yamllint to latest version and adots use of its strict
checking.

Fix all known problems reported by yamllint so we don't have to do
that while touching these files.

Change-Id: I4bdc520d9e2aff086c4b463718bc1e053261a4f5
Story: https://tree.taiga.io/project/tripleo-ci-board/task/381
2018-11-26 12:37:21 +00:00
Sorin Sbarnea cf56a554db Migrate flake8 to pre-commit
* Start running flake8 and ansible-lint via pre-commit
* Bumped hacking version to last release and fixed new errors

Change-Id: Iefe8794abba70660559fcb8cba12dc0b41737882
Story: https://tree.taiga.io/project/tripleo-ci-board/task/381
2018-11-20 15:38:35 +00:00
Sorin Sbarnea baf8392455 Harden yaml linting on modified files
Allows us to slowly adopt yamllint by having to fix only the files
we would be touching. Once we lower the amount of differences we
can switch it to run on all files.

In addition to having a more consistent code-style this solves
*recurring* bugs like duplicate dictionary keys, like the one
fixes in this change. Only few weeks ago we had to fix a similar bug.

Change-Id: I2ef275700b420a0f700613568e43576079cd4d03
2018-11-14 20:55:47 +00:00
Sorin Sbarnea 1c6cfa1e46 Run bashate via pre-commit
Migrates bashate linting task to pre-commit in order to allow fast
and transparent execution before uploading changes to gerrit.

Other linters can be run as well, including flake8 and ansible-linter.
This also lowers the footprint on developer machines because each
linter/version is stored only once on disk, regardless how many
repositories are using it.

Only action needed for enabling pre-commit as a developer is to
run `pip install pre-commit`, everything else is done transparently
after.

Partial-Bug: #1786286
Change-Id: I6ad834bbfbaf7645c542e4f922e89bc4449247c3
2018-10-16 18:28:23 +01:00