Mercurial > hg
comparison tests/test-remotefilelog-bgprefetch.t @ 44299:ee0959e7d435 stable
remotefilelog-test: glob some flaky output line (issue6083)
The two following lines are flaky underload, yet the final result is correct.
The command involves background pre-check of output, these are not stable
probably because they run in parallel in multiple process.
I spent a couple of hours trying to understand the pattern and gave up. The
documented intend of these tests is safely guaranteed by checking the cache
content after the command.
If it become useful to start testing precise internal details of the, they will
have to be tested in a more appropriate framework than `.t` tests.
Differential Revision: https://phab.mercurial-scm.org/D8102
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 09 Feb 2020 01:34:37 +0100 |
parents | 612b4b63fb22 |
children | f90a5c211251 |
comparison
equal
deleted
inserted
replaced
44278:27787a43712f | 44299:ee0959e7d435 |
---|---|
176 > EOF | 176 > EOF |
177 | 177 |
178 $ clearcache | 178 $ clearcache |
179 $ find $CACHEDIR -type f | sort | 179 $ find $CACHEDIR -type f | sort |
180 $ echo b > b | 180 $ echo b > b |
181 .. The following output line about files fetches is globed because it is | |
182 .. flaky, the core the test is checked when checking the cache dir, so | |
183 .. hopefully this flakyness is not hiding any actual bug. | |
181 $ hg commit -qAm b | 184 $ hg commit -qAm b |
182 * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob) | 185 * files fetched over 1 fetches - (* misses, 0.00% hit ratio) over *s (glob) (?) |
183 $ hg bookmark temporary | 186 $ hg bookmark temporary |
184 $ find $CACHEDIR -type f | sort | 187 $ find $CACHEDIR -type f | sort |
185 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx | 188 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx |
186 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack | 189 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack |
187 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx | 190 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx |
220 $ hg up -r 2 | 223 $ hg up -r 2 |
221 3 files updated, 0 files merged, 2 files removed, 0 files unresolved | 224 3 files updated, 0 files merged, 2 files removed, 0 files unresolved |
222 (leaving bookmark temporary) | 225 (leaving bookmark temporary) |
223 $ clearcache | 226 $ clearcache |
224 $ find $CACHEDIR -type f | sort | 227 $ find $CACHEDIR -type f | sort |
228 .. The following output line about files fetches is globed because it is | |
229 .. flaky, the core the test is checked when checking the cache dir, so | |
230 .. hopefully this flakyness is not hiding any actual bug. | |
225 $ hg rebase -s temporary -d foo | 231 $ hg rebase -s temporary -d foo |
226 rebasing 3:d9cf06e3b5b6 "b" (temporary tip) | 232 rebasing 3:d9cf06e3b5b6 "b" (temporary tip) |
227 saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/d9cf06e3b5b6-e5c3dc63-rebase.hg | 233 saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/d9cf06e3b5b6-e5c3dc63-rebase.hg |
228 3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over *s (glob) | 234 ? files fetched over ? fetches - (? misses, 0.00% hit ratio) over *s (glob) |
235 $ find $CACHEDIR -type f | sort | |
236 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histidx | |
237 $TESTTMP/hgcache/master/packs/8f1443d44e57fec96f72fb2412e01d2818767ef2.histpack | |
238 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.dataidx | |
239 $TESTTMP/hgcache/master/packs/f4d50848e0b465e9bfd2875f213044c06cfd7407.datapack | |
240 $TESTTMP/hgcache/repos | |
229 | 241 |
230 # Ensure that file 'y' was prefetched - it was not part of the rebase operation and therefore | 242 # Ensure that file 'y' was prefetched - it was not part of the rebase operation and therefore |
231 # could only be downloaded by the background prefetch | 243 # could only be downloaded by the background prefetch |
232 | 244 |
233 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` | 245 $ hg debugdatapack `ls -ct $TESTTMP/hgcache/master/packs/*.datapack | head -n 1` |