Patchwork test: try to unflaky test-profile.t

login
register
mail settings
Submitter Pierre-Yves David
Date Oct. 2, 2020, 11:57 a.m.
Message ID <39e1477aa4d24bb8933c.1601639860@nodosa.octobus.net>
Download mbox | patch
Permalink /patch/47365/
State Accepted
Headers show

Comments

Pierre-Yves David - Oct. 2, 2020, 11:57 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1601627362 -7200
#      Fri Oct 02 10:29:22 2020 +0200
# Node ID 39e1477aa4d24bb8933ca571c797a257d5e270b8
# Parent  d5407b2e7689c0526ff24bb1434818b8aa9b4fc4
# EXP-Topic flaky-profile
# Available At https://foss.heptapod.net/octobus/mercurial-devel/
#              hg pull https://foss.heptapod.net/octobus/mercurial-devel/ -r 39e1477aa4d2
test: try to unflaky test-profile.t

That test rely on timing measurement, because it is about timing measurement. We
try to filter out the most common source of flakyness (slow disk stating)
Yuya Nishihara - Oct. 3, 2020, 2:11 a.m.
On Fri, 02 Oct 2020 13:57:40 +0200, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@octobus.net>
> # Date 1601627362 -7200
> #      Fri Oct 02 10:29:22 2020 +0200
> # Node ID 39e1477aa4d24bb8933ca571c797a257d5e270b8
> # Parent  d5407b2e7689c0526ff24bb1434818b8aa9b4fc4
> # EXP-Topic flaky-profile
> # Available At https://foss.heptapod.net/octobus/mercurial-devel/
> #              hg pull https://foss.heptapod.net/octobus/mercurial-devel/ -r 39e1477aa4d2
> test: try to unflaky test-profile.t

Queued, thanks.

Patch

diff --git a/tests/test-profile.t b/tests/test-profile.t
--- a/tests/test-profile.t
+++ b/tests/test-profile.t
@@ -87,7 +87,7 @@  statistical profiler works
 Various statprof formatters work
 
   $ hg --profile --config profiling.statformat=byline sleep 2>../out || cat ../out
-  $ head -n 3 ../out
+  $ grep -v _path_stat ../out | head -n 3
     %   cumulative      self          
    time    seconds   seconds  name    
   * sleepext.py:*:sleep (glob)