Your message dated Fri, 20 Sep 2019 14:39:23 +0000
with message-id <[email protected]>
and subject line Bug#934269: fixed in lavacli 0.9.8-1
has caused the Debian Bug report #934269,
regarding lavacli: default_flow_style changed in newer pyyaml
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
934269: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=934269
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lavacli
Version: 0.9.7-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu eoan ubuntu-patch

Dear Maintainer,

pyyaml 5.2.1 appears to have some changes in the default flow style used.
Rather than representing sequences and dicts similary to python, it now
defaults to printing them in longform [1]:

 - item 1
 - item 2

etc.

I've written a quick and heavyhanded patch to add default_flow_style=None
to all of the calls to yaml.dump() that otherwise don't include options, but
that might not be the best solution. Maybe upstream would rather fix the tests?

[1] https://github.com/yaml/pyyaml/issues/265


*** /tmp/tmpton7Uz/bug_body

In Ubuntu, the attached patch was applied to achieve the following:

  * debian/patches/fix_pyyaml_default_flow_style.patch: Make sure all calls
    to yaml.dump() include default_flow_style=None, to retain previous behavior
    that is checked for in tests, unless it's already otherwise specified.


Thanks for considering the patch.


-- System Information:
Debian Release: buster/sid
  APT prefers eoan
  APT policy: (500, 'eoan')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.2.0-8-generic (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru lavacli-0.9.7/debian/patches/fix_pyyaml_default_flow_style.patch 
lavacli-0.9.7/debian/patches/fix_pyyaml_default_flow_style.patch
--- lavacli-0.9.7/debian/patches/fix_pyyaml_default_flow_style.patch    
1969-12-31 19:00:00.000000000 -0500
+++ lavacli-0.9.7/debian/patches/fix_pyyaml_default_flow_style.patch    
2019-08-08 16:56:08.000000000 -0400
@@ -0,0 +1,185 @@
+Index: lavacli-0.9.7/lavacli/commands/aliases.py
+===================================================================
+--- lavacli-0.9.7.orig/lavacli/commands/aliases.py
++++ lavacli-0.9.7/lavacli/commands/aliases.py
+@@ -99,7 +99,7 @@ def handle_list(proxy, options, _):
+     if options.output_format == "json":
+         print(json.dumps(aliases))
+     elif options.output_format == "yaml":
+-        print(yaml.dump(aliases).rstrip("\n"))
++        print(yaml.dump(aliases, default_flow_style=None).rstrip("\n"))
+     else:
+         print("Aliases:")
+         for alias in aliases:
+@@ -112,7 +112,7 @@ def handle_show(proxy, options, config):
+     if options.output_format == "json":
+         print(json.dumps(alias))
+     elif options.output_format == "yaml":
+-        print(yaml.dump(alias).rstrip("\n"))
++        print(yaml.dump(alias, default_flow_style=None).rstrip("\n"))
+     else:
+         if config["version"] >= (2019, 5):
+             print("name       : %s" % alias["name"])
+Index: lavacli-0.9.7/lavacli/commands/device_types.py
+===================================================================
+--- lavacli-0.9.7.orig/lavacli/commands/device_types.py
++++ lavacli-0.9.7/lavacli/commands/device_types.py
+@@ -260,7 +260,7 @@ def handle_aliases(proxy, options):
+         if options.output_format == "json":
+             print(json.dumps(aliases))
+         elif options.output_format == "yaml":
+-            print(yaml.dump(aliases).rstrip("\n"))
++            print(yaml.dump(aliases, default_flow_style=None).rstrip("\n"))
+         else:
+             print("Aliases:")
+             for alias in aliases:
+@@ -287,7 +287,7 @@ def handle_list(proxy, options):
+     if options.output_format == "json":
+         print(json.dumps(device_types))
+     elif options.output_format == "yaml":
+-        print(yaml.dump(device_types).rstrip("\n"))
++        print(yaml.dump(device_types, default_flow_style=None).rstrip("\n"))
+     else:
+         print("Device-Types:")
+         for dt in device_types:
+@@ -301,7 +301,7 @@ def handle_show(proxy, options):
+     if options.output_format == "json":
+         print(json.dumps(dt))
+     elif options.output_format == "yaml":
+-        print(yaml.dump(dt).rstrip("\n"))
++        print(yaml.dump(dt, default_flow_style=None).rstrip("\n"))
+     else:
+         print("name            : %s" % dt["name"])
+         print("description     : %s" % dt["description"])
+Index: lavacli-0.9.7/lavacli/commands/devices.py
+===================================================================
+--- lavacli-0.9.7.orig/lavacli/commands/devices.py
++++ lavacli-0.9.7/lavacli/commands/devices.py
+@@ -337,7 +337,7 @@ def handle_list(proxy, options, config):
+     if options.output_format == "json":
+         print(json.dumps(devices))
+     elif options.output_format == "yaml":
+-        print(yaml.dump(devices).rstrip("\n"))
++        print(yaml.dump(devices, default_flow_style=None).rstrip("\n"))
+     else:
+         print("Devices:")
+         for device in devices:
+@@ -386,7 +386,7 @@ def handle_show(proxy, options, config):
+     if options.output_format == "json":
+         print(json.dumps(device))
+     elif options.output_format == "yaml":
+-        print(yaml.dump(device).rstrip("\n"))
++        print(yaml.dump(device, default_flow_style=None).rstrip("\n"))
+     else:
+         print("name        : %s" % device["hostname"])
+         print("device-type : %s" % device["device_type"])
+@@ -418,7 +418,7 @@ def handle_tags(proxy, options, _):
+         if options.output_format == "json":
+             print(json.dumps(tags))
+         elif options.output_format == "yaml":
+-            print(yaml.dump(tags).rstrip("\n"))
++            print(yaml.dump(tags, default_flow_style=None).rstrip("\n"))
+         else:
+             print("Tags:")
+             for tag in tags:
+Index: lavacli-0.9.7/lavacli/commands/jobs.py
+===================================================================
+--- lavacli-0.9.7.orig/lavacli/commands/jobs.py
++++ lavacli-0.9.7/lavacli/commands/jobs.py
+@@ -370,7 +370,7 @@ def handle_list(proxy, options, config):
+     if options.output_format == "json":
+         print(json.dumps(jobs))
+     elif options.output_format == "yaml":
+-        print(yaml.dump(jobs).rstrip("\n"))
++        print(yaml.dump(jobs, default_flow_style=None).rstrip("\n"))
+     else:
+         print(
+             "Jobs (from %s to %s):" % (1 + options.start, options.start + 
options.limit)
+@@ -568,7 +568,7 @@ def handle_queue(proxy, options, config)
+     if options.output_format == "json":
+         print(json.dumps(data))
+     elif options.output_format == "yaml":
+-        print(yaml.dump(data).rstrip("\n"))
++        print(yaml.dump(data, default_flow_style=None).rstrip("\n"))
+     else:
+         print(
+             "Jobs (from %s to %s):" % (1 + options.start, options.start + 
options.limit)
+@@ -687,7 +687,7 @@ def handle_show(proxy, options, config):
+         job["submit_time"] = job["submit_time"].value
+         job["start_time"] = job["start_time"].value
+         job["end_time"] = job["end_time"].value
+-        print(yaml.dump(job).rstrip("\n"))
++        print(yaml.dump(job, default_flow_style=None).rstrip("\n"))
+     else:
+         print("id          : %s" % job["id"])
+         print("description : %s" % job["description"])
+Index: lavacli-0.9.7/lavacli/commands/results.py
+===================================================================
+--- lavacli-0.9.7.orig/lavacli/commands/results.py
++++ lavacli-0.9.7/lavacli/commands/results.py
+@@ -68,7 +68,7 @@ def handle(proxy, options, _):
+     if options.output_format == "json":
+         print(json.dumps(results))
+     elif options.output_format == "yaml":
+-        print(yaml.dump(results).rstrip("\n"))
++        print(yaml.dump(results, default_flow_style=None).rstrip("\n"))
+     else:
+         # Only print the result
+         if options.test_case is not None:
+Index: lavacli-0.9.7/lavacli/commands/system.py
+===================================================================
+--- lavacli-0.9.7.orig/lavacli/commands/system.py
++++ lavacli-0.9.7/lavacli/commands/system.py
+@@ -220,7 +220,7 @@ def handle_export(proxy, options, config
+ 
+     # Dump the configuration
+     with (dest / "instance.yaml").open("w", encoding="utf-8") as f_out:
+-        f_out.write(yaml.dump(export).rstrip("\n"))
++        f_out.write(yaml.dump(export, default_flow_style=None).rstrip("\n"))
+     return 0
+ 
+ 
+Index: lavacli-0.9.7/lavacli/commands/tags.py
+===================================================================
+--- lavacli-0.9.7.orig/lavacli/commands/tags.py
++++ lavacli-0.9.7/lavacli/commands/tags.py
+@@ -93,7 +93,7 @@ def handle_list(proxy, options):
+     if options.output_format == "json":
+         print(json.dumps(tags))
+     elif options.output_format == "yaml":
+-        print(yaml.dump(tags).rstrip("\n"))
++        print(yaml.dump(tags, default_flow_style=None).rstrip("\n"))
+     else:
+         print("Tags:")
+         for tag in tags:
+@@ -109,7 +109,7 @@ def handle_show(proxy, options):
+     if options.output_format == "json":
+         print(json.dumps(tag))
+     elif options.output_format == "yaml":
+-        print(yaml.dump(tag).rstrip("\n"))
++        print(yaml.dump(tag, default_flow_style=None).rstrip("\n"))
+     else:
+         print("name       : %s" % tag["name"])
+         print("description: %s" % tag["description"])
+Index: lavacli-0.9.7/lavacli/commands/workers.py
+===================================================================
+--- lavacli-0.9.7.orig/lavacli/commands/workers.py
++++ lavacli-0.9.7/lavacli/commands/workers.py
+@@ -201,7 +201,7 @@ def handle_list(proxy, options, _):
+     if options.output_format == "json":
+         print(json.dumps(workers))
+     elif options.output_format == "yaml":
+-        print(yaml.dump(workers).rstrip("\n"))
++        print(yaml.dump(workers, default_flow_style=None).rstrip("\n"))
+     else:
+         print("Workers:")
+         for worker in workers:
+@@ -242,7 +242,7 @@ def handle_show(proxy, options, config):
+     elif options.output_format == "yaml":
+         if "last_ping" in worker:
+             worker["last_ping"] = worker["last_ping"].value
+-        print(yaml.dump(worker).rstrip("\n"))
++        print(yaml.dump(worker, default_flow_style=None).rstrip("\n"))
+     else:
+         print("hostname    : %s" % worker["hostname"])
+         print("description : %s" % worker["description"])
diff -Nru lavacli-0.9.7/debian/patches/series 
lavacli-0.9.7/debian/patches/series
--- lavacli-0.9.7/debian/patches/series 1969-12-31 19:00:00.000000000 -0500
+++ lavacli-0.9.7/debian/patches/series 2019-08-08 16:52:02.000000000 -0400
@@ -0,0 +1 @@
+fix_pyyaml_default_flow_style.patch

--- End Message ---
--- Begin Message ---
Source: lavacli
Source-Version: 0.9.8-1

We believe that the bug you reported is fixed in the latest version of
lavacli, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Remi Duraffort <[email protected]> (supplier of updated lavacli package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 19 Sep 2019 14:10:45 +0200
Source: lavacli
Architecture: source
Version: 0.9.8-1
Distribution: unstable
Urgency: medium
Maintainer: Debian LAVA team <[email protected]>
Changed-By: Remi Duraffort <[email protected]>
Closes: 934269
Changes:
 lavacli (0.9.8-1) unstable; urgency=medium
 .
   [ Remi Duraffort ]
   * New upstream release
     + Export author email
     + Fix yaml.dump after recent pyyaml changes (Closes: #934269)
     + CI: test on debian testing
     + Ad a git buildpackage configuration file
     + Add a simple release script
     + Improve release script
 .
   [ Antonio Terceiro ]
   * Set Remi and myself as Uploaders:
   * Bump Standards-Version to 4.4.0; no changes needed
   * debian/rules: handle DEB_BUILD_OPTIONS=nocheck
   * debian/control: run wrap-and-sort
   * Drop debian/compat and replace it with a dependency on debhelper-compat 12
   * debian/copyright: use https for spec URL
Checksums-Sha1:
 63c77a6c657b9f5a5a49aa453be8b5d8c45f1254 2201 lavacli_0.9.8-1.dsc
 89cdbb8bdc5023c2d38015046ffc07a679466ba5 68111 lavacli_0.9.8.orig.tar.gz
 226e59f3be03433c2e7aaa6eaa99c2d0009c22e5 14552 lavacli_0.9.8-1.debian.tar.xz
 469959eaee2862e4e251acd964c8812c9c427077 8062 lavacli_0.9.8-1_source.buildinfo
Checksums-Sha256:
 1e86834ad22dcf8f5e8f2a4f29d38f0c2afdbcb91c9c2d24c95d3ab809b82fa9 2201 
lavacli_0.9.8-1.dsc
 7cc492cd3148d575b5cc0b89e348bc9d9f26d1a18821ef99f07515541c9b3052 68111 
lavacli_0.9.8.orig.tar.gz
 c2f2c1725dc64284cdcd627ede44a543d1ead0d4a0c529d12fa10bc0af4b1ef4 14552 
lavacli_0.9.8-1.debian.tar.xz
 5c20a65441209340ce77d0d80af1f68e05bca25a07a43077615af7ac250bcfae 8062 
lavacli_0.9.8-1_source.buildinfo
Files:
 67b89e934c21b7a480365bbc0be9b5a4 2201 admin optional lavacli_0.9.8-1.dsc
 1db87129781b5a8413309f25e714215c 68111 admin optional lavacli_0.9.8.orig.tar.gz
 17598ca65388751e674f4321087daa11 14552 admin optional 
lavacli_0.9.8-1.debian.tar.xz
 fb607f2bd4fe7871fcf8d6df55c032b5 8062 admin optional 
lavacli_0.9.8-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEst7mYDbECCn80PEM/A2xu81GC94FAl2E4bMACgkQ/A2xu81G
C94JdA/+I8miJr9EY8Oqx8LDmRYSW2PT+Pw72lOH/KREkOvkiBmydokabyFEbRJ8
9wlTtgp4HZijCWS88Ibjxc2uEqaN7w0WgqRintyXbw/7WIBFIDJP8EWhP+0HZMue
F3cVUDfpsoqYIE57d66/ucD/h0wnWgg85JmoJG7Kpoi7uTxtd76MXVxPP3OdKUPV
7YwbB5DsMlMXfGqDz+4NYBjWLjvwLZlIX8aJvuqUlB8QVoRwbi0Ps2kMRytR70pT
r/+bepeoeUZPhPG1dUbyg0kx3apZGtS77YW0DyThZf+WsuxWpExF/iplCsW5hTCb
6xvYBwT85EtifOOARmUVde/EbJ8KjdO657SyDKjtiQ8qN/IKSnlYZMgqKgDjl2Nh
dIzRWhmEMGY0u11QIGuWzQlnHolwPwg1s2na3OikNxKe09RjTchsI8cTcQW1tNI/
0QCkVR9G6PjuaLU1FuyuSia4IHiFT+Cmw1VdZOwWpbQnZjv8erejHBYtUAypZMiD
aCUbALcw7aGumx7o0CyKV4Ab/z/F+0E7ZP4pvrXesdplYvonO304RSBHS62yM+3Z
1B31OAl1VjMR5M7kPWyx7TaB2cHyhafdnSUgm2OTx7uhe4EscK+zX9I3HzT3b1dI
Tfm8HlfrPKQZLXAc8y2nNZ/Zj5vc3YA29ptJbCC0iD98DMt381c=
=uJ99
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to