All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: [OSSTEST PATCH 01/25] Osstest.pm: Provide new db_prepare helper with built-in debugging
Date: Thu, 18 Jun 2015 16:46:23 +0100	[thread overview]
Message-ID: <1434642383.28264.47.camel@citrix.com> (raw)
In-Reply-To: <21890.58544.135482.842395@mariner.uk.xensource.com>

On Thu, 2015-06-18 at 16:33 +0100, Ian Jackson wrote:
> Ian Jackson writes ("[OSSTEST PATCH 01/25] Osstest.pm: Provide new db_prepare helper with built-in debugging"):
> > No callers, so no functional change, as yet.
> 
> > +sub db_prepare ($) {
> > +    # caller must ensure global filehandle DEBUG is open
> > +    my ($stmt) = @_;
> > +    print ::DEBUG "DB PREPARING:\n$stmt\n";
> > +    return $dbh_tests->prepare($stmt);
> 
> This generates:
> 
> Name "main::DEBUG" used only once: possible typo at Osstest.pm line
> 274.
> 
> Here is a v2 of this patch which fixes it.
> 
> Ian.
> 
> commit bd7cf4f0f1a8c45d840528bc28dbd89b34732d7a
> Author: Ian Jackson <ian.jackson@eu.citrix.com>
> Date:   Fri May 29 13:19:39 2015 +0000
> 
>     Osstest.pm: Provide new db_prepare helper with built-in debugging
>     
>     No callers, so no functional change, as yet.
>     
>     Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
>     Acked-by: Ian Campbell <ian.campbell@citrix.com>
>     ---
>     v2: Suppress "used only once" warning
> 
> diff --git a/Osstest.pm b/Osstest.pm
> index e8bd77b..8948666 100644
> --- a/Osstest.pm
> +++ b/Osstest.pm
> @@ -35,7 +35,7 @@ BEGIN {
>                        getmethod
>                        postfork
>                        $dbh_tests db_retry db_retry_retry db_retry_abort
> -                      db_begin_work
> +                      db_begin_work db_prepare
>                        ensuredir get_filecontents_core_quiet system_checked
>                        nonempty visible_undef show_abs_time
>                        );
> @@ -49,6 +49,10 @@ our $mjobdb;
>  
>  our $dbh_tests;
>  
> +scalar *main::DEBUG;
> +# declaration prevents `Name "main::DEBUG" used only once'
> +# scalar prevents `useless use of a variable in void context'

um, wow ;-)

I suppose you will push this?

  reply	other threads:[~2015-06-18 16:24 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-17 16:44 [OSSTEST PATCH 00/25] Reporting improvements Ian Jackson
2015-06-17 16:44 ` [OSSTEST PATCH 01/25] Osstest.pm: Provide new db_prepare helper with built-in debugging Ian Jackson
2015-06-18 15:33   ` Ian Jackson
2015-06-18 15:46     ` Ian Campbell [this message]
2015-06-17 16:44 ` [OSSTEST PATCH 02/25] sg-report-job-history: Use db_prepare Ian Jackson
2015-06-17 16:44 ` [OSSTEST PATCH 03/25] cs-bisection-step: " Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 04/25] sg-report-flight: " Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 05/25] sg-report-job-history: Add a debugging statement Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 06/25] sg-report-job-history: Slightly prettify sql Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 07/25] sg-report-job-history: Cope if history too short Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 08/25] sg-report-job-history: Show start time Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 09/25] reporting: Move report_run_getinfo and some colours into Executive.pm Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 10/25] reporting: Add colours as optional export tag, and provide $blue Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 11/25] reporting: Show slightly better info for broken jobs Ian Jackson
2015-06-18  8:44   ` Ian Campbell
2015-06-17 16:45 ` [OSSTEST PATCH 12/25] reporting: Move job histories into history/ Ian Jackson
2015-06-18  8:45   ` Ian Campbell
2015-06-17 16:45 ` [OSSTEST PATCH 13/25] reporting: Move bisection report outputs Ian Jackson
2015-06-18  8:45   ` Ian Campbell
2015-06-17 16:45 ` [OSSTEST PATCH 14/25] reporting: sg-report-flight should ignore missing jobs Ian Jackson
2015-06-18  8:46   ` Ian Campbell
2015-06-17 16:45 ` [OSSTEST PATCH 15/25] sg-report-host-history: Introduce new script Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 16/25] sg-report-host-history: Break out computeflightsrange Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 17/25] sg-report-host-history: Move query preparation into jobquery Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 18/25] sg-report-host-history: Move database manipulations Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 19/25] sg-report-host-history: Use a hash for hosts Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 20/25] sg-report-host-history: Support flight:FLIGHT Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 21/25] sg-report-host-history: Aggregate runvars query for all hosts Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 22/25] sg-report-host-history: Move per-row endedq query into per-host transaction Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 23/25] sg-report-host-history: Show "running" jobs as "incomplete" Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 24/25] sg-report-host-history: Make --html-dir have to be host/ Ian Jackson
2015-06-17 16:45 ` [OSSTEST PATCH 25/25] cri-args-hostlists: Run sg-report-host-history Ian Jackson
2015-06-18  8:47   ` Ian Campbell
2015-06-18  9:06 ` [OSSTEST PATCH 00/25] Reporting improvements Ian Campbell
2015-06-18 11:21   ` Ian Jackson
2015-06-18 14:21     ` Ian Campbell
2015-06-18 14:36       ` Ian Jackson

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=1434642383.28264.47.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.