known problems: check for "... kept back" in fail logs

"packages have been kept back" may also happen in combination with
some errors.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
count the rescheduled logs

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
delay detect_archive_issues processing by one day

Only consider logs older than one day for marking as "untestable"
to allow piuparts-analyze to handle the log first.
Classifying a log as bugged/affected is "better" than untestable.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
p: run(): factor out kill_subprocess()

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
p: run(): reindent for exception handling

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
p: run(): add timeout option

Terminate command after timeout was reached.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
p: set command timeout to 30 minutes

e.g. dist-upgrading texlive-full takes some time ...

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
p: run(): append termination notice to command output

The failure of a command is displayed *before* the command output
is dumped, so just looking at the tail of the logfile was hiding
the reason. Add some information to the output itself.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
p: run(): don't ignore_errors after overflow/timeout

Excessive output or timeout are serious conditions where we
don't want to continue afterwards.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
p: split terminate_running_processes from check_for_no_processes

split Chroot.terminate_running_processes() out of
Chroot.check_for_no_processes()

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
p: terminate running processes before removing the chroot

Ensure there is nothing running that might prevent removal of the chroot.
In case of panic() check_for_no_processes() was not called.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
p: improve killing of running processes

Rewrite Chroot.terminate_running_processes():
check for new processes getting spawned in the chroot while
the chroot is being shut down and continue killing them.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
scripts: always set -e

and drop the final exit 0

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
scripts: reduce verboseness

The piuparts log already states that the script is being run,
no need to have the script repeat this.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
scripts: remove debconf-english exception

piuparts now re-installs missing packages

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
add scripts-debug-prerm/pre_remove_prerm_set-x

For easy debugging of packages that fail during prerm.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
drop scripts/pre_upgrade_exceptions

This is no longer executed.
I accept that the apt-listchanges test fails as long as there are RC bugs.

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
p-m: do not dump received log content to master logfile

makes the master logfile grow slower

Signed-off-by: Andreas Beckmann <debian@abeckmann.de>
update TODO
Add support for schroot. Closes #530733