#860237 piuparts: Improve debugging experience in case of dpkg failure

Package:
piuparts
Source:
piuparts
Submitter:
Bastien ROUCARIÈS
Date:
2017-10-05 13:57:04 UTC
Severity:
wishlist
#860237#5
Date:
2017-04-13 09:44:16 UTC
From:
To:
Hi,

Actually dpkg try to recover from error state in order to get something safe.

it is not really needed for piupart and moreover it detroy bug evidence.

Safer will be to add  abort-after=1 to dpkg config thus keeping evidence.

Bastien

#860237#10
Date:
2017-04-13 10:02:09 UTC
From:
To:
Do you have a concrete example of a failure you want to debug?


Andreas

#860237#15
Date:
2017-04-13 10:03:02 UTC
From:
To:
Yes here https://piuparts.debian.org/wheezy222testing/bugged/imagemagick-doc_8:6.9.7.4+dfsg-3.log
#860237#20
Date:
2017-04-13 10:12:51 UTC
From:
To:
rerunning it with --shell-on-error (and without timeout prefix) would
give you a shell in the chroot - would this help?


Andreas

#860237#25
Date:
2017-04-13 10:13:29 UTC
From:
To:
reassign 860237 piuparts
severity 860237 wishlist
retitle 860238 [dpkg] Improve debugging experience for piuparts
block 860237 by 860238
thanks

more context from irc:

< broucaries> | h01ger: get this from guillem
< broucaries>  guillem: [23:44:51] for dpkg you can configure it in the config file with abort-after=1
< broucaries> | guillem: [23:45:02] dunno about piuparts
< broucaries> | h01ger: could we add this to piupart and get some script to list file contents ?
<     h01ger> | broucaries: i need more context
<     h01ger> | broucaries: and probably a bug report
< broucaries> | h01ger: for debugging the imagemagick-doc problem guillem suggests to set abort-after=1 for dpkg configuration, in order to stop in case of error instead to run recovery. Thus we could inspect the package state including file installed
< h01ger> | broucaries: also see #850917 and commit 285e9811cb in piuparts.git

#860237#38
Date:
2017-04-13 13:29:02 UTC
From:
To:

Yes but without dpkg option it is too late. dpkg tried to recover...

#860237#45
Date:
2017-10-05 13:53:09 UTC
From:
To:
Hi,

#860238 was blocking this bug and has been fixed in the meantime. What's left
to do on the piuparts side, if anything?

#860237#48
Date:
2017-10-05 13:53:09 UTC
From:
To:
Hi,

#860238 was blocking this bug and has been fixed in the meantime. What's left
to do on the piuparts side, if anything?