| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
| |
(cherry picked from commit aacab0633a963e7a89fc1e6ac71cdf06553f96ab)
|
|
|
| |
(cherry picked from commit 4c6aa70662e6f2804686a32bea611a8aa870b363)
|
|
|
|
|
| |
The timestamps are only used by ansible-test, not the junit callback, so this change only impacts ansible-test.
(cherry picked from commit fd341265d001d4e6545ffb2b7d154340cb1f1931)
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix installing signed collections by using the fqcn, version, source, and type as a unique identifier.
Define __hash__ and __eq__ methods to handle Candidate/Requirement comparison excluding signatures which aren't fully populated until install time.
* Remove PinnedCandidateRequests since it is redundant now.
* Fix verifying against a signed remote when the keyring isn't configured
(cherry picked from commit d5e2e7a0a8ca9017a091922648430374539f878b)
|
|
|
|
|
|
|
|
|
|
| |
Instead of using Templar.environment in Templar.do_template for
accessing/mutating the environment, myenv local variable should be used
because it is the environment used for actual templating. It can either
point to Templar.environment or newly created environment overlay.
Fixes #80605
(cherry picked from commit 8cd95a8e664ccd634dc3a95642ef7ad41f007169)
|
|
|
|
|
| |
(#80701)
(cherry picked from commit 54576cd794530768a67bddba2f7450b614611e92)
|
|
|
|
| |
(#80552)
|
|
|
|
|
|
|
| |
* Provide reproducible sdist builds.
* Use reproducible wheel builds.
* Add PyPI artifact checks.
(cherry picked from commit d37678c5ff221ada71afc0cad3ff7b70e0a0ec2f)
|
|
|
|
|
| |
This will avoid issues during bootstrapping caused by breaking changes in setuptools.
(cherry picked from commit abc58c026b2e91af4a2bb57f7bfe21c609bd3de9)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* password lookup, handle ident properly when saved (#80251)
* password lookup, handle ident properly when saved
Currently we format and save ident when present but we didn't account for this when reading the saved file
Also added some more robust error handling.
(cherry picked from commit 0fd88717c953b92ed8a50495d55e630eb5d59166)
* fix try block indent# https://chris.beams.io/posts/git-commit/
* clog
(cherry picked from commit 97c8da77838e93b416c5e700abafa89a8383e950)
* fix bad merge indentation
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Change ansible_job_id format
...to be something that does not resemble float or other type which
value could be changed by literal_eval that jinja2_native uses.
Specifically the format of '%d.%d' is converted from str to float and
then back to float which may result in truncating the number resulting
in the job not being found because the job id does not exist.
(cherry picked from commit 09e0fb3516a793009a1b2ac8bfcc758016a10c6d)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#80274)
* clog frag
* Fix retries so that each explicit call to _call_galaxy is retried for the correct number of attempts. Fixes #80174
* Extend retry logic to common URL related connection errors. Fixes #80170
* Extend retries to downloading artifacts
* Extend param docs for change
* Rework the exception handling
* Don't be overly broad, reduce to TimeoutError, and BadStatusLine for now
* _download_file needs to raise AnsibleError.orig_exc
* Remove unused import
* Add IncompleteRead
* Add socket.timeout for py39
* Add 502 to retry codes
* Move http error code checking first
* Use itertools.tee to replay the backoff_iterator instead of using a callable
* Actually set a CLI default of 60s for timeout, to prevent implicit galaxy from using 10s as default from Request.open
* Import typing
* fix type hints
* Use http.HTTPStatus instead of int HTTP error codes where feasible
* Split exception handling
* Add missing import
---------
(cherry picked from commit 2ae013667ef226635fe521be886efd1bf58cd46f)
[stable-2.14] ansible-galaxy collection install retry improvements (#80180)
* clog frag
* Fix retries so that each explicit call to _call_galaxy is retried for the correct number of attempts. Fixes #80174
* Extend retry logic to common URL related connection errors. Fixes #80170
* Extend retries to downloading artifacts
* Extend param docs for change
* Rework the exception handling
* Don't be overly broad, reduce to TimeoutError, and BadStatusLine for now
* _download_file needs to raise AnsibleError.orig_exc
* Remove unused import
* Add IncompleteRead
* Add socket.timeout for py39
* Add 502 to retry codes
* Move http error code checking first
* Use itertools.tee to replay the backoff_iterator instead of using a callable
* Actually set a CLI default of 60s for timeout, to prevent implicit galaxy from using 10s as default from Request.open
* Import typing
* fix type hints
* Use http.HTTPStatus instead of int HTTP error codes where feasible
* Split exception handling
* Add missing import
---------
.
(cherry picked from commit 2ae013667ef226635fe521be886efd1bf58cd46f)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fix using templated values for include/import role options 'public', 'allow_duplicates', and 'rolespec_validate'
* pass templated values without changing the instance
* Fix templating by setting always_post_validate to True and calling IncludeRole.post_validate() instead
ci_complete
* add changelog
(cherry picked from commit 666188892ed0833e87803a3e80c58923e4cd6bca)
|
|
|
|
|
|
|
| |
* Ansible.Basic - Improve temporary file cleanup process
* Add comment on struct value used
(cherry picked from commit ba4505f5cb2fb52cda450a06679ddea3599e3e70)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Improve Ansible.Basic.cs tempdir uniqueness
The current tempdir naming scheme can result in the same name if the
remote worker starts at the same time as another. By using the process
id it should add enough uniqueness to avoid this situation.
* Fix sanity issues
* Fix up compile issue on older hosts
(cherry picked from commit fb6b90fe4255e9995706905e2a9cde205648c0d2)
|
|
|
|
|
| |
#80506 (#80507) (#80510)
(cherry picked from commit f3774ae)
|
|
|
|
|
| |
(#80502)
(cherry picked from commit e87802cf2c75c5f2578e58ed2edb3e033623cc78)
|
|
|
|
|
|
|
|
|
|
| |
(#80398)
Reduce the number of Galaxy API calls made during dependency resolution by fetching remote signatures afterwards, since these are not used in backtracking.
Reduce the verbosity to `-vvvv` (to match other Galaxy API calls) to see this activity.
Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
(cherry picked from commit 460abe0ceffc5ca99b3cc2f2e3ef07aa2cb225dc)
|
|
|
| |
(cherry picked from commit 0371ea08d6de55635ffcbf94da5ddec0cd809495)
|
|
|
|
|
| |
(#80361)
(cherry picked from commit 5d64024f1ab1283750f2211692970dfa1b351ed5)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Update special_variables.rst (#80210)
The usage of a glossary on this page will allow linking to a specific special variable, like on the glossary page, e.g.: https://docs.ansible.com/ansible/latest/reference_appendices/glossary.html#term-Idempotency
(cherry picked from commit 1491ec8019b064374145dace41b1320e04fb494b)
* uri: improve force_basic_auth documentation (#80211)
Add more details about what "true" and "false" mean for the
force_basic_auth setting. Give example scenarios when clients may want
to use this setting.
(cherry picked from commit fc8203168e964b26478a0f28b0e34d9b34331fde)
* Improve dirname and basename filter doc (#80054)
(cherry picked from commit 93beef053eabdb6ff2a9823bc8d0d1037671b1e3)
* Move Collection requirements to ansible/ansible (#80234)
(cherry picked from commit cba395243454b0a959edea20425618fe7b9be775)
* Add Ansible community 7.4.0 porting guide (#80338)
(cherry picked from commit 29e0a68af251981b97b6c594e52051652ef472d3)
* Add antsibull-changelog and antsibull-docs to other tools and programs page. (#80340)
(cherry picked from commit cf44c84396ee2afdd0258aed1d09d5eecde94d17)
---------
Co-authored-by: Benoît Geeraerts <10222438+b-enoit-be@users.noreply.github.com>
Co-authored-by: Ken Dreyer <kdreyer@redhat.com>
Co-authored-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Co-authored-by: Anwesha Das <anwesha@das.community>
Co-authored-by: Felix Fontein <felix@fontein.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* ansible-doc: fix broken seealso links in text output (#80280)
* Fix broken URLs.
* Also remove auto-generated description for modules outside ansible.builtin.
(cherry picked from commit fafb23094e77a619066a92a7fa99a7045292e473)
* Fix URL processing. (#80295)
(cherry picked from commit 086ae4220957cdb66eee8aa060c151a071f3b9bd)
|
|
|
| |
(cherry picked from commit a6bfa82bd061d1d66e7d67064f2e78774a103b54)
|
|
|
|
|
| |
(#80316)
(cherry picked from commit 93d0253292dc2e66432d96f047b66200a2d2e35b)
|
| |
|
| |
|
|
|
| |
(cherry picked from commit 054aa9215857f376ee4d387339e6b82bcc14b437)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#80261)
* [stable-2.14] 📦 Switch sdist build-system to pure setuptools (#80255)
This patch modifies the in-tree build backend to build sdists that swap
out pointers to it in the `pyproject.toml`'s `[build-system]` section.
The effect of this is that the first build from source (for example,
from a Git checkout) uses our PEP 517 in-tree build backend. But the
produced tarball has `build-backend` set to `setuptools.build_meta`
which is the native build backend of `setuptools`. So any following
builds from that sdist will skip using the in-tree build backend,
calling the setuptools' one.
The good news is that if the first build generated the manpages, they
will be included and won't go anywhere even though, a different build
system is in place.
Combined with #80253, this will make sure not to modify the current
source checkout on that first build.
Co-authored-by: Matt Clay <matt@mystile.com>
(cherry picked from commit 7097df3eed979446830fc579613ffb9b7e7c19bf)
Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
* Make PEP 517 mutation tests use pinned old setuptools (#80262)
* Pin setuptools to lowest supported @ PEP 517 test
This allows catching the behavior of builds under old setuptools.
* Stop invoking `setup.py install` in tests
This is not the part we care about since it involves dealing with the
external runtime dependencies rather than building our source
distribution.
(cherry picked from commit eebfd71a6da396b011e664604c9991543205d780)
---------
Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
|
|
|
|
|
|
| |
(cherry picked from commit 888abf5d6e13880ba82d02c5f8a57ca1f90a992f)
Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
... and set default value of an attribute on an object
only in NonInheritableFA.
Fixes #79777
ci_complete
(cherry picked from commit 6c3d2a4e51df560e350d1ca3d6a039bf0e05f2ab)
|
|
|
|
|
|
| |
The wrap_var is done in do_template for all concat functions after their
return.
(cherry picked from commit 694f12d01b17e4aba50bda55546edada6e79b5a8)
|
|
|
|
|
|
|
|
|
| |
* Don't create dest directory in check mode
uncomment existing test
Fix checking for file attribute changes in check mode and add a test
(cherry picked from commit b7a0e0d79278906c57c6dfc637d0e0b09b45db34)
|
|
|
|
|
| |
* catch GalaxyError instead of its base class to ensure it will have a http_error attribute
(cherry picked from commit 6165dfea4040fdac9d73e9f415f3da9b0b8a3591)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* improve doc dependency install steps (#80120)
(cherry picked from commit 352010f9c322f5cfd1f61d5e66cd8eb7fa0b49b6)
* docs: automatic `always` tag in gather_facts (#80052)
(cherry picked from commit 3216e071c7024084045ae1528bad8d66faf2512a)
* docsite requirements path (#80134)
(cherry picked from commit 1055803c3a812189a1133297f7f5468579283f86)
* Adjust release schedule docs to four weeks (#80166)
(cherry picked from commit 7ce951ff48baaf53feab1ca09930281706813c70)
* Fix spelling and grammar in subelements filter doc (#80137)
(cherry picked from commit 12c1891ce65ade57551560836d371c3c0af5c47a)
* Fixed typo (#80184)
`uvault` should be `unvault`
(cherry picked from commit cb2180e286eb20af32ae5df5c942f2ee989338e2)
* Document debugging conditionals (#80239)
##### SUMMARY
Add a section to the docs describing how to debug conditional statements - how to get Ansible to show you whether your `when:` clause evaluates to `true` or `false`.
I ran into trouble with this and couldn't find anything in the docs. Thought I'd add it.
##### ISSUE TYPE
- Docs Pull Request
+label: docsite_pr
(cherry picked from commit 507fd1bd60f529681c96fa526ffa7835e122ddcb)
* Update connection.rst (#80194)
(cherry picked from commit 0937cc486219663b6b6e6a178ef40798217864fa)
---------
Co-authored-by: Don Naro <dnaro@redhat.com>
Co-authored-by: Jairo Llopis <973709+yajo@users.noreply.github.com>
Co-authored-by: Kristian Heljas <11139388+kristianheljas@users.noreply.github.com>
Co-authored-by: Zachary Peschke <8718570+zpeschke@users.noreply.github.com>
Co-authored-by: Harmdhast <pandemonium.harmdhast@gmail.com>
Co-authored-by: Alicia Cozine <879121+acozine@users.noreply.github.com>
Co-authored-by: Esther Christopher <estheradamuchris@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add _convert_rst_in_template_to_manpage arg types
* 📦 Make manpage build dependencies conditional
Previously, said dependencies were declared as unconditionally
required even when manpages not needed to be built. This patch
Makes it so they are only required when needed.
* Correct _generate_rst_in_templates returned type
It was marked as Path before this patch but in fact, it's iterable of
paths.
* 🎨 Convert RST to manpage in-memory @ PEP 517
Previously, the automation was writing a temporary templated RST on
disk and calling a helper CLI script on that. But with this change, it
happens with less unnecessary I/O.
Co-Authored-By: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
* 📦Expose sdist manpage build deps unconditionally
Due to a bug in pypa/build, the `get_requires_for_build_sdist()` hook
is always invoked with `config_settings=None`. This means that we
cannot conditionally extend build requirements in said hook.
As a workaround, this patch makes hook pretend that `--built-manpages`
is always passed.
Ref: https://github.com/pypa/build/issues/559.
---------
Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
(cherry picked from commit 67bafafbc0d61751d2ec10b0aeccb6b01482a074)
This is a backport of #80098.
|
|
|
|
|
|
|
| |
This change allows ansible-test to work with newer versions of git on AZP..
(cherry picked from commit bad8843124a50493141a3e3d7920353239021389)
Co-authored-by: Matt Clay <matt@mystile.com>
|
|
|
|
|
|
|
| |
Scripts previously under `test/utils/shippable/` are now under `.azure-pipelines/commands/` instead.
(cherry picked from commit f47bc03599eedc48753d2cd5e1bea177f35e6133)
Co-authored-by: Matt Clay <matt@mystile.com>
|
|
|
|
|
|
| |
(cherry picked from commit 31658031ed40f3db002b690b436b793634c2b5e7)
Co-authored-by: Matt Clay <matt@mystile.com>
|
|
|
|
|
|
|
|
| |
- Support loading of vendored Python packages.
- Exclude vendored Python packages from payloads.
(cherry picked from commit 6bfe6b899a4881ebc065834a43a26e123d7fdab3)
Co-authored-by: Matt Clay <matt@mystile.com>
|
|
|
|
|
|
|
| |
Always indicate the Python version being used before installing requirements.
(cherry picked from commit 5e3db6e44169aa88cd027f469eea96f1f17fea95)
Co-authored-by: Matt Clay <matt@mystile.com>
|
|
|
|
|
|
|
| |
Integration test target prefixes defined in a `tests/integration/target-prefixes.{group}` file can now contain an underscore (`_`) character.
(cherry picked from commit e6cffce0eb58ba54c097f4ce7111bb97e6805051)
Co-authored-by: Matt Clay <matt@mystile.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* ansible-test - Add blank lines after docstrings
* ansible-test - Preserve formatting of arg pairs
* ansible-test - Remove unused string
* ansible-test - Remove pointless dict() usage
* ansible-test - Clean up initial func arg indenting
* ansible-test - Clean up constructor arg indenting
* ansible-test - Clean up func arg wrapping
* ansible-test - Clean up comma and paren placement
(cherry picked from commit 715ab99462b1799f4a0c1caeddf161e930adf13f)
|