Commit b6333d4b authored by Christian Dietrich's avatar Christian Dietrich
Browse files

historical: use tmp logfile to avoid NFS

parent 9ce8b50b
Pipeline #3069 passed with stage
in 0 seconds
......@@ -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'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment