public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: Noah Sanci <nsanci@redhat.com>
Cc: elfutils-devel@sourceware.org
Subject: Re: [Bug debuginfod/27277] Describe retrieved files when verbose
Date: Thu, 16 Sep 2021 12:50:59 +0200	[thread overview]
Message-ID: <771ec724139520df6d351ed7ea6b2ea525dbac00.camel@klomp.org> (raw)
In-Reply-To: <CAJXA7qg1ZX81yWkTvM9D46j=4nCPQYYC1=iuz2AjcvXj3H9DOg@mail.gmail.com>

Hi Noah,

On Mon, 2021-09-13 at 16:07 -0400, Noah Sanci via Elfutils-devel wrote:
> On Sun, Sep 12, 2021 at 3:08 PM Mark Wielaard <mark@klomp.org> wrote:
> > > run-debuginfod-fd-prefetch-caches.sh was updated so that it doesn't
> > > trip and fail as previously greping for a value that should yield zero
> > > caused an error.
> > 
> > I think this part should be in this patch.
> 
> Do you mean should or shouldn't? Removed for now.

That should should have been shouldn't.

> > > +# Wait till both files are in the index and scan/index fully
> > > finished
> > > +wait_ready $PORT1 'thread_work_total{role="traverse"}' 2
> > > +wait_ready $PORT1 'thread_work_pending{role="scan"}' 0
> > > +wait_ready $PORT1 'thread_busy{role="scan"}' 0
> > > +# All rpms need to be in the index, except the dummy permission-
> > > 000 one
> > > +rpms=$(find R -name \*rpm | grep -v nothing | wc -l)
> > > +wait_ready $PORT1 'scanned_files_total{source=".rpm archive"}'
> > > $rpms
> > > +kill -USR1 $PID1  # two hits of SIGUSR1 may be needed to resolve
> > > .debug->dwz->srefs
> > > +# Wait till both files are in the index and scan/index fully
> > > finished
> > > +wait_ready $PORT1 'thread_work_total{role="traverse"}' 3
> > > +wait_ready $PORT1 'thread_work_pending{role="scan"}' 0
> > > +wait_ready $PORT1 'thread_busy{role="scan"}' 0
> > 
> > Is it really necessary to add all this if this is just a test to
> > check
> > the new headers are sent?
> 
> A lot of the setup is to check that both the archive and regular file
> headers are added. In the attached
> path I removed as much as I felt reasonable. Please get back to me on
> if it is enough.

Ah, yes, of course I had forgotten about the archive headers.

> Subject: [PATCH] debuginfod: PR27277 - Describe retrieved files when verbose
> 
> Allow users, with enough verbosity, to print the HTTP response headers
> upon retrieving a file. These files may include several custome http
> response headers such as X-DEBUGINFOD-FILE, X-DEBUGINFOD-SIZE, and
> X-DEBUGINFOD-ARCHIVE. These headers are added from the daemon, in
> debuginfod.cxx.

> run-debuginfod-fd-prefetch-caches.sh was updated so that it doesn't
> trip and fail as previously greping for a value that should yield zero
> caused an error.

^ This paragraph doesn't document a change in the patch.

> E.g output:
> 
> HTTP/1.1 200 OK
> Connection: Keep-Alive
> Content-Length: 4095072
> Cache-Control: public
> Last-Modified: Thu, 09 Sep 2021 19:06:40 GMT
> X-FILE: debuginfod
> X-FILE-SIZE: 4095072
> Content-Type: application/octet-stream
> Date: Fri, 10 Sep 2021 16:38:06 GMT
> 
> https://sourceware.org/bugzilla/show_bug.cgi?id=27277

But except for that one paragraph in the commit message that shouldn't
be there, this looks good. Please remove that paragraph from the commit
message (or replace it with one describing the new test added), rebase
it against the master branch and push it please.

Thanks,

Mark

  reply	other threads:[~2021-09-16 10:51 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-04 18:54 Noah Sanci
2021-08-05 15:13 ` Mark Wielaard
2021-08-05 16:54   ` Frank Ch. Eigler
2021-08-06 10:04     ` Mark Wielaard
2021-08-06 18:54       ` Frank Ch. Eigler
2021-08-09  9:25         ` Mark Wielaard
2021-08-23 15:11           ` Noah Sanci
2021-08-24  8:18             ` Mark Wielaard
2021-08-27 18:38               ` Noah Sanci
2021-09-08 20:56                 ` Mark Wielaard
2021-09-10 18:22                   ` Noah Sanci
2021-09-12 19:08                     ` Mark Wielaard
2021-09-13 20:07                       ` Noah Sanci
2021-09-16 10:50                         ` Mark Wielaard [this message]
2021-09-22 20:33           ` Frank Ch. Eigler
2021-09-29 14:55             ` Mark Wielaard
2021-09-29 21:28               ` Frank Ch. Eigler
2021-10-05 14:28                 ` Mark Wielaard
2022-07-14 15:32                   ` Noah Sanci
2022-08-04 13:12                     ` Mark Wielaard
     [not found]                       ` <CAJXA7qg09YkxK-NRQ31Hem0+54Us=jYC5+1siPSbHangx=SCow@mail.gmail.com>
2022-08-08 14:35                         ` Mark Wielaard
2021-08-25 18:08 Noah Sanci
2021-09-08 15:01 ` 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=771ec724139520df6d351ed7ea6b2ea525dbac00.camel@klomp.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).