Implementing warning to tell people that the rebuild may not be related to the last
This commit is contained in:
parent
1e3c3def7c
commit
eea5b06bff
3 changed files with 19 additions and 5 deletions
|
@ -19,12 +19,16 @@ class CopyOldGDBSumFile (ShellCommand):
|
||||||
def evaluateCommand (self, cmd):
|
def evaluateCommand (self, cmd):
|
||||||
rev = self.getProperty('got_revision')
|
rev = self.getProperty('got_revision')
|
||||||
builder = self.getProperty('buildername')
|
builder = self.getProperty('buildername')
|
||||||
istry = self.getProperty('isTryBuilder')
|
istrybuilder = self.getProperty('isTryBuilder')
|
||||||
|
isrebuild = self.getProperty ('isRebuild')
|
||||||
branch = self.getProperty('branch')
|
branch = self.getProperty('branch')
|
||||||
wb = get_web_base ()
|
wb = get_web_base ()
|
||||||
if branch is None:
|
if branch is None:
|
||||||
branch = 'master'
|
branch = 'master'
|
||||||
|
|
||||||
|
if (istrybuilder and istrybuilder == 'yes') or (isrebuild and isrebuild == 'yes'):
|
||||||
|
return SUCCESS
|
||||||
|
|
||||||
# Switch to the right branch inside the BUILDER repo
|
# Switch to the right branch inside the BUILDER repo
|
||||||
switch_to_branch (builder, branch)
|
switch_to_branch (builder, branch)
|
||||||
|
|
||||||
|
|
|
@ -102,18 +102,24 @@ class SaveGDBResults (ShellCommand):
|
||||||
rev = self.getProperty ('got_revision')
|
rev = self.getProperty ('got_revision')
|
||||||
builder = self.getProperty ('buildername')
|
builder = self.getProperty ('buildername')
|
||||||
istry = self.getProperty ('isTryBuilder')
|
istry = self.getProperty ('isTryBuilder')
|
||||||
|
isrebuild = self.getProperty ('isRebuild')
|
||||||
branch = self.getProperty ('branch')
|
branch = self.getProperty ('branch')
|
||||||
repodir = os.path.join (get_web_base (), builder)
|
repodir = os.path.join (get_web_base (), builder)
|
||||||
full_tag = "%s-%s-%s" % (datetime.now ().strftime ("%Y%m%d-%H%M%S"), rev, branch)
|
full_tag = "%s-%s-%s" % (datetime.now ().strftime ("%Y%m%d-%H%M%S"), rev, branch)
|
||||||
|
|
||||||
if branch is None:
|
if branch is None:
|
||||||
branch = 'master'
|
branch = 'master'
|
||||||
if istry and istry == 'yes':
|
|
||||||
# Do nothing
|
|
||||||
return SUCCESS
|
|
||||||
|
|
||||||
repo = git.Repo.init (path = repodir)
|
repo = git.Repo.init (path = repodir)
|
||||||
|
|
||||||
|
if (istry and istry == 'yes') or (isrebuild and isrebuild == 'yes'):
|
||||||
|
# Do nothing
|
||||||
|
if branch in repo.heads:
|
||||||
|
# We have to clean the branch because otherwise this
|
||||||
|
# can confuse other builds
|
||||||
|
repo.git.execute (['git', 'checkout', '*'])
|
||||||
|
return SUCCESS
|
||||||
|
|
||||||
if 'master' not in repo.heads:
|
if 'master' not in repo.heads:
|
||||||
with open (os.path.join (repodir, 'README'), 'w') as f:
|
with open (os.path.join (repodir, 'README'), 'w') as f:
|
||||||
f.write ("git repo for GDB test results -- %s" % builder)
|
f.write ("git repo for GDB test results -- %s" % builder)
|
||||||
|
|
|
@ -178,6 +178,8 @@ send to the gdb-testers mailing list."""
|
||||||
git_url = "http://gdb-build.sergiodj.net/cgit"
|
git_url = "http://gdb-build.sergiodj.net/cgit"
|
||||||
branch = build.getSourceStamps ()[0].branch
|
branch = build.getSourceStamps ()[0].branch
|
||||||
cur_change = build.getSourceStamps ()[0].changes[0]
|
cur_change = build.getSourceStamps ()[0].changes[0]
|
||||||
|
properties = build.getProperties ()
|
||||||
|
isrebuild = properties.getProperty ('isRebuild')
|
||||||
|
|
||||||
# Sending the root message to gdb-testers.
|
# Sending the root message to gdb-testers.
|
||||||
SendRootMessageGDBTesters (branch, cur_change)
|
SendRootMessageGDBTesters (branch, cur_change)
|
||||||
|
@ -223,6 +225,8 @@ send to the gdb-testers mailing list."""
|
||||||
# Including the 'regressions' log. This is the 'diff' of what
|
# Including the 'regressions' log. This is the 'diff' of what
|
||||||
# went wrong.
|
# went wrong.
|
||||||
text += "\n"
|
text += "\n"
|
||||||
|
if isrebuild and isrebuild == 'yes':
|
||||||
|
text += "\nWARNING: This was a REBUILD request! The previous build (build #%s) MAY NOT BE the ancestor of the current build!\n\n" % properties.getProperty ('buildnumber')
|
||||||
found_regressions = False
|
found_regressions = False
|
||||||
for log in build.getLogs ():
|
for log in build.getLogs ():
|
||||||
st = log.getStep ()
|
st = log.getStep ()
|
||||||
|
@ -266,7 +270,7 @@ send to the gdb-testers mailing list."""
|
||||||
if found_regressions:
|
if found_regressions:
|
||||||
for log in build.getLogs ():
|
for log in build.getLogs ():
|
||||||
if log.getStep ().getName () == 'regressions' and log.getName () == 'baseline_diff':
|
if log.getStep ().getName () == 'regressions' and log.getName () == 'baseline_diff':
|
||||||
text += "\n\n*** Also, the following failures have been found when comparing to the baseline ***\n"
|
text += "\n\n*** Regressions against the baseline ***\n"
|
||||||
text += "============================\n"
|
text += "============================\n"
|
||||||
text += log.getText ()
|
text += log.getText ()
|
||||||
text += "============================\n"
|
text += "============================\n"
|
||||||
|
|
Loading…
Reference in a new issue