Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
scmperf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
scmperf
Commits
b29d146ce714
Commit
b29d146ce714
authored
6 years ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
launch: update launch process to use new repo initialization
parent
5c23bd930d5c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
benchmarks/basic_commands.py
+1
-1
1 addition, 1 deletion
benchmarks/basic_commands.py
clone_repos.py
+0
-24
0 additions, 24 deletions
clone_repos.py
config.yaml
+0
-10
0 additions, 10 deletions
config.yaml
launch.sh
+15
-2
15 additions, 2 deletions
launch.sh
repos.make
+4
-0
4 additions, 0 deletions
repos.make
with
20 additions
and
37 deletions
benchmarks/basic_commands.py
+
1
−
1
View file @
b29d146c
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
clone_repos.py
deleted
100644 → 0
+
0
−
24
View file @
5c23bd93
"""
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
"
)
This diff is collapsed.
Click to expand it.
config.yaml
+
0
−
10
View file @
b29d146c
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
:
...
...
This diff is collapsed.
Click to expand it.
launch.sh
+
15
−
2
View file @
b29d146c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
repos.make
0 → 100644
+
4
−
0
View file @
b29d146c
SOURCE
=
https://static.octobus.net/asv/
repos/mercurial-2018-08-01.benchrepo
:
(
cd
repos/
;
curl
$(
SOURCE
)
/mercurial-2018-08-01-reference.tar |
tar
x
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment