From: Mark Wielaard <mark@klomp.org>
To: Noah Sanci <nsanci@redhat.com>
Cc: elfutils-devel@sourceware.org
Subject: Re: [Bug debuginfod/28034] %-escape url characters
Date: Tue, 20 Jul 2021 21:08:35 +0200 [thread overview]
Message-ID: <YPcfM/Bvvnm2mEfY@wildebeest.org> (raw)
In-Reply-To: <YPcM03PSfYzbaq6Z@wildebeest.org>
[-- Attachment #1: Type: text/plain, Size: 433 bytes --]
Hi Noah,
On Tue, Jul 20, 2021 at 07:50:11PM +0200, Mark Wielaard wrote:
> > + * run-debuginfod-find.sh: Added a test case ensuring files with %
> > + escapable characters in their paths are accessible.
>
> There are also a couple of changes (fixes?) to the testcases.
> Could those be split out?
I think you almost had the right fix for a race in killing the last
debuginfod server. Does the attached work for you?
Thanks,
Mark
[-- Attachment #2: 0001-tests-wait-for-PID4-before-setting-to-zero.patch --]
[-- Type: text/x-diff, Size: 1402 bytes --]
From 83b7eb24a5796a4aecc5d32eb0c3f459788c4690 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mark@klomp.org>
Date: Tue, 20 Jul 2021 20:50:48 +0200
Subject: [PATCH] tests: wait for PID4 before setting to zero
A debuginfod server might take a while to shut down to clean and close
the sqlite databases. Wait for the process after killing it and
clearing the PID variable so it won't be killed again.
Reported-by: Noah Sanci <nsanci@redhat.com>
Signed-off-by: Mark Wielaard <mark@klomp.org>
---
tests/ChangeLog | 4 ++++
tests/run-debuginfod-find.sh | 2 ++
2 files changed, 6 insertions(+)
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 1196d6b2..b0303e00 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,3 +1,7 @@
+2021-07-20 Mark Wielaard <mark@klomp.org>
+
+ * tests/run-debuginfod-find.sh: wait for PID4 before setting to zero.
+
2021-06-28 Noah Sanci <nsanci@redhat.com>
PR25978
diff --git a/tests/run-debuginfod-find.sh b/tests/run-debuginfod-find.sh
index 1d664be9..23eac329 100755
--- a/tests/run-debuginfod-find.sh
+++ b/tests/run-debuginfod-find.sh
@@ -754,6 +754,8 @@ wait_ready $PORT3 'groom{statistic="files scanned (#)"}' 0
wait_ready $PORT3 'groom{statistic="files scanned (mb)"}' 0
kill $PID4
+wait $PID4
+PID4=0
########################################################################
# set up tests for retrying failed queries.
--
2.32.0
next prev parent reply other threads:[~2021-07-20 19:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-19 14:53 Noah Sanci
2021-07-20 17:50 ` Mark Wielaard
2021-07-20 18:13 ` Frank Ch. Eigler
2021-07-20 19:08 ` Mark Wielaard [this message]
2021-07-21 18:18 ` Noah Sanci
2021-07-21 19:44 ` Noah Sanci
2021-07-22 12:29 ` Mark Wielaard
2021-07-22 12:28 ` Mark Wielaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YPcfM/Bvvnm2mEfY@wildebeest.org \
--to=mark@klomp.org \
--cc=elfutils-devel@sourceware.org \
--cc=nsanci@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).