Commit Graph

52788 Commits (4976685a6a2ff1a58e98691d7db8d5eadebfb904)
 

Author SHA1 Message Date
Matt Clay 4976685a6a Remove scheduled CI runs
The ansible-core 2.13 release will be EOL next week with the release of ansible-core 2.16.
2 years ago
Matt Clay d9160f6005 [stable-2.13] ansible-test - Fix parsing of cgroup entries
(cherry picked from commit e933d9d8a6)

Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Matt Clay 9a3ca0b08c [stable-2.13] Fix subversion integration test (#82029)
- Remove dependency on the htpasswd module (and thus passlib)
- Fix setup/teardown of the httpd process
- Fix cleanup of temporary directories.
(cherry picked from commit 09d943445c)

Co-authored-by: Matt Clay <matt@mystile.com>
2 years ago
Matt Clay c8de45e553
ansible-test - Use Azure for Windows 2012/2012-R2 (#81973) 2 years ago
Matt Martz 457baad4c4
Update Ansible release version to v2.13.13.post0. (#81938) 2 years ago
Matt Martz c2b0ea52e2
New release v2.13.13 (#81935) 2 years ago
Jordan Borean 1a9edcd1b6
win_fetch - improve test time by not scanning Win dir (#81884) (#81885)
(cherry picked from commit dfc62589f6)
2 years ago
Matt Martz 5fc7e9c86f
Update Ansible release version to v2.13.13rc1.post0. (#81877) 2 years ago
Matt Martz b8ebc3653d
New release v2.13.13rc1 (#81860) 2 years ago
Sloane Hertel 3f12097a41
Fix reporting role as not found when remote_data is None (#81829) (#81835)
(cherry picked from commit 7fab552563)
2 years ago
Matt Martz 820dae4aff
[stable-2.13] Prevent roles from using symlinks to overwrite files outside of the installation directory (#81780) (#81787)
* [stable-2.13] Prevent roles from using symlinks to overwrite files outside of the installation directory (#81780)

* Sanitize linkname during role installs

* Add tests

* add clog frag.
(cherry picked from commit ddf0311c63)

Co-authored-by: Matt Martz <matt@sivel.net>

* Update syntax for py3.8
2 years ago
Matt Martz d3b531fc73
Update Ansible release version to v2.13.12.post0. (#81686) 2 years ago
Matt Martz a4bab0bae2
New release v2.13.12 (#81683) 2 years ago
Matt Martz 644c1d0f8c
Update Ansible release version to v2.13.12rc1.post0. (#81642) 2 years ago
Matt Martz 551b672247
New release v2.13.12rc1 (#81637) 2 years ago
Matt Martz 590e46c422
[stable-2.13] tarfile: Handle deprecation warning for extract and extractall (#81545) (#81634)
* [stable-2.13] tarfile: Handle deprecation warning for extract and extractall (#81545)

* Python 3.11.4 introduces a new parameter 'filter' in extract and
extractall in tarfile. Handle deprecation warning message emitted
in Python 3.12.
* added probing mechanism in ansible-galaxy code to detect broken
data filter implementation in tarfile.

Fixes: #80832

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit 1cc5efa)

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>

* py3.8 doesn't have functools.cache

---------

Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
2 years ago
Matt Clay fca71e4357
[stable-2.13] ansible-test - Always use managed entry points (#81537). (#81541)
(cherry picked from commit 390e508d27)
2 years ago
Matt Clay a5400d5e92
[stable-2.13] Remove obsolete text from release.py PR template (#81526) (#81529)
(cherry picked from commit 9afaf2216b)
2 years ago
Matt Clay e302f5cdb8
[stable-2.13] Fix f-string whitespace in release script (#81477) (#81480)
(cherry picked from commit 85d3305889)
2 years ago
Matt Clay d05ddfe8bb
[stable-2.13] Clean up release script (#81488) (#81491)
* Enable mypy for the entire packaging directory

* Return CompletedProcess only when capturing output

This allows stdout/stderr on CompletedProcess to be `str` instead of `str | None`.
The unused args on CompletedProcess have been removed.
Overload type hints have been added to reflect these changes.

* Relax return type on ensure_venv

This improves consistency with its usage, since `run` accepts `env` of `dict[str, t.Any]`.
Also removed unnecssary `str()` usage when updating `env`.

* Fix type hint on suppress_when

* Fix callable annotation

* Add type hint for command_parser

PyCharm complains about using a protected member, and also that it can't find the type in the type stubs.
However, mypy properly recognizes the type.

* Avoid unnecessary TypeVar usage.
(cherry picked from commit 47ab59753c)
2 years ago
Sviatoslav Sydorenko 5c7d361b6e
[stable-2.13] Replace FreeBSD 12.{3->4} & 13.{0->1} @ testing (#81498)
* Replace FreeBSD 12.3 w/ 12.4 in CI & ansible-test

FreeBSD 12.3 bootstrap packages stopped being available.

* Replace FreeBSD 13.0 w/ 13.1 in CI & ansible-test
2 years ago
Matt Clay 28fb37d6c2
[stable-2.13] ansible-test - Update source layout detection (#81418) (#81436)
(cherry picked from commit c525514994)
2 years ago
Matt Clay 586392519b
[stable-2.13] Overhaul package-data sanity test (#81427) (#81437)
The sanity test now only inspects the sdist and wheel instead of trying to install the sdist using setup.py..
(cherry picked from commit f894ce89b4)
2 years ago
Matt Clay 6da138c61f
Skip apt_repository test on Ubuntu 18.04 (#81441) 2 years ago
Matt Clay 54a489c396
[stable-2.13] Update update-sanity-requirements.py script (#81424) (#81433)
Frozen requirements can now preserve any explicitly installed package that would normally be omitted, not just setuptools.
(cherry picked from commit dbb3feddaf)
2 years ago
Matt Clay 31d948e1d8
[stable-2.13] Revert "define code owners to support branch-protection rules on docs (#81041)" (#81228) (#81430)
This reverts commit 9117762358.
(cherry picked from commit 7c6564ad0e)
2 years ago
Matt Clay c391cf01e4
[stable-2.13] Clean up MANIFEST.in (#81416)
* Clean up MANIFEST.in (#80688)

* Remove unnecessary MANIFEST.in commands

This eliminates more setuptools warnings during build.

* Sort MANIFEST.in

Now that only include commands are used, the order of the commands no longer effects the build output.

(cherry picked from commit 6e325d9e4d)

* Omit hacking directory from MANIFEST.in (#81245)

* Omit `hacking` directory from `MANIFEST.in`

* Update package-data sanity test

(cherry picked from commit b93a628aed)
2 years ago
Matt Clay 1a22a1be8a
[stable-2.13] Add changelog fragment for docs/examples removal (#81410) (#81413)
(cherry picked from commit 0c03a6bcf6)
2 years ago
Martin Krizek 3999c5bc45
Remove BOTMETA.yml and sanity tests for it (#81198) (#81265)
(cherry picked from commit 39ef570e16)
2 years ago
Matt Clay abab52a7b4
[stable-2.13] Docs removal and other backports (#81409)
* Remove straight.plugin dependency (#80084)

(cherry picked from commit f587856beb)

* Update package-data sanity test (#80344)

The test no longer relies on the Makefile.

(cherry picked from commit 46362bbd27)

* Remove obsolete release bits (#80347)

Releases are now built using the `packaging/release.py` tool.
This makes the `Makefile` and associated files in `packaging/release/` and `packaging/sdist/` obsolete.

(cherry picked from commit 6a66761e0e)

* Use --no-isolation for package-data sanity test (#80377)

The dependencies are already in the sanity test venv. This avoids use of unpinned dependencies and a dependency on a network connection.

(cherry picked from commit 7fcb9960e6)

* Set the minimum setuptools to 45.2.0 (#80649)

Also update the package-data sanity test to use the minimum setuptools version.

(cherry picked from commit 4d25e3d54f)

* Use package_data instead of include_package_data (#80652)

This resolves warnings generated by setuptools such as the following:

_Warning: Package 'ansible.galaxy.data' is absent from the `packages` configuration.

(cherry picked from commit 5ac292e12d)

* Fix os.walk issues in package-data sanity test (#80703)

(cherry picked from commit eea7137449)

* Remove `docs` and `examples` directories (#81011)

* Remove docs dir

* Updates to reflect docs removal

* Fix integration test

* Remove examples dir

* Updates to reflect examples removal

* Remove build_library and build-ansible.py

* Remove refs to build_library and build-ansible.py

* Remove obsolete template

* Remove obsolete template reference

* Remove the now obsolete rstcheck sanity test

(cherry picked from commit 72e038e823)

* Omit pre-built man pages from sdist (#81395)

Since man pages aren't accessible to users after a `pip install`, there's no need to include them in the sdist.
This change makes it trivial to build man pages from source, which makes them much easier to iterate on.
It also simplifies creation and testing of the sdist, since it no longer requires building man pages.

The new `packaging/cli-doc/build.py` script can generate both man pages and RST documentation.
This supports inclusion on the docs site without a dependency on `ansible-core` internals.
Having a single implementation for both simplifies keeping the two formats in sync.

(cherry picked from commit 691c8e8603)
2 years ago
Matt Clay 3e08ed79b0
Fix backport of #81379 (#81387)
Two copies of the file existed in this branch, but only one was updated previously.
2 years ago
Matt Clay 1a71911041
[stable-2.13] Include subcommands in generated man pages (#81378) (#81384)
Sub commands of `ansible-galaxy role` and `ansible-galaxy collection` are now documented.
(cherry picked from commit 081c60b9d3)
2 years ago
Matt Clay dea32ac962
[stable-2.13] Fix misrendered sections in manpage generation (#81381)
This change fixes bugs in the manpage generator that existed since it
was first added.

It exposes CLI `ARGUMENTS` value to manpage templates.

Before this change, the code contained a typo, causing the `for`-loop
iterate over individual characters of the `'ARGUMENTS'` string rather
than iterating over a tuple. A missing comma was at fault.

The updated code gets rid of the `for`-loop and conditionals since it
seems to have been a premature complexity increase and no other things
than `'ARGUMENTS'` were ever added into the broken iterable.

The functional change is that `arguments` is now always present in the
Jinja2 context, unlike being missing sometimes because of the previous
design (not that it was ever present, because of the bug! sigh...)

The Jinja2 templates perform an `{% if arguments %}` check, letting
the template engine silently ignore the missing variable. The clause
was always falsy, meaning that the arguments section was not included
in the manpages for at least the last 6 years. With this fix, it will
be.

This patch also deduplicates calling `opt_doc_list` @ generate_man.

It was called late in the execution, more times than necessary. This
patch makes sure it happens once by putting it at the top of the scope.

It fixes rendering library and inventory in manpages.

The corresponding Jinja2 templates have blocks wrapped with
conditionals like `{% if inventory %}` and `{% if library %}` but said
variables were never injected into the context, nor were they even
deduced on the Python side of the generator. This means that the
conditional clauses were always falsy, never showing the portions of
the manpages.

The Python script has hints for how the `inventory` variable was to be
calculated, which is confirmed through the Git paleontology efforts.

The block of code that references to the `inventory` bit was
incorrectly checking a variable with a list of nested objects for the
presence of a string which was never going to work.

This patch fixes this check by verifying the CLI flag against the
correct variable containing a list of options and exposes it to the
Jinja2 templates.
It also exposes the `library` variable in a similar way.

The block displaying other binaries in Sphinx CLI docs has been
synchronized with the manpage template.
Previously, the current binary was displayed also. This patch gets rid
of the unwanted trailing comma there too.

Finally, the CLI executables list in the manpage template now reuses
the same variable as the RST template that doesn't need any
post-processing in Jinja2.
Before, it was already used in the RST template so this patch aligns
both templates to use the same logic as they got out-of-sync over time.

PR #80450.
(cherry picked from commit a84b3a4e72)

Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
2 years ago
Matt Clay c3dd88e770
[stable-2.13] Fix missing command descriptions in manpages/docs (#81366). (#81372)
(cherry picked from commit 32b388b4ca)
2 years ago
Matt Clay e58f1b47b7
[stable-2.13] Fix command doc lookup in man page generation (#81365) (#81367)
(cherry picked from commit f9d674fcfd)
2 years ago
Matt Clay 94281e77f0
[stable-2.13] Exclude internal options from man pages and docs (#81360) (#81363)
(cherry picked from commit fead654671)
2 years ago
Matt Clay 66f04c276a
[stable-2.13] ansible-test - update module_utils/urls.py unit test to support cryptography >= 41.0.0 (#81296) (#81318)
(cherry picked from commit d20a0c02cc)

Co-authored-by: Sloane Hertel <19572925+s-hertel@users.noreply.github.com>
2 years ago
Matt Clay b203e0a285
[stable-2.13] Convert non-docs *.rst files to *.md (#81217) (#81224)
* [stable-2.13] Convert non-docs *.rst files to *.md (#81217)

* Rename README.rst to README.md

* Change README format from reStructuredText to Markdown

* Fix whitespace in README.md

* Update setup.cfg to use README.md

* Replace changelog placeholder with README.md

* Update package-data sanity test
(cherry picked from commit 38e50c9f81)

Co-authored-by: Matt Clay <matt@mystile.com>

* Remove README.rst from MANIFEST.in
2 years ago
Matt Clay bbf1aacf16
[stable-2.13] Add missing skip entries for selinux module_util (#81305) (#81309)
(cherry picked from commit 18cbfc688b)
2 years ago
Matt Clay 191cdf5ae5
[stable-2.13] ansible-test - Pre-build PyYAML wheels (#81300) (#81311)
* [stable-2.13] ansible-test - Pre-build PyYAML wheels (#81300)

This works around Cython failures when attempting to install PyYAML >= 5.4 <= 6.0..
(cherry picked from commit e964078a83)

Co-authored-by: Matt Clay <matt@mystile.com>

* Skip PEP 517 tests on FreeBSD
2 years ago
Matt Clay 3ad838b86c
[stable-2.13] Disable cron integration test on Alpine (#81301) (#81304)
The tests are now failing due to the lack of `libfaketime` in the Alpine repos.
(cherry picked from commit 261a12b8a9)
2 years ago
Matt Clay 0951694932
Update Ansible release version to v2.13.11.post0. (#81288) 2 years ago
Matt Clay a1bad8755a
New release v2.13.11 (#81285) 2 years ago
Sviatoslav Sydorenko d03bf6430c
Replace `reboot_command` integration test with unit tests (#78956) (#81268)
Co-authored-by: Matt Clay <matt@mystile.com>

(cherry picked from commit b6ebb9d41a)
2 years ago
Matt Clay c8b5d96ee0
[stable-2.13] Use *.md instead of *.rst for test READMEs (#81009). (#81231)
(cherry picked from commit 6ac0ea3567)
2 years ago
Matt Clay 4589e30b02
[stable-2.13] Reorganize CI sanity test matrix (#81004) (#81227)
(cherry picked from commit ff359fa8e1)
2 years ago
Matt Davis 3bce7bc1c5
Update Ansible release version to v2.13.11rc1.post0. (#81211) 2 years ago
Matt Davis dc54ab1ad9
New release v2.13.11rc1 (#81206) 2 years ago
Martin Krizek 58ae119ccf
Re-introduce RHEL 9 modularity testing in CI (#81160) (#81194)
(cherry picked from commit 7b2647f3b2)
2 years ago
Matt Davis b2114ef794
[stable-2.13] define code owners to support branch-protection rules on docs (#81041) (#81045)
* during interim docs/ (and related dirs) split to separate repo, prevent merges that might require a rebase of the target repo
(cherry picked from commit 9117762358)
3 years ago