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

benchmark: introduce a ssh variant to pull benchmark

parent 59fe2d3c
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
copy-data-env = true
[simple-command]
command='hg pull $ISSUE6528_ARG $PULLED_DELTA_REUSE_CFG -R temporary-pull-local temporary-pull-remote'
command='hg pull $ISSUE6528_ARG $PULLED_DELTA_REUSE_CFG -R temporary-pull-local'
prepare-run = """
if [ ! -d temporary-pull-remote ]; then
hg -R $MAIN_REPO debugupdatecache;
......@@ -19,6 +19,12 @@
fi
rm -rf temporary-pull-local
cp --archive --recursive --reflink=auto "$MAIN_REPO" temporary-pull-local;
echo '[paths]' >> temporary-pull-local/.hg/hgrc
if [ $PROTO == "ssh" ]; then
echo "default=ssh://localhost/$PWD/temporary-pull-remote" >> temporary-pull-local/.hg/hgrc
else
echo "default=../temporary-pull-remote" >> temporary-pull-local/.hg/hgrc
fi
"""
[environment]
MAIN_REPO="DATA-VARS:mercurial.main-repo-path"
......@@ -79,3 +85,12 @@
[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\""
......@@ -161,6 +161,9 @@
- default (default)
- fix-incoming
- disabled
* protocol:
- local (default)
- ssh
* pulled-delta-reuse-policy:
- default (default)
- forced
......
......@@ -69,5 +69,5 @@
$ poulpe den-generate-tasks --all-variants hg:MERCURIAL_VERSION=6.5.3 > tasks
$ wc -l < tasks
1418
1634
$ sort --unique < tasks | wc -l
......@@ -73,5 +73,5 @@
$ sort --unique < tasks | wc -l
1418
1634
$ 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
709
817
$ sort --unique < tasks | wc -l
......@@ -95,5 +95,5 @@
$ sort --unique < tasks | wc -l
709
817
$ 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
709
817
$ sort --unique < tasks | wc -l
......@@ -114,5 +114,5 @@
$ sort --unique < tasks | wc -l
709
817
$ 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
1350
1566
$ sort --unique < tasks | wc -l
......@@ -160,5 +160,5 @@
$ sort --unique < tasks | wc -l
1350
1566
$ 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