Commit Graph

16 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
rabi e7fcfa1c0c Stop using os_stack module
This redirect does not work or won't work in the future.

Note: This adds ansible-core to test-requirements.txt,
we may need to add requirements.txt and ansible collections
in ansible-collections-requirements.yml in the future.

Change-Id: Iffb41b68283f77050d8073364156cc0aca85559e
2022-10-10 12:10:16 +05:30
Hervé Beraud 792f6216f6 Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].
Removed specific doc requirements from test-requirements.txt.
The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36

Change-Id: Ia9616b9c14d59ff382509086fcbf00f56a0701ea
2021-01-05 10:57:13 +01:00
Andreas Jaeger 962f7a465d Small cleanups
A few cleanups:
* remove docs environment, this repo has not docs
* Cleanup setup.cfg, remove obsolete sections
* Update docs requirements to newer versions working properly with
  python3, releasenotes are build using python3

Change-Id: I721b81e422501b841107d4d2d96458759448a326
2020-05-03 16:11:07 +02: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 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 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
Sorin Sbarnea a472345db1
Repair ansible when calls with jinja2
- adopts official syntax for 'when:' commands
- assures we use current linter which spots when errors
- reverts temporary linter rule disablement
- use parsable output (pep8 like) for ansible-lint

Change-Id: I6eb5719841c2f264e1efed4bf38726f71c840e36
Closes-Bug: #1797838
2018-10-15 19:12:46 +01:00
Quique Llorente 35bbe9600b Unpin ansible-lint
We have a probelm with current yaml version and ansible-lint
TypeError: unbound method construct_mapping() must be called with Constructor instance as first argument (got Loader instance instead)

Related-Bug: 1778865

Change-Id: I6d63bfb7eb06ff79d5f23d1f1b2b05198ec51257
2018-06-27 14:19:30 +02:00
Sagi Shnaidman f159c5a924 Set ansible linter to stable 3.4.21
Set ansible linter to stable version 3.4.21

Change-Id: I9fb9fa6048e46e18d24343b72b8976ca4d55197a
2018-06-17 19:24:59 +03:00
Emilien Macchi 2c5510c409 Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use the
openstackdocstheme.

[0] https://review.openstack.org/#/c/472275/

Change-Id: I94aadd9514aa95e885517d9a5aae8efcc379791f
2017-07-06 19:39:35 +00:00
Chandan Kumar 1554cd0b03 Added script to validate jinja templates
* tox -e validate-jinja
* Added to ci-jobs

Change-Id: I799ec9e586a96800ee592522a0c1af7bd591ca67
2017-03-10 14:10:55 +05:30
Gael Chamoulaud 5533b8f7a1 Adds a Bashate target to tox.ini.
This will now run bashate on all shell scripts. We could ignore the
following list of bashate errors:

- E006: Line longer than 79 columns (as many scripts use jinja
        templating, this is very difficult)
- E040: Syntax error determined using `bash -n` (as many scripts
        use jinja templating, this will often fail and the syntax
        error will be discovered in execution anyway)

Change-Id: I6f6d454ac54a0ac98d8b8a092fa522cba092a592
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2017-02-07 12:23:45 +01:00
Gael Chamoulaud e0df5f7108 Add ReNo support for managing release notes in TripleO-Quickstart-Extras
Add ReNo [1] support to manage release notes
[1] - http://docs.openstack.org/developer/reno/

Change-Id: Ief133240354404d9abdc40e05bb1696c13a6b606
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2017-02-07 12:19:28 +01:00
Attila Darazs 661358a588 Add essential repo files
Also fix ansible-lint errors and disable flake8 checks on the files
within the roles until we fix them.

Change-Id: Iab40c0fea517b2f74b91cab7b0f443de89e453b8
2016-11-22 13:23:57 +01:00