Your message dated Fri, 04 Jun 2021 22:03:35 +0000
with message-id <[email protected]>
and subject line Bug#989200: fixed in debspawn 0.5.0-1
has caused the Debian Bug report #989200,
regarding debspawn: save build log irrespective of the result
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.)


-- 
989200: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989200
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debspawn
Version: 0.4.2-2
Severity: normal
Tags: patch

Right now, when a build fails, debspan does not save the build log.
Having the build log is extremely useful in either case.




-- System Information:
Debian Release: 11.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable'), 
(100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-7-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_USER
Locale: LANG=en_IN.UTF-8, LC_CTYPE=en_IN.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debspawn depends on:
ii  debootstrap        1.0.123
ii  python3            3.9.2-3
ii  python3-toml       0.10.1-1
ii  systemd-container  247.3-5
ii  zstd               1.4.8+dfsg-2.1

Versions of packages debspawn recommends:
ii  build-essential  12.9
ii  devscripts       2.21.2

Versions of packages debspawn suggests:
ii  sudo  1.9.5p2-3

-- no debconf information
>From 29051a0a2c5c4a10fc58c9a1f7d4017c9897bc93 Mon Sep 17 00:00:00 2001
From: Ritesh Raj Sarraf <[email protected]>
Date: Fri, 28 May 2021 15:04:08 +0530
Subject: [PATCH] Save build log under all conditions

The build log is always useful, whether the package build passes or
fails. Infact, during a failure, it is more important. So, save the
build log in either case.

Signed-off-by: Ritesh Raj Sarraf <[email protected]>
---
 debspawn/build.py | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/debspawn/build.py b/debspawn/build.py
index ae190f5..dc034e9 100644
--- a/debspawn/build.py
+++ b/debspawn/build.py
@@ -432,18 +432,19 @@ def build_from_directory(osbase, pkg_dir, *,
                                      source_pkg_dir=pkg_dir,
                                      buildflags=buildflags,
                                      build_env=build_env)
+
+        # save buildlog, if we generated one
+        log_fname = os.path.join(osbase.results_dir, 
'{}_{}_{}.buildlog'.format(pkg_sourcename,
+                                                                            
version_noepoch(pkg_version),
+                                                                            
osbase.arch))
+        save_captured_console_output(log_fname)
+
         if not ret:
             return False
 
         # copy build results
         _retrieve_artifacts(osbase, pkg_tmp_dir)
 
-    # save buildlog, if we generated one
-    log_fname = os.path.join(osbase.results_dir, 
'{}_{}_{}.buildlog'.format(pkg_sourcename,
-                                                                            
version_noepoch(pkg_version),
-                                                                            
osbase.arch))
-    save_captured_console_output(log_fname)
-
     # sign the resulting package
     if sign:
         r = _sign_result(osbase.results_dir, pkg_sourcename, pkg_version, 
osbase.arch)
@@ -512,18 +513,19 @@ def build_from_dsc(osbase, dsc_fname, *,
                                      interact=interact,
                                      buildflags=buildflags,
                                      build_env=build_env)
+
+        # save buildlog, if we generated one
+        log_fname = os.path.join(osbase.results_dir, 
'{}_{}_{}.buildlog'.format(pkg_sourcename,
+                                                                            
version_noepoch(pkg_version),
+                                                                            
osbase.arch))
+        save_captured_console_output(log_fname)
+
         if not ret:
             return False
 
         # copy build results
         _retrieve_artifacts(osbase, pkg_tmp_dir)
 
-    # save buildlog, if we generated one
-    log_fname = os.path.join(osbase.results_dir, 
'{}_{}_{}.buildlog'.format(pkg_sourcename,
-                                                                            
version_noepoch(pkg_version),
-                                                                            
osbase.arch))
-    save_captured_console_output(log_fname)
-
     # sign the resulting package
     if sign:
         r = _sign_result(osbase.results_dir, pkg_sourcename, pkg_version, 
osbase.arch)
-- 
2.32.0.rc0


--- End Message ---
--- Begin Message ---
Source: debspawn
Source-Version: 0.5.0-1
Done: Matthias Klumpp <[email protected]>

We believe that the bug you reported is fixed in the latest version of
debspawn, 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.
Matthias Klumpp <[email protected]> (supplier of updated debspawn 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: Fri, 04 Jun 2021 23:26:08 +0200
Source: debspawn
Architecture: source
Version: 0.5.0-1
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klumpp <[email protected]>
Changed-By: Matthias Klumpp <[email protected]>
Closes: 989200
Changes:
 debspawn (0.5.0-1) unstable; urgency=medium
 .
   * New upstream version: 0.5.0
     - Will always save build logs, even if build failed (Closes: #989200)
     - Installs a timer to clean all caches (even those of images which have
       not been updated or used in months) monthly.
     - Fixes image creation for Ubuntu
     - The `debspawn maintain` subcommand is documented now
   * Drop all patches: Applied upstream
   * Drop single-version-externally-managed build hack
   * Run status command in autopkgtest
Checksums-Sha1:
 9ae125d36ed616b4d8708dbb3af9d0d50e69237f 2026 debspawn_0.5.0-1.dsc
 f4b6569afaa804042de020f47f63206626fe44a1 53922 debspawn_0.5.0.orig.tar.gz
 41cca7fb9f4e25fee9460b43b6348c6a8503487f 3588 debspawn_0.5.0-1.debian.tar.xz
 221874971622cb65d0fa578a0de440e85b3c23f7 7679 debspawn_0.5.0-1_source.buildinfo
Checksums-Sha256:
 09e384107a8c9eb5ab76273bf185c0e96145c5948818c7ad8307bfca067776b1 2026 
debspawn_0.5.0-1.dsc
 ab46c49378fbd9358068c70549b6a77274a73c25eae256578a2774c793567358 53922 
debspawn_0.5.0.orig.tar.gz
 5d3673c7b61a5372fc36a61a2cdc3f7116f63eee46c48c21d58b9810b27ca1f8 3588 
debspawn_0.5.0-1.debian.tar.xz
 fb6d0667e1701ea6e47f7dfdf756ecc0b3b7341893076da5d5cbe3d8c465294e 7679 
debspawn_0.5.0-1_source.buildinfo
Files:
 90087edb61316f4e704877b5ba5744aa 2026 utils optional debspawn_0.5.0-1.dsc
 9bb9812c458128e8e0f5ab5cea391306 53922 utils optional 
debspawn_0.5.0.orig.tar.gz
 104c4b1b7db2ff6630358d4e83f12977 3588 utils optional 
debspawn_0.5.0-1.debian.tar.xz
 183805d1b255509969b744df23200fd5 7679 utils optional 
debspawn_0.5.0-1_source.buildinfo

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

iQJDBAEBCAAtFiEE0zo/DKFrCsxRpgc4SUyKX79N7OsFAmC6ncMPHG1ha0BkZWJp
YW4ub3JnAAoJEElMil+/TezrOSkP/0KJxqHKC254WJfrFOud7RltqtC89hK2S7+O
XlsihRabcIpD+4qmfLTkzcoqkV8ktd37mBW+2IKKUpRIfUIIxu3J5ih8h0WMBqvy
r5qgPhF4o1w6OhOD2UOPcEhM7bAsT9lLAVyOQ1I6z8PI/D/XgP2KPbv2EiuMTG+n
kbYYZzYZ8xLM4fOBA9UJB5mPy3THtNpdbgLXLrKDwGEIyf7nUcjFXO0oVwxZJyNM
o+y7aMt9IgC8HwxCcgtUkRMDjt8zQTvw8ifV2GyfOTee8OcNz5NmeYNaR1wDTOli
Rv0KnvqoDLC56V9EZ2+Y9W4UG2FGP2vjxxxgb+ll1vknylFow7hpjPzGqUESnh77
ondNYgIgXzK1KnrDsbBRYgrgFunu3MlxZ0B7+U/LgE5QRLcJS7PONP+Fj9itKJjD
ag12Y/WOhJOIQAkB/G4+uFYGemfRgx8gehNwYMvg2gtXn14Cw5m0GZ5f2TfF7orX
ufGSt3kuEvcTqXPcDw68kTiiAkJCs+6RVZH1A+JqwJ+F4oRgnaw+7TXIBJ5O9ecp
YTOMsoNKj7Fg85MXO9SNWatoG+agr2pLLK6Iq4ibktv3OTjzzs9KHWctCPL5NZWs
l34o6H/k0pKXYhYQQfRE351fn5iFqHeqC0TrstpLjuoxa4E7NOOL8s5yvcetaxfy
Zm5WHpQX
=zni0
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to