Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Change requirements related to running tests against release commit (#…
Browse files Browse the repository at this point in the history
…206)

* Change requirements related to running tests against release commit

* Fix WF

* Fix

* Update collection_requirements.rst

Co-authored-by: Felix Fontein <[email protected]>

* Fix formatting

* Fix formatting

* Cosmetic changes

Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
Andersson007 and felixfontein authored Jun 22, 2022
1 parent b605a63 commit f17da50
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rstlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
sudo pip install rstcheck
- name: run rstcheck
run: rstcheck --report error *.rst
run: rstcheck --report-level error *.rst
8 changes: 4 additions & 4 deletions collection_checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Every comment should say whether the reviewer expects it to be addressed, or whe
**Tests:**

- [ ] passed `ansible-test sanity`
- [ ] if `test/sanity/ignore*.txt` exists, it does not contain error codes listed [here](https://github.com/ansible-collections/overview/blob/main/collection_requirements.rst#ci-testing)
- [ ] if `test/sanity/ignore*.txt` exists, it MUST not contain error codes listed [here](https://github.com/ansible-collections/overview/blob/main/collection_requirements.rst#ci-testing)
- [ ] has CI tests up and running against each of the "major versions" of `ansible-base`/`ansible-core` that the collection supports
- [ ] all CI tests run against every pull request
- [ ] all CI tests run against a commit that releases the collection; if they don't pass, the collection won't be released
- [ ] all CI tests run regularly (nightly, or at least once per week)
- [ ] all CI tests MUST run against every pull request
- [ ] all CI tests MUST run regularly (nightly, or at least once per week)
- [ ] sanity tests MUST run against a commit that releases the collection; if they don't pass, the collection won't be released
8 changes: 4 additions & 4 deletions collection_requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Collections
* MUST be published to `Ansible Galaxy <https://galaxy.ansible.com>`_.
* SHOULD NOT contain any large objects (binaries) comparatively to the current Galaxy tarball size limit of 20 MB like, for example, package installers for testing purposes.
* SHOULD NOT contain any unnecessary files like, for example, temporary files created by development tools.
* MUST only contain objects that follow the :ref:`licensing rules<Licensing>`.
* MUST only contain objects that follow the `Licensing rules <https://github.com/ansible-collections/overview/blob/main/collection_requirements.rst#licensing>`_.

Python Compatibility
====================
Expand Down Expand Up @@ -337,10 +337,10 @@ CI Testing
* Reviewers can block acceptance of a new collection if they don't agree with the ignores.txt entries.

* You MUST run CI against each of the "major versions" (2.10, 2.11, 2.12, etc) of ``ansible-base``/``ansible-core`` that the collection supports. (Usually the ``HEAD`` of the stable-xxx branches.)

* All CI tests MUST run against every pull request and SHOULD pass before merge.
* All CI tests MUST pass for the commit that releases the collection.

* At least sanity tests MUST run against a commit that releases the collection; if they do not pass, the collection will NOT be released.

- If the collection has integration/unit tests, they SHOULD run too; if they do not pass, the errors SHOULD be analyzed to decide whether they should block the release or not.
* All CI tests MUST run regularly (nightly, or at least once per week) to ensure that repositories without regular commits are tested against the latest version of ansible-test from each ansible-base/ansible-core version tested. The results from the regular CI runs MUST be checked regularly.

All of the above can be achieved by using the `GitHub Action template <https://github.com/ansible-collections/collection_template/tree/main/.github/workflows>`_.
Expand Down

0 comments on commit f17da50

Please sign in to comment.