Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Dietrich
clang-hash
Commits
b6333d4b
Commit
b6333d4b
authored
Jan 30, 2017
by
Christian Dietrich
Browse files
historical: use tmp logfile to avoid NFS
parent
9ce8b50b
Pipeline
#3069
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
experiments/historical_build.py
View file @
b6333d4b
...
...
@@ -90,8 +90,9 @@ class HistoricalCompilation(Experiment, ClangHashHelper):
"commit-hash"
:
self
.
metadata
[
"project-hash"
],
'builds'
:
[]}
if
self
.
mode
.
value
==
"ccache-clang-hash"
:
os
.
environ
[
"CLANG_HASH_LOGFILE"
]
=
self
.
clang_hash_stats
.
path
hash_log
=
self
.
tmp_directory
.
new_file
(
"clang-hash.log"
)
if
"clang-hash"
in
self
.
mode
.
value
:
os
.
environ
[
"CLANG_HASH_LOGFILE"
]
=
hash_log
.
path
with
self
.
project
as
src_path
:
(
commits
,
_
)
=
shell
(
"cd %s; git log --no-merges --oneline --topo-order --format='%%H %%P %%s'"
,
src_path
)
...
...
@@ -153,6 +154,10 @@ class HistoricalCompilation(Experiment, ClangHashHelper):
if
"ccache"
in
self
.
mode
.
value
:
shell
(
"ccache -s > %s"
,
self
.
ccache_stats
.
path
)
# Copy Log to the result directory
with
open
(
self
.
hash_log
.
path
)
as
fd
:
self
.
clang_hash_stats
.
value
=
fd
.
read
()
def
variant_name
(
self
):
return
"%s-%s"
%
(
self
.
project_name
(),
self
.
metadata
[
'mode'
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment