GNU bug report logs -
#66766
[PATCH 0/3] fix and update ansible to 8.5.0
Previous Next
Reported by: Jack Hill <jackhill <at> jackhill.us>
Date: Thu, 26 Oct 2023 18:37:02 UTC
Severity: normal
Tags: patch
Done: Christopher Baines <mail <at> cbaines.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 66766 in the body.
You can then email your comments to 66766 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#66766
; Package
guix-patches
.
(Thu, 26 Oct 2023 18:37:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jack Hill <jackhill <at> jackhill.us>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 26 Oct 2023 18:37:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi Guix,
These patches update ansible-core and ansible to their latest releases.
Currently ansible-core doesn't build, so that is also fixed.
In ansible-core I've enabled some tests that were marked as failing
before, but now pass. Also, if I just run ansible-test without specifying
which copy to run, the one on PATH didn't work, and printed messages like
"""
Configured locale: en_US.UTF-8
FATAL: The current working directory must be within the source tree being tested.
Testing an Ansible collection: {...}/ansible_collections/{namespace}/{collection}/
Example #1: community.general -> ~/code/ansible_collections/community/general/
Example #2: ansible.util -> ~/.ansible/collections/ansible_collections/ansible/util/
Current working directory: /tmp/guix-build-ansible-core-2.15.5.drv-0/ansible-core-2.15.5/
No "ansible_collections" parent directory was found.
Cannot test "/tmp/guix-build-ansible-core-2.15.5.drv-0/ansible-core-2.15.5" with ansible-test from "/gnu/store/56zvvfavw59v57wi0c3lvwp27fjswa8l-ansible-core-2.15.5/lib/python3.10/site-packages/ansible_test".
Did you intend to run "/tmp/guix-build-ansible-core-2.15.5.drv-0/ansible-core-2.15.5/bin/ansible-test" instead?
"""
So far, so good, but I'm not sure if this is yet ready to merge. Other
than running `ansible --version` I haven't had a chance to test it. I'd
like to use it to create a back, but with `guix pack -RR ansible-core
ansible glibc-locales bash` running `ansible --version` on a CentOS 7 system
prints:
"""
ERROR: Ansible could not initialize the preferred locale: unsupported locale setting
"""
Also, it seems like the really useful commands are provided by
ansible-core and not ansible, so I'm not sure if the former should be
propagated in the latter? Maybe there is some other packaging bug?
Nevertheless, I think these changes are definitely an improvement over
what we have now, so I wanted to share them to get feedback and maybe find
a collaborator.
Jack Hill (3):
gnu: ansible-core: Update to 2.15.5 and fix tests.
gnu: Remove python-resolvelib <at> 0.5.
gnu: ansible: Update to 8.5.0.
gnu/packages/admin.scm | 20 ++++++--------------
gnu/packages/python-xyz.scm | 16 ----------------
2 files changed, 6 insertions(+), 30 deletions(-)
base-commit: cbd20d627497053871db863970c07d93c7081786
--
2.41.0
Information forwarded
to
lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org
:
bug#66766
; Package
guix-patches
.
(Thu, 26 Oct 2023 18:40:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 66766 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python-xyz.scm (python-resolvelib-0.5): Delete
variable. This was only used by ansible-core which can now use the
newer version.
Change-Id: Ic40e21561807ed5faae466e13193892e4f9aa6ae
---
gnu/packages/python-xyz.scm | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 65c23cb318..300a7b2713 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13745,22 +13745,6 @@ (define-public python-resolvelib
includes dependency resolution logic.")
(license license:isc)))
-;;; This older version is required by ansible-core.
-(define-public python-resolvelib-0.5
- (package/inherit python-resolvelib
- (name "python-resolvelib")
- (version "0.5.4")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/sarugaku/resolvelib")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0697y330sqhiclk25v151qxg7aixzpj434lbg5qib0qlna5zg9la"))))))
-
(define-public python-commonmark
(package
(name "python-commonmark")
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#66766
; Package
guix-patches
.
(Thu, 26 Oct 2023 18:40:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 66766 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/admin.scm (ansible): Update to 8.5.0.
Change-Id: I38ac84a0945f3ba10e13246cf8ae95c3795b52b3
---
gnu/packages/admin.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index c1327d54a5..5e0e0d9b52 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2973,13 +2973,13 @@ (define-public ansible-core
(define-public ansible
(package
(name "ansible")
- (version "7.4.0")
+ (version "8.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ansible" version))
(sha256
- (base32 "142barhwz0wx5kn74xi0bfl21iwq2yq3jp14kxajsg9nggndcr09"))))
+ (base32 "0bazj5h12wraf30bb2schzwk553y20n9vh45km4b5kgmvadm0z1j"))))
(build-system python-build-system)
(propagated-inputs (list ansible-core))
;; The Ansible collections are found by ansible-core via the Python search
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#66766
; Package
guix-patches
.
(Thu, 26 Oct 2023 18:40:03 GMT)
Full text and
rfc822 format available.
Message #14 received at 66766 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/admin.scm (ansible-core): Update to 2.15.5.
[#:phases]<check>: Enable tests that now pass and choose
the right ansible-test to invoke.
[propagated-inputs]: replace python-resolvelib-0.5 with python-resolvelib.
Change-Id: Ibda3222a16fefb1484affdb62e38a3a07ce61986
---
gnu/packages/admin.scm | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 8f72b0eeae..c1327d54a5 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2835,13 +2835,13 @@ (define-public fdupes
(define-public ansible-core
(package
(name "ansible-core")
- (version "2.14.4")
+ (version "2.15.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ansible-core" version))
(sha256
- (base32 "057g87smxcn6zc558xk4zr6ga4q8clmkyxghn5gx60a94sy61clh"))))
+ (base32 "00hnwjk4dxgxbz4xlza2wqx20yks5xr7074hzlzsyja3ip5kkicc"))))
(build-system python-build-system)
(arguments
`(#:modules ((guix build python-build-system)
@@ -2911,14 +2911,6 @@ (define-public ansible-core
(when tests?
;; Otherwise Ansible fails to create its config directory.
(setenv "HOME" "/tmp")
- ;; This test module messes up with sys.path and causes many
- ;; test failures.
- (delete-file "test/units/_vendor/test_vendor.py")
- ;; The test fails when run in the container, for reasons
- ;; unknown.
- (delete-file "test/units/utils/test_display.py")
- ;; This test fail for reasons unknown.
- (delete-file "test/units/cli/test_adhoc.py")
;; These tests fail in the container; it appears that the
;; mocking of the absolute file names such as /usr/bin/svcs do
;; not work as intended there.
@@ -2933,7 +2925,7 @@ (define-public ansible-core
;; does some extra environment setup. Taken from
;; https://raw.githubusercontent.com/ansible/ansible/\
;; devel/test/utils/shippable/shippable.sh.
- (invoke "ansible-test" "units" "-v"
+ (invoke "./bin/ansible-test" "units" "-v"
"--num-workers" (number->string
(parallel-job-count)))))))))
(native-inputs
@@ -2954,7 +2946,7 @@ (define-public ansible-core
python-jinja2
python-pyyaml
python-packaging ;for version number parsing
- python-resolvelib-0.5))
+ python-resolvelib))
(home-page "https://www.ansible.com/")
(synopsis "Radically simple IT automation")
(description "Ansible aims to be a radically simple IT automation system.
base-commit: cbd20d627497053871db863970c07d93c7081786
--
2.41.0
Information forwarded
to
lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org
:
bug#66766
; Package
guix-patches
.
(Thu, 26 Oct 2023 21:07:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 66766 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python-xyz.scm (python-resolvelib-0.5): Delete
variable. This was only used by ansible-core which can now use the
newer version.
Change-Id: Ic40e21561807ed5faae466e13193892e4f9aa6ae
---
gnu/packages/python-xyz.scm | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6b991c448b..96ccf38c54 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13763,22 +13763,6 @@ (define-public python-resolvelib
includes dependency resolution logic.")
(license license:isc)))
-;;; This older version is required by ansible-core.
-(define-public python-resolvelib-0.5
- (package/inherit python-resolvelib
- (name "python-resolvelib")
- (version "0.5.4")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/sarugaku/resolvelib")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0697y330sqhiclk25v151qxg7aixzpj434lbg5qib0qlna5zg9la"))))))
-
(define-public python-commonmark
(package
(name "python-commonmark")
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#66766
; Package
guix-patches
.
(Thu, 26 Oct 2023 21:07:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 66766 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/admin.scm (ansible): Update to 8.5.0.
Change-Id: I38ac84a0945f3ba10e13246cf8ae95c3795b52b3
---
gnu/packages/admin.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 9e28d2e8c0..afbcf7fda6 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2973,13 +2973,13 @@ (define-public ansible-core
(define-public ansible
(package
(name "ansible")
- (version "7.4.0")
+ (version "8.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ansible" version))
(sha256
- (base32 "142barhwz0wx5kn74xi0bfl21iwq2yq3jp14kxajsg9nggndcr09"))))
+ (base32 "0bazj5h12wraf30bb2schzwk553y20n9vh45km4b5kgmvadm0z1j"))))
(build-system python-build-system)
(propagated-inputs (list ansible-core))
;; The Ansible collections are found by ansible-core via the Python search
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#66766
; Package
guix-patches
.
(Thu, 26 Oct 2023 21:07:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 66766 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/admin.scm (ansible-core): Update to 2.15.5.
[#:phases]<check>: Enable tests that now pass and choose
the right ansible-test to invoke.
[propagated-inputs]: replace python-resolvelib-0.5 with python-resolvelib.
Change-Id: Ibda3222a16fefb1484affdb62e38a3a07ce61986
---
gnu/packages/admin.scm | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 67d836112d..9e28d2e8c0 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2835,13 +2835,13 @@ (define-public fdupes
(define-public ansible-core
(package
(name "ansible-core")
- (version "2.14.4")
+ (version "2.15.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ansible-core" version))
(sha256
- (base32 "057g87smxcn6zc558xk4zr6ga4q8clmkyxghn5gx60a94sy61clh"))))
+ (base32 "00hnwjk4dxgxbz4xlza2wqx20yks5xr7074hzlzsyja3ip5kkicc"))))
(build-system python-build-system)
(arguments
`(#:modules ((guix build python-build-system)
@@ -2911,14 +2911,6 @@ (define-public ansible-core
(when tests?
;; Otherwise Ansible fails to create its config directory.
(setenv "HOME" "/tmp")
- ;; This test module messes up with sys.path and causes many
- ;; test failures.
- (delete-file "test/units/_vendor/test_vendor.py")
- ;; The test fails when run in the container, for reasons
- ;; unknown.
- (delete-file "test/units/utils/test_display.py")
- ;; This test fail for reasons unknown.
- (delete-file "test/units/cli/test_adhoc.py")
;; These tests fail in the container; it appears that the
;; mocking of the absolute file names such as /usr/bin/svcs do
;; not work as intended there.
@@ -2933,7 +2925,7 @@ (define-public ansible-core
;; does some extra environment setup. Taken from
;; https://raw.githubusercontent.com/ansible/ansible/\
;; devel/test/utils/shippable/shippable.sh.
- (invoke "ansible-test" "units" "-v"
+ (invoke "./bin/ansible-test" "units" "-v"
"--num-workers" (number->string
(parallel-job-count)))))))))
(native-inputs
@@ -2954,7 +2946,7 @@ (define-public ansible-core
python-jinja2
python-pyyaml
python-packaging ;for version number parsing
- python-resolvelib-0.5))
+ python-resolvelib))
(home-page "https://www.ansible.com/")
(synopsis "Radically simple IT automation")
(description "Ansible aims to be a radically simple IT automation system.
base-commit: a69dec71493c1ecf06071d3304038f3648de69c4
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#66766
; Package
guix-patches
.
(Fri, 27 Oct 2023 13:47:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 66766 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/admin.scm (ansible-core): Update to 2.15.5.
[#:phases]<check>: Enable tests that now pass and choose
the right ansible-test to invoke.
[propagated-inputs]: replace python-resolvelib-0.5 with python-resolvelib.
Change-Id: Ibda3222a16fefb1484affdb62e38a3a07ce61986
---
gnu/packages/admin.scm | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 67d836112d..9e28d2e8c0 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2835,13 +2835,13 @@ (define-public fdupes
(define-public ansible-core
(package
(name "ansible-core")
- (version "2.14.4")
+ (version "2.15.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ansible-core" version))
(sha256
- (base32 "057g87smxcn6zc558xk4zr6ga4q8clmkyxghn5gx60a94sy61clh"))))
+ (base32 "00hnwjk4dxgxbz4xlza2wqx20yks5xr7074hzlzsyja3ip5kkicc"))))
(build-system python-build-system)
(arguments
`(#:modules ((guix build python-build-system)
@@ -2911,14 +2911,6 @@ (define-public ansible-core
(when tests?
;; Otherwise Ansible fails to create its config directory.
(setenv "HOME" "/tmp")
- ;; This test module messes up with sys.path and causes many
- ;; test failures.
- (delete-file "test/units/_vendor/test_vendor.py")
- ;; The test fails when run in the container, for reasons
- ;; unknown.
- (delete-file "test/units/utils/test_display.py")
- ;; This test fail for reasons unknown.
- (delete-file "test/units/cli/test_adhoc.py")
;; These tests fail in the container; it appears that the
;; mocking of the absolute file names such as /usr/bin/svcs do
;; not work as intended there.
@@ -2933,7 +2925,7 @@ (define-public ansible-core
;; does some extra environment setup. Taken from
;; https://raw.githubusercontent.com/ansible/ansible/\
;; devel/test/utils/shippable/shippable.sh.
- (invoke "ansible-test" "units" "-v"
+ (invoke "./bin/ansible-test" "units" "-v"
"--num-workers" (number->string
(parallel-job-count)))))))))
(native-inputs
@@ -2954,7 +2946,7 @@ (define-public ansible-core
python-jinja2
python-pyyaml
python-packaging ;for version number parsing
- python-resolvelib-0.5))
+ python-resolvelib))
(home-page "https://www.ansible.com/")
(synopsis "Radically simple IT automation")
(description "Ansible aims to be a radically simple IT automation system.
base-commit: a69dec71493c1ecf06071d3304038f3648de69c4
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#66766
; Package
guix-patches
.
(Fri, 27 Oct 2023 13:47:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 66766 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/admin.scm (ansible): Update to 8.5.0.
Change-Id: I38ac84a0945f3ba10e13246cf8ae95c3795b52b3
---
gnu/packages/admin.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 9e28d2e8c0..afbcf7fda6 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2973,13 +2973,13 @@ (define-public ansible-core
(define-public ansible
(package
(name "ansible")
- (version "7.4.0")
+ (version "8.5.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "ansible" version))
(sha256
- (base32 "142barhwz0wx5kn74xi0bfl21iwq2yq3jp14kxajsg9nggndcr09"))))
+ (base32 "0bazj5h12wraf30bb2schzwk553y20n9vh45km4b5kgmvadm0z1j"))))
(build-system python-build-system)
(propagated-inputs (list ansible-core))
;; The Ansible collections are found by ansible-core via the Python search
--
2.41.0
Information forwarded
to
lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, jgart <at> dismail.de, guix-patches <at> gnu.org
:
bug#66766
; Package
guix-patches
.
(Fri, 27 Oct 2023 13:48:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 66766 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/python-xyz.scm (python-resolvelib-0.5): Delete
variable. This was only used by ansible-core which can now use the
newer version.
Change-Id: Ic40e21561807ed5faae466e13193892e4f9aa6ae
---
gnu/packages/python-xyz.scm | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6b991c448b..96ccf38c54 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13763,22 +13763,6 @@ (define-public python-resolvelib
includes dependency resolution logic.")
(license license:isc)))
-;;; This older version is required by ansible-core.
-(define-public python-resolvelib-0.5
- (package/inherit python-resolvelib
- (name "python-resolvelib")
- (version "0.5.4")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/sarugaku/resolvelib")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0697y330sqhiclk25v151qxg7aixzpj434lbg5qib0qlna5zg9la"))))))
-
(define-public python-commonmark
(package
(name "python-commonmark")
--
2.41.0
Reply sent
to
Christopher Baines <mail <at> cbaines.net>
:
You have taken responsibility.
(Mon, 30 Oct 2023 11:35:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Jack Hill <jackhill <at> jackhill.us>
:
bug acknowledged by developer.
(Mon, 30 Oct 2023 11:35:02 GMT)
Full text and
rfc822 format available.
Message #37 received at 66766-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Jack Hill <jackhill <at> jackhill.us> writes:
> * gnu/packages/admin.scm (ansible): Update to 8.5.0.
>
> Change-Id: I38ac84a0945f3ba10e13246cf8ae95c3795b52b3
> ---
> gnu/packages/admin.scm | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
This patch, and the preceding ones look good to me. I've pushed them to
master as 85451b38dd175f8bd4bcb42336c895bdc9373d28.
Thanks,
Chris
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 27 Nov 2023 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 262 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.