Commit Graph

18 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
Douglas Viroel 941bbcdfff Fixes for ansible-lint in tox linter job
This patch updated ansible-lint version on pre-commit configuration
file and updates tox.ini to install ansible and collections needed for
ansible-lint validation.

Closes-Bug: #2019875

Change-Id: Ib68f5b26ea5672d294709a8a1d7e725133be0203
2023-05-16 14:46:18 -03:00
Takashi Kajinami 59c2c84214 Pull flake8 from Github
It seems flake8 is no longer available in Gitlab. This change switches
the source from Gitlab to Github to avoid the following failure.

fatal: could not read Username for 'https://gitlab.com': No such device
or address

This also makes sure that functional jobs are skipped when pre commit
config is changed, to avoid the failing job graph freeze when updating
only .pre-commit-config.yaml.

Closes-Bug: #1996668
Change-Id: I79143651e432cb4a62dafdb94c839d0d782b4f9f
2022-11-16 11:02:03 +09:00
frenzyfriday 1bb010095c Updating the linters to their newest versions
Newest version as of now are
- black 22.10.0 https://github.com/psf/black/tags
- flake8 5.0.4 https://gitlab.com/pycqa/flake8/tags
- pre-commit-hooks v4.3.0 https://github.com/pre-commit/pre-commit-hooks/tags
- bashate 2.1.1 https://github.com/openstack-dev/bashate/tags

Did not update ansible-lint as v6.8.3 throws error: https://zuul.opendev.org/t/openstack/build/e73f6e52a3694c1a9027883ab0e20c04

Change-Id: Ia6a06a6b180f65f2e9644ca482eb40f76eeb78b4
2022-10-27 14:45:28 +02:00
Marios Andreou efbc9522ba Revert "Adds tripleo-repos/-operator-ansible collection push jobs"
This reverts commit 74be796580.
We are seeing a strange zuul error at [1] but since we ended up
not using this we should just remove it. We are consuming the
get-hash from source instead of from galaxy [2]

[1] https://review.opendev.org/c/openstack/tripleo-ci/+/839518/8#message-23c7677c86b0457399ecc41e41ff97834a3f361b
[2] 1b31dbca29/roles/tripleo-build-jobs-repos/tasks/main.yaml (L25)

Change-Id: I915796ef3d42eb0c60c5184e91e1f87f429f8dfe
2022-05-10 10:55:22 +03:00
Marios Andreou 9ff3056e85 Bump black to 22.3.0 to fix deps issue (click)
As described in related-bug new release of click
broke the openstack-tox-linters job. Bumping to
latest version of black fixes it.

Also adds irrelevant files
to layout to address freeze issue seen at [1]

[1] https://review.opendev.org/c/openstack/tripleo-ci/+/835547/4#message-f3307ccba64ac124fe6ef497c151e66f5731a0e1
Related-Bug: 1966879

Change-Id: I62d101a1fa6c55d047bb328565cfec443e2e496f
2022-03-29 17:00:41 +00:00
Sagi Shnaidman a7d162e502 Fix ansible-lint failure
Update version to newest one
Change-Id: Ieaadeef84781b0eef3e842f44bb21f6348034e09
2022-01-10 16:26:18 +02:00
Marios Andreou 74be796580 Adds tripleo-repos/-operator-ansible collection push jobs
In [1] a release job was added for tripleo-operator. Now we need
to add the same for the tripleo-repos collection. This proposes
we move the playbook, secret and job definition to here so that
both jobs can share them. Then the jobs can be wired up into their
respective repo zuul layout files.

Once we are happy with testing (this needs to merge so we can test)
we can merge [2] and remove the duplication in t-o-a.

[1] https://review.opendev.org/c/openstack/tripleo-operator-ansible/+/803588
[2] https://review.opendev.org/c/openstack/tripleo-operator-ansible/+/810259
Change-Id: I09b24c4782db2e7cad117fb98a70a1c3d36a4301
2021-10-11 10:08:49 +00: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 aa581590b3 Upgrade linters
Change-Id: Ie9a560a62a20b97b9a94968e627c834ea5529472
2021-02-10 15:04:16 +00:00
Sagi Shnaidman 820e3fe31e Fix linters for tripleo-ci
Ansible-lint fails after ansible 2.10 was released,
limit its dependency to ansible 2.9
Change-Id: I54c2443be11a9bd86b8e8981fbf3a540a5105362
2020-09-24 13:49:57 +03:00
Sorin Sbarnea f78da2885a lint: enable black
Assures consistent formatting of our python codebase without having
to rely on humans to do it, or to debate during reviews.

Change-Id: I1e62cc755fa60e453dea865f436241ecae330771
2020-03-24 13:17:31 +00:00
Sorin Sbarnea b6611fd03a Fixed flake8 and broken gate
Flake8 went broken recently, adopts correct calling method to avoid
regression and fixes broken rules.

Also removes openstack-tox-pep8 from gate which was a guaranteed
failure when triggered as pep8 was removed.

Change-Id: Iba03d3051952f461bb16299a6d32475b2be43041
2020-01-27 19:21:48 +00:00
Sorin Sbarnea 6633e1fef3 lint: fix role detection in ansible-lint
Bump ansible-lint to 4.1.1a6 as the previous version had a bug which
made it detect only some roles. This version finds 7 roles instead of
3. They are in good shape so no other change is needed.

Change-Id: I01f052d8203180992dedf3917616c773e4bd5c18
2019-11-26 09:16:53 +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 747f4b87c9 fixed linters
* implemented workaround for https://github.com/ansible/ansible-lint/issues/590
* bumped linter versions
* added missing proxy variables to passenv
* removed uneccesary use of hacking with flake8 hook

Change-Id: I3f50f27bf349be6ceb5dc303e206ec83abe3c458
2019-10-17 12:42:16 +01:00
Sorin Sbarnea 8ce78d3a18 Bumped and hardened linting
- Fixes one bashate problem
- Updates linters
- Addressed most of the skip_list exclusions and removed them

Assure the `pre-commit run -a` is always run on all files instead
of old behavior which allowed linting to be broken when merging.

Bumping operation is mostly automated, we just need to run:
`pre-commit autoupdate` from time to time and fix eventual issues.

Change-Id: If75a3e49a9d570e744063ea35ea41919261ad876
2019-06-26 12:31:29 +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