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

launch: update launch process to use new repo initialization

parent 5c23bd930d5c
No related branches found
No related tags found
No related merge requests found
......@@ -241,7 +241,7 @@
if repo_type == 'http' and self.get_asv_rev() in self.get_skip()['hgweb']:
raise NotImplementedError
repo_suffix = urllib.quote_plus(strip)
self.clone_path = os.path.join(REPOS_DIR, '.cache', 'partial-{}-{}'.format(
self.clone_path = os.path.join(REPOS_DIR, '.cache', '{}-partial-{}'.format(
repo_name, repo_suffix))
if revset is not None:
self.rev = self.hg('identify', '-i', '-r', revset).strip()
......
""" Ensure that all repository are cloned and at their tip
"""
import hglib
from os.path import isdir, join
import yaml
def read_configuration(config_path):
with open(config_path) as config_file:
return yaml.load(config_file.read())
def clone_repositories(config, repos_dir):
for repo_name, repo in config["repos"].items():
clonedir = join(repos_dir, repo_name)
if not isdir(clonedir):
print("Cloning %s (%s) into %s" % (repo_name, repo["url"], clonedir))
hglib.clone(repo["url"], clonedir)
else:
print("Repository %s is already cloned" % repo_name)
config = read_configuration("config.yaml")
clone_repositories(config, "repos")
repos:
mercurial-2017:
url: https://www.mercurial-scm.org/repo/hg/
pypy-2017:
url: https://bitbucket.org/pypy/pypy/get/75bf1a9.zip
mozilla-central-2017:
url: https://hg.mozilla.org/mozilla-central
netbeans-2017:
url: http://hg.netbeans.org/main
# a dict of "skipped" benchmarks for features known to be broken for some
# revisions
skip:
......
......@@ -8,8 +8,21 @@
python -m perf system show | grep "OK!"
# Ensure all repository are here
python clone_repos.py
python create_stripped_cached_repos.py
if [ ! -d mercurial ]; then
hg clone https://www.mercurial-scm.org/repo/hg mercurial
fi
mkdir -p repos/
make -f repos.make
mkdir -p repos/.cache
(
cd repos/.cache/;
../../repo-scripts/make-partial-repos ../../partial-sets.yaml ../*.benchrepo
)
rename 's/-reference//' repos/*
python create_skip_file.py
# Launch asv
......
SOURCE=https://static.octobus.net/asv/
repos/mercurial-2018-08-01.benchrepo:
(cd repos/; curl $(SOURCE)/mercurial-2018-08-01-reference.tar | tar x)
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