* Use shallow copy of os.environ to update PYTHONPATH value
instead of using '|' operator
Fixes: #84954
(cherry picked from commit 82e4b46)
Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
* [stable-2.18] Use codecov-cli for uploads (#85386)
ci_coverage
ci_complete
(cherry picked from commit 4a03ccbd41)
Co-authored-by: Matt Clay <matt@mystile.com>
* 🧪 Pin codecov-cli deptree used in AZP
PR #85888
`codecov-cli == 11.0.3` allows `click == 8.3.0` in its deps but the latter causes commit auto-discovery breakage in the former. With https://github.com/getsentry/prevent-cli/pull/95, `codecov-cli == 11.2.3` excludes this version so this patch updates the requirement to that.
To prevent this from happening again, the change also makes use of a pip constraint file that pins the entire dependency tree to concrete versions. The constraint file is managed by `pip-tools`.
Refs:
* https://github.com/getsentry/prevent-cli/pull/95
* https://github.com/pallets/click/issues/3066
ci_coverage
ci_complete
(cherry picked from commit 1e572ba5cc)
---------
Co-authored-by: Matt Clay <matt@mystile.com>
* Prevent run_command output truncation or hang
In cases when the selector used to monitor stdout/stderr activates without
data ready to read (a rare but normal condition), a read from a non-blocking
FD can return `None`, which was being conflated with an empty read (EOF)
condition. This caused the selector to be unregistered prematurely,
sometimes resulting in truncated output or hangs. `None` read results
are now excluded from EOF conditions.
* add changelog
---------
(cherry picked from commit 79ddee1)
Co-authored-by: Chris Meyers <chrismeyersfsu@users.noreply.github.com>
Co-authored-by: Matt Davis <nitzmahone@redhat.com>
When a user doesn't exist and user module is used to create the user and the
homedir, adduser is called which parses HOME_MODE from /etc/login.defs, and when
not set calculates the mode from UMASK from the same file.
When a user already exists without homedir, and the user module is used to add a
home dir, it incorrectly ignores HOME_MODE, resulting in a world-readable home
dir when UMASK is not set. This is for example the case in Debian trixie and
later, and likely Ubuntu 25.04 and later.
(cherry picked from commit 3030c79)
Signed-off-by: Lee Garrett <lgarrett@rocketjump.eu>
Co-authored-by: Lee Garrett <leegarrett@users.noreply.github.com>
Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
* Catch ConfigError exception in dnf.py
* Catch ConfigError exception in dnf5.py
* Add changelog fragment
* Remove exception from fail_json
Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
* Remove error catching in dnf5
* Add a test to see dnf5 vs dnf output
* Add newline ending to changelog
---------
Co-authored-by: Martin Krizek <martin.krizek@gmail.com>
* rc-status commands returns unwanted lines with service names
and their status. Skip such lines while parsing service names
* Handle KeyError with exception handling
* Warn user about the missing service name in the given service details
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 8290912eb1)
(cherry picked from commit 9ed7164ed6)
* meta: clear_host_errors, clarify what this applies to
It clears host for selection, but does not change state in the current iterator.
* also update example
(cherry picked from commit 319dca2ea8)
* also update callbcacks, since they override these functions
due to backwards compat _options being taken for CLI
(cherry picked from commit 19f9c66004)
Fixed case in which listing modules for docs failed to get sidecar
(cherry picked from commit 7e495f4b20)
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
* Fix handling FileExistsError, instead of only handling OSError when the human-readable error message is "File exists".
(cherry picked from commit 8e9f5fb9d5)
Co-authored-by: Matt Clay <matt@mystile.com>
* ansible-pull fix adhoc output inconsistencies on changed (#84869)
Two fixes for single bug:
- ignore callback changes for adhoc
- allow 'yaml' change matching
---------
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 4bc4030988)
* missing test play
* tests for other non backed change
---------
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>