All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ian Rogers" <irogers@google.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v4 3/3] perf test: Avoid stack trace noise in verbose=1 failure snippets
Date: Mon, 12 Oct 2026 23:53:52 +0000	[thread overview]
Message-ID: <sashiko-outbox-168750@kernel.org> (raw)
In-Reply-To: <20261012234724.721224-4-irogers@google.com>

> When a test fails with a signal or times out, child_test_sig_handler()
> appends '---- unexpected signal (<sig>) ----' followed by a multi-line
> stack trace ('    #0 ...' through '_start').
> 
> In verbose=1 mode, print_test_failure_snippet() selects up to
> failure_snippet_lines (10) lines:
> - Pass 1 selects lines matching failure keywords plus their immediate
>   next line ('    #0 ... in child_test_sig_handler').
> - Pass 2 fills the remaining quota by scanning backwards from the end
>   of the output buffer, which consumes the remaining lines on outermost
>   stack frames ('handle_internal_command', 'run_argv', 'main',
>   '__libc_start_main', '_start') and hides the trailing test output
>   showing where the test had run to.
> 
> Improve print_test_failure_snippet() by:
> - Skipping blank lines and stack trace lines ('    #<digit>...') when
>   selecting context in Pass 1 and when scanning backwards from the end
>   in Pass 2, with a Pass 3 fallback from the top of the buffer if quota
>   still remains.
> - Prioritizing the non-blank line immediately preceding
>   '---- unexpected signal' so there is no '...' gap before the signal
>   message.
> - Only printing '...' between selected lines when at least one non-blank
>   line was omitted between them.
> 
> Assisted-by: Antigravity:gemini-3.1-pro
> Signed-off-by: Ian Rogers <irogers@google.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261012234724.721224-1-irogers@google.com?part=3


      reply	other threads:[~2026-10-12 23:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-28 21:01 [PATCH v1 1/2] perf test: Add per-test timeout support Ian Rogers
2026-09-28 21:01 ` [PATCH v1 2/2] perf test: Improve JUnit XML schema compliance and completeness Ian Rogers
2026-09-28 21:08   ` sashiko-bot
2026-09-28 21:14 ` [PATCH v1 1/2] perf test: Add per-test timeout support sashiko-bot
2026-09-29  1:18 ` [PATCH v2 " Ian Rogers
2026-09-29  1:18   ` [PATCH v2 2/2] perf test: Improve JUnit XML schema compliance and completeness Ian Rogers
2026-09-29  1:24     ` sashiko-bot
2026-09-29  1:31   ` [PATCH v2 1/2] perf test: Add per-test timeout support sashiko-bot
2026-09-29  2:53   ` [PATCH v3 " Ian Rogers
2026-09-29  2:53     ` [PATCH v3 2/2] perf test: Improve JUnit XML schema compliance and completeness Ian Rogers
2026-09-29  2:59       ` sashiko-bot
2026-09-29  3:00     ` [PATCH v3 1/2] perf test: Add per-test timeout support sashiko-bot
2026-10-05 22:44     ` Namhyung Kim
2026-10-12 21:57       ` Ian Rogers
2026-10-12 23:47     ` [PATCH v4 0/3] perf test: Per-test timeouts, JUnit XML compliance, and snippet improvements Ian Rogers
2026-10-12 23:47       ` [PATCH v4 1/3] perf test: Add per-test timeout support Ian Rogers
2026-10-12 23:56         ` sashiko-bot
2026-10-12 23:47       ` [PATCH v4 2/3] perf test: Improve JUnit XML schema compliance and completeness Ian Rogers
2026-10-12 23:54         ` sashiko-bot
2026-10-12 23:47       ` [PATCH v4 3/3] perf test: Avoid stack trace noise in verbose=1 failure snippets Ian Rogers
2026-10-12 23:53         ` sashiko-bot [this message]

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=sashiko-outbox-168750@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=irogers@google.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.