comparison tests/test-remotefilelog-local.t @ 50078:983e2db18d67 stable

test: fix the flakyness in test-remotefilelog-local.t I now get about 80% of my `test-chg` CI run that fails on flakyness in this tests. It turns out this is only ambiguous status that end up doing file download. So… calling status early will do that potential download separately and the calls we scrutinize during that test will be just fine.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 16 Feb 2023 20:33:14 +0100
parents 47a9527731c3
children
comparison
equal deleted inserted replaced
49977:b5ecd0bcbcd7 50078:983e2db18d67
75 n 644 2 * x (glob) 75 n 644 2 * x (glob)
76 n 644 2 * y (glob) 76 n 644 2 * y (glob)
77 n 644 2 * z (glob) 77 n 644 2 * z (glob)
78 $ echo xxxx > x 78 $ echo xxxx > x
79 $ echo yyyy > y 79 $ echo yyyy > y
80 # run status early to avoid a flaky second fetch during commit.
81 $ hg st
82 M x
83 M y
84 \d+ files fetched over \d+ fetches .* (re) (?)
80 $ hg commit -m x 85 $ hg commit -m x
81 created new head 86 created new head
82 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob) 87 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob)
83 88
84 # restore state for future tests 89 # restore state for future tests
102 adding file changes 107 adding file changes
103 added 1 changesets with 0 changes to 0 files (+1 heads) 108 added 1 changesets with 0 changes to 0 files (+1 heads)
104 new changesets fed61014d323 109 new changesets fed61014d323
105 (run 'hg heads' to see heads, 'hg merge' to merge) 110 (run 'hg heads' to see heads, 'hg merge' to merge)
106 111
112 # run status early to avoid a flaky second fetch during commit
113 $ hg status
114 \d+ files fetched over \d+ fetches .* (re) (?)
107 $ hg rebase -d tip 115 $ hg rebase -d tip
108 rebasing 1:9abfe7bca547 "a" 116 rebasing 1:9abfe7bca547 "a"
109 saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/9abfe7bca547-8b11e5ff-rebase.hg (glob) 117 saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/9abfe7bca547-8b11e5ff-rebase.hg (glob)
110 3 files fetched over 2 fetches - (3 misses, 0.00% hit ratio) over *s (glob) 118 3 files fetched over 2 fetches - (3 misses, 0.00% hit ratio) over *s (glob)
111 119