Home | History | Annotate | Download | only in tests

Lines Matching full:commit

89 def send_email_with_attachments(branch, commit, last_commit, args, text, results_files,
95 % (email_header, pid, branch, commit, last_commit,
116 def git_get_changes(branch, commit, last_commit):
119 commits = execute('git log -n 10 %s %s' % (fmt, commit))
121 commits = execute('git --no-pager log %s %s..%s' % (fmt, last_commit, commit))
128 commit = None
135 if len(words) <= 4: # branch + commit + compilerVer + md5
136 commit = words[1]
144 return commit, csize, cspeed, dspeed
147 def benchmark_and_compare(branch, commit, last_commit, args, executableName, md5sum, compilerVersion, resultsFileName,
161 myfile.write('%s %s %s md5=%s\n' % (branch, commit, compilerVersion, md5sum))
167 commit, csize, cspeed, dspeed = get_last_results(resultsFileName)
170 print("%s:%s -%d cSpeed=%6.2f cLast=%6.2f cDiff=%1.4f dSpeed=%6.2f dLast=%6.2f dDiff=%1.4f ratioDiff=%1.4f %s" % (branch, commit, i+1, cspeed[i], last_cspeed[i], cspeed[i]/last_cspeed[i], dspeed[i], last_dspeed[i], dspeed[i]/last_dspeed[i], float(last_csize[i])/csize[i], fileName))
182 def update_config_file(branch, commit):
189 outfile.write(commit)
193 def double_check(branch, commit, args, executableName, md5sum, compilerVersion, resultsFileName, filePath, fileName):
196 text = benchmark_and_compare(branch, commit, last_commit, args, executableName, md5sum, compilerVersion, resultsFileName, filePath, fileName, csize, cspeed, dspeed)
198 log("WARNING: redoing tests for branch %s: commit %s" % (branch, commit))
199 text = benchmark_and_compare(branch, commit, last_commit, args, executableName, md5sum, compilerVersion, resultsFileName, filePath, fileName, csize, cspeed, dspeed)
203 def test_commit(branch, commit, last_commit, args, testFilePaths, have_mutt, have_mail):
205 version = local_branch.rpartition('-')[2] + '_' + commit
223 text = double_check(branch, commit, args, 'lz4', md5_lz4, 'gcc_version='+gcc_version, resultsFileName, filePath, fileName)
228 text = double_check(branch, commit, args, 'lz4c32', md5_lz4c32, 'gcc_version='+gcc_version, resultsFileName, filePath, fileName)
233 text = double_check(branch, commit, args, 'lz4_clang', md5_lz4_clang, 'clang_version='+clang_version, resultsFileName, filePath, fileName)
238 send_email_with_attachments(branch, commit, last_commit, args, text_to_send, results_files, logFileName, have_mutt, have_mail)
318 commit = ""
332 commit = execute('git show -s --format=%h ' + branch, verbose)[0]
333 last_commit = update_config_file(branch, commit)
334 if commit == last_commit:
335 log("skipping branch %s: head %s already processed" % (branch, commit))
337 log("build branch %s: head %s is different from prev %s" % (branch, commit, last_commit))
339 print(git_get_changes(branch, commit, last_commit))
340 test_commit(branch, commit, last_commit, args, testFilePaths, have_mutt, have_mail)
345 commit)