Skip to content
Snippets Groups Projects
Commit 890879da authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

benchmark: introduce a ssh variant to push benchmark

parent ca0b78f1
No related branches found
No related tags found
No related merge requests found
......@@ -7,9 +7,9 @@
copy-data-env = true
[simple-command]
command='hg push --force $ISSUE6528_ARG $PULLED_DELTA_REUSE_CFG -R temporary-push-local temporary-push-remote'
command='hg push --force $ISSUE6528_ARG $PULLED_DELTA_REUSE_CFG -R temporary-push-local'
prepare-run = """
if [ ! -d temporary-push-local ]; then
hg -R $MAIN_REPO debugupdatecache;
cp --archive --recursive --reflink=auto "$MAIN_REPO" temporary-push-local;
hg -R temporary-push-local unbundle $BUNDLE_PATH
......@@ -11,8 +11,14 @@
prepare-run = """
if [ ! -d temporary-push-local ]; then
hg -R $MAIN_REPO debugupdatecache;
cp --archive --recursive --reflink=auto "$MAIN_REPO" temporary-push-local;
hg -R temporary-push-local unbundle $BUNDLE_PATH
echo '[paths]' >> temporary-push-local/.hg/hgrc
if [ $PROTO == "ssh" ]; then
echo "default=ssh://localhost/$PWD/temporary-push-remote" >> temporary-push-local/.hg/hgrc
else
echo "default=../temporary-push-remote" >> temporary-push-local/.hg/hgrc
fi
hg -R temporary-push-local debugupdatecache;
hg -R "$MAIN_REPO" log --rev tip -T '{node}\n' > LAST_COMMON.txt
hg -R temporary-push-local log --rev "heads(nodefromfile(LAST_COMMON.txt):)" -T '--rev {node} ' > OUT_NODES.txt
......@@ -87,3 +93,11 @@
[simple-command.variants.dimensions.explicit-rev.tip]
extend-command = " --rev tip"
[simple-command.variants.dimensions.protocol.local]
default=true
environment.PROTO="local"
[simple-command.variants.dimensions.protocol.ssh]
environment.PROTO="ssh"
extend-command = " --config ui.remotecmd=\"$POULPE_SSH_REMOTE_HG\""
......@@ -183,6 +183,9 @@
- default (default)
- fix-incoming
- disabled
* protocol:
- local (default)
- ssh
* reuse-external-delta-parent:
- default (default)
- yes
......
......@@ -69,5 +69,5 @@
$ poulpe den-generate-tasks --all-variants hg:MERCURIAL_VERSION=6.5.3 > tasks
$ wc -l < tasks
1634
1958
$ sort --unique < tasks | wc -l
......@@ -73,5 +73,5 @@
$ sort --unique < tasks | wc -l
1634
1958
$ head tasks
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/cat.pbd:files=all-root:output=plain:rev=tip
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/cat.pbd:files=all-root:output=json:rev=tip
......@@ -91,5 +91,5 @@
> --data-env-filter mercurial.repo.graph.visible-revision-count="re:^1....$" \
> > tasks
$ wc -l < tasks
817
979
$ sort --unique < tasks | wc -l
......@@ -95,5 +95,5 @@
$ sort --unique < tasks | wc -l
817
979
$ head tasks
RUN hg:MERCURIAL_VERSION=6.5.3 foo hg/cat.pbd:files=all-root:output=plain:rev=tip
RUN hg:MERCURIAL_VERSION=6.5.3 foo hg/cat.pbd:files=all-root:output=json:rev=tip
......@@ -110,5 +110,5 @@
> --data-env-filter name="ba-bar" \
> > tasks
$ wc -l < tasks
817
979
$ sort --unique < tasks | wc -l
......@@ -114,5 +114,5 @@
$ sort --unique < tasks | wc -l
817
979
$ head tasks
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/cat.pbd:files=all-root:output=plain:rev=tip
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/cat.pbd:files=all-root:output=json:rev=tip
......@@ -156,5 +156,5 @@
> --benchmark-variant-filter files="re:^.*shuffled$" \
> > tasks
$ wc -l < tasks
1566
1890
$ sort --unique < tasks | wc -l
......@@ -160,5 +160,5 @@
$ sort --unique < tasks | wc -l
1566
1890
$ head tasks
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/cat.pbd:files=all-list-path-shuffled:output=plain:rev=tip
RUN hg:MERCURIAL_VERSION=6.5.3 bar hg/cat.pbd:files=all-list-path-shuffled:output=json:rev=tip
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment