annotate tests/test-discovery-obshashrange-cache.t @ 6400:b1d010b2e6c4 mercurial-5.1

test-compat: merge mercurial-5.2 into mercurial-5.1
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 07 Feb 2023 10:22:03 +0400
parents 1c63f58cf880
children 804c55a6a423
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
1 ==============================
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
2 Test cache warming strategy
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
3 test for range based discovery
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
4 ==============================
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
5
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
6 $ . $TESTDIR/testlib/pythonpath.sh
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
7
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
8 $ cat << EOF >> $HGRCPATH
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
9 > [extensions]
5854
b0f35c0a762f tests: cleanup in obshashrange tests
Anton Shestakov <av6@dwimlabs.net>
parents: 5852
diff changeset
10 > evolve =
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
11 > [experimental]
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
12 > obshashrange=1
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
13 > verbose-obsolescence-exchange=1
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
14 > [ui]
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
15 > logtemplate = "{rev} {node|short} {desc} {tags}\n"
5198
cbfd36046969 tests: use appropriate Python (2 or 3) for dummyssh
Anton Shestakov <av6@dwimlabs.net>
parents: 4871
diff changeset
16 > ssh = "$PYTHON" "$RUNTESTDIR/dummyssh"
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
17 > EOF
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
18
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
19 $ hg init main
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
20
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
21 $ hg -R main debugbuilddag '.+7'
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
22
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
23 $ for node in `hg -R main log -T '{node}\n'`; do
5851
0c896e79d9aa tests: simplify character sorting script
Anton Shestakov <av6@dwimlabs.net>
parents: 5198
diff changeset
24 > anc=`echo $node | grep -o . | sort | tr -d "\n"`
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
25 > echo "marking $anc as predecessors of $node"
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
26 > hg -R main debugobsolete $anc $node
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
27 > done
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
28 marking 000011223334456677789aaaaabbbbcccddddeef as predecessors of 4de32a90b66cd083ebf3c00b41277aa7abca51dd
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
29 marking 012234455555666699aaaaabbbccccccefffffff as predecessors of f69452c5b1af6cbaaa56ef50cf94fff5bcc6ca23
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
30 marking 00001122233445555777778889999abbcccddeef as predecessors of c8d03c1b5e94af74b772900c58259d2e08917735
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
31 marking 0011222445667777889999aabbbbcddddeeeeeee as predecessors of bebd167eb94d257ace0e814aeb98e6972ed2970d
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
32 marking 000011222223344555566778899aaaabccddefff as predecessors of 2dc09a01254db841290af0538aa52f6f52c776e3
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
33 marking 01111222223333444455555566999abbbbcceeef as predecessors of 01241442b3c2bf3211e593b549c655ea65b295e3
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
34 marking 01122444445555566677888aabbcccddddefffff as predecessors of 66f7d451a68b85ed82ff5fcc254daf50c74144bd
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
35 marking 000111111234444467777889999aaaabcdeeeeff as predecessors of 1ea73414a91b0920940797d8fc6a11e447f8ea1e
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
36
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
37 $ hg debugobsolete -R main
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
38 000011223334456677789aaaaabbbbcccddddeef 4de32a90b66cd083ebf3c00b41277aa7abca51dd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
39 012234455555666699aaaaabbbccccccefffffff f69452c5b1af6cbaaa56ef50cf94fff5bcc6ca23 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
40 00001122233445555777778889999abbcccddeef c8d03c1b5e94af74b772900c58259d2e08917735 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
41 0011222445667777889999aabbbbcddddeeeeeee bebd167eb94d257ace0e814aeb98e6972ed2970d 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
42 000011222223344555566778899aaaabccddefff 2dc09a01254db841290af0538aa52f6f52c776e3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
43 01111222223333444455555566999abbbbcceeef 01241442b3c2bf3211e593b549c655ea65b295e3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
44 01122444445555566677888aabbcccddddefffff 66f7d451a68b85ed82ff5fcc254daf50c74144bd 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
45 000111111234444467777889999aaaabcdeeeeff 1ea73414a91b0920940797d8fc6a11e447f8ea1e 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
46
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
47 Cache mode is "auto" so local commit did not warm the cache yet
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
48
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
49 $ f -s main/.hg/cache/evoext*
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
50 main/.hg/cache/evoext-obscache-00: size=72
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
51
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
52 Initial push
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
53 ------------
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
54
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
55 $ hg init server
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
56 $ hg -R main push ssh://user@dummy/server
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
57 pushing to ssh://user@dummy/server
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
58 searching for changes
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
59 OBSEXC: computing relevant nodes
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
60 OBSEXC: looking for common markers in 8 nodes
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
61 OBSEXC: computing markers relevant to 8 nodes
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
62 remote: adding changesets
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
63 remote: adding manifests
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
64 remote: adding file changes
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
65 remote: added 8 changesets with 0 changes to 0 files
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
66 remote: 8 new obsolescence markers
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
67
5852
f4b762cf41c0 tests: a bunch of typos in test-discovery-obshashrange-cache.t
Anton Shestakov <av6@dwimlabs.net>
parents: 5851
diff changeset
68 server cache is warm
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
69
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
70 $ f -s server/.hg/cache/evoext*
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
71 server/.hg/cache/evoext-depthcache-00: size=88
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
72 server/.hg/cache/evoext-firstmerge-00: size=88
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
73 server/.hg/cache/evoext-obscache-00: size=72
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
74 server/.hg/cache/evoext-stablesortcache-00: size=92
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
75 server/.hg/cache/evoext_obshashrange_v2.sqlite: size=?* (glob)
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
76 server/.hg/cache/evoext_stablerange_v2.sqlite: size=?* (glob)
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
77
5852
f4b762cf41c0 tests: a bunch of typos in test-discovery-obshashrange-cache.t
Anton Shestakov <av6@dwimlabs.net>
parents: 5851
diff changeset
78 client cache is warm
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
79
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
80 $ f -s main/.hg/cache/evoext*
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
81 main/.hg/cache/evoext-depthcache-00: size=88
3966
ea7687a9a4b8 obshashrange: force saving of stablesort and firstmerge cache
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3965
diff changeset
82 main/.hg/cache/evoext-firstmerge-00: size=88
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
83 main/.hg/cache/evoext-obscache-00: size=72
3966
ea7687a9a4b8 obshashrange: force saving of stablesort and firstmerge cache
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3965
diff changeset
84 main/.hg/cache/evoext-stablesortcache-00: size=92
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
85 main/.hg/cache/evoext_obshashrange_v2.sqlite: size=?* (glob)
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
86 main/.hg/cache/evoext_stablerange_v2.sqlite: size=?* (glob)
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
87
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
88 initial pull
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
89 ------------
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
90
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
91 $ rm -rf main
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
92 $ hg init main
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
93 $ hg -R main pull ssh://user@dummy/server
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
94 pulling from ssh://user@dummy/server
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
95 requesting all changes
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
96 adding changesets
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
97 adding manifests
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
98 adding file changes
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
99 added 8 changesets with 0 changes to 0 files
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
100 8 new obsolescence markers
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
101 new changesets 1ea73414a91b:4de32a90b66c
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
102 (run 'hg update' to get a working copy)
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
103
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
104 client cache is empty because the discovery was empty
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
105
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
106 $ f -s main/.hg/cache/evoext*
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
107 main/.hg/cache/evoext-obscache-00: size=72
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
108
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
109 no op pull
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
110 ------------
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
111
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
112 clear cache
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
113
5974
f56e36b5f0a9 tests: actually remove evoext cache files
Anton Shestakov <av6@dwimlabs.net>
parents: 5869
diff changeset
114 $ rm main/.hg/cache/evoext*
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
115
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
116 pull nothing
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
117
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
118 $ hg -R main pull ssh://user@dummy/server
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
119 pulling from ssh://user@dummy/server
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
120 searching for changes
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
121 no changes found
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
122 OBSEXC: looking for common markers in 8 nodes
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
123
5852
f4b762cf41c0 tests: a bunch of typos in test-discovery-obshashrange-cache.t
Anton Shestakov <av6@dwimlabs.net>
parents: 5851
diff changeset
124 client cache is warm
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
125
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
126 $ f -s main/.hg/cache/evoext*
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
127 main/.hg/cache/evoext-depthcache-00: size=88
3966
ea7687a9a4b8 obshashrange: force saving of stablesort and firstmerge cache
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3965
diff changeset
128 main/.hg/cache/evoext-firstmerge-00: size=88
ea7687a9a4b8 obshashrange: force saving of stablesort and firstmerge cache
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3965
diff changeset
129 main/.hg/cache/evoext-stablesortcache-00: size=92
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
130 main/.hg/cache/evoext_obshashrange_v2.sqlite: size=?* (glob)
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
131 main/.hg/cache/evoext_stablerange_v2.sqlite: size=?* (glob)
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
132
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
133 no op push
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
134 ------------
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
135
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
136 clear cache
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
137
5974
f56e36b5f0a9 tests: actually remove evoext cache files
Anton Shestakov <av6@dwimlabs.net>
parents: 5869
diff changeset
138 $ rm main/.hg/cache/evoext*
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
139
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
140 push nothing
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
141
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
142 $ hg -R main push ssh://user@dummy/server
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
143 pushing to ssh://user@dummy/server
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
144 searching for changes
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
145 OBSEXC: computing relevant nodes
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
146 OBSEXC: looking for common markers in 8 nodes
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
147 OBSEXC: markers already in sync
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
148 no changes found
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
149 [1]
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
150
6354
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
151 suddenly cache is inaccessible, check that the push still succeeds (issue6246)
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
152
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
153 $ chmod 0000 server/.hg/cache/*.sqlite
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
154
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
155 $ hg -R main push ssh://user@dummy/server
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
156 pushing to ssh://user@dummy/server
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
157 searching for changes
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
158 OBSEXC: computing relevant nodes
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
159 OBSEXC: looking for common markers in 8 nodes
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
160 OBSEXC: markers already in sync
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
161 no changes found
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
162 [1]
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
163
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
164 $ chmod 0644 server/.hg/cache/*.sqlite
1c63f58cf880 test-compat: merge mercurial-5.2 into mercurial-5.1
Anton Shestakov <av6@dwimlabs.net>
parents: 6070
diff changeset
165
5852
f4b762cf41c0 tests: a bunch of typos in test-discovery-obshashrange-cache.t
Anton Shestakov <av6@dwimlabs.net>
parents: 5851
diff changeset
166 client cache is warm
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
167
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
168 $ f -s main/.hg/cache/evoext*
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
169 main/.hg/cache/evoext-depthcache-00: size=88
3966
ea7687a9a4b8 obshashrange: force saving of stablesort and firstmerge cache
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3965
diff changeset
170 main/.hg/cache/evoext-firstmerge-00: size=88
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
171 main/.hg/cache/evoext-obscache-00: size=72
3966
ea7687a9a4b8 obshashrange: force saving of stablesort and firstmerge cache
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3965
diff changeset
172 main/.hg/cache/evoext-stablesortcache-00: size=92
3965
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
173 main/.hg/cache/evoext_obshashrange_v2.sqlite: size=?* (glob)
d4ae0e3ec743 test: add a test about cache warming
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
diff changeset
174 main/.hg/cache/evoext_stablerange_v2.sqlite: size=?* (glob)
5860
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
175
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
176 let's look at the contents of the caches
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
177
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
178 the reason we're doing this is to make sure our serialization works the same
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
179 way on all platforms, see https://bz.mercurial-scm.org/show_bug.cgi?id=6354
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
180
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
181 we don't need to check sqlite caches
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
182
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
183 $ f -H main/.hg/cache/evoext-*
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
184 main/.hg/cache/evoext-depthcache-00:
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
185 0000: 00 00 00 07 4d e3 2a 90 b6 6c d0 83 eb f3 c0 0b |....M.*..l......|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
186 0010: 41 27 7a a7 ab ca 51 dd 01 00 00 00 00 00 00 00 |A'z...Q.........|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
187 0020: 02 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 |................|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
188 0030: 04 00 00 00 00 00 00 00 05 00 00 00 00 00 00 00 |................|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
189 0040: 06 00 00 00 00 00 00 00 07 00 00 00 00 00 00 00 |................|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
190 0050: 08 00 00 00 00 00 00 00 |........|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
191 main/.hg/cache/evoext-firstmerge-00:
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
192 0000: 00 00 00 07 4d e3 2a 90 b6 6c d0 83 eb f3 c0 0b |....M.*..l......|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
193 0010: 41 27 7a a7 ab ca 51 dd ff ff ff ff ff ff ff ff |A'z...Q.........|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
194 0020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
195 0030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
196 0040: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
197 0050: ff ff ff ff ff ff ff ff |........|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
198 main/.hg/cache/evoext-obscache-00:
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
199 0000: 00 00 00 00 00 00 00 07 4d e3 2a 90 b6 6c d0 83 |........M.*..l..|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
200 0010: eb f3 c0 0b 41 27 7a a7 ab ca 51 dd 00 00 00 00 |....A'z...Q.....|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
201 0020: 00 00 00 08 00 00 00 00 00 00 02 29 4c 16 b4 10 |...........)L...|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
202 0030: 03 f6 c1 57 8d 58 25 ef c7 73 cd 79 03 4b fb 46 |...W.X%..s.y.K.F|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
203 0040: 00 00 00 00 00 00 00 00 |........|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
204 main/.hg/cache/evoext-stablesortcache-00:
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
205 0000: 00 00 00 07 4d e3 2a 90 b6 6c d0 83 eb f3 c0 0b |....M.*..l......|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
206 0010: 41 27 7a a7 ab ca 51 dd 00 00 00 40 00 00 00 00 |A'z...Q....@....|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
207 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
208 0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
209 0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
ed0b6dd95d66 tests: add a content check for evoext-* caches
Anton Shestakov <av6@dwimlabs.net>
parents: 5854
diff changeset
210 0050: 00 00 00 00 00 00 00 00 00 00 00 00 |............|