WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
93789
REGRESSION(
r125153
): It broke the 'Unexpected no expected results' case
https://bugs.webkit.org/show_bug.cgi?id=93789
Summary
REGRESSION(r125153): It broke the 'Unexpected no expected results' case
Csaba Osztrogonác
Reported
2012-08-12 16:18:03 PDT
After this change if there is 'Unexpected no expected results', _parseNewRunWebKitTestsOutput dies with exception: (view as text) Traceback (most recent call last): File "/var/python/lib/python2.6/site-packages/twisted/internet/defer.py", line 290, in addCallbacks self._runCallbacks() File "/var/python/lib/python2.6/site-packages/twisted/internet/defer.py", line 551, in _runCallbacks current.result = callback(current.result, *args, **kw) File "/var/python/lib/python2.6/site-packages/twisted/internet/defer.py", line 368, in callback self._startRunCallbacks(result) File "/var/python/lib/python2.6/site-packages/twisted/internet/defer.py", line 464, in _startRunCallbacks self._runCallbacks() --- <exception caught here> --- File "/var/python/lib/python2.6/site-packages/twisted/internet/defer.py", line 551, in _runCallbacks current.result = callback(current.result, *args, **kw) File "/var/python/lib/python2.6/site-packages/buildbot/process/buildstep.py", line 800, in <lambda> d.addCallback(lambda res: self.commandComplete(cmd)) File "/var/buildbot/master.cfg", line 382, in commandComplete self._parseNewRunWebKitTestsOutput(logText) File "/var/buildbot/master.cfg", line 367, in _parseNewRunWebKitTestsOutput testFailures[name] = testFailures.get(name, 0) + int(match.group(1)) exceptions.ValueError: invalid literal for int() with base 10: 'no expected results found' It seems the regexp is broken. Could you check it, please?
Attachments
regex fix
(1.54 KB, patch)
2012-08-13 00:31 PDT
,
Peter Gal
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Peter Gal
Comment 1
2012-08-13 00:07:06 PDT
This regex is the culprit re.compile(r'(no expected results found|missing results)\s*:\s+\((\d+)\)') Because of the new parentheses the text is the first matching group. The text should be a non-capturing group, like this: re.compile(r'(?:no expected results found|missing results)\s*:\s+\((\d+)\)')
Csaba Osztrogonác
Comment 2
2012-08-13 00:18:17 PDT
(In reply to
comment #1
)
> This regex is the culprit > > re.compile(r'(no expected results found|missing results)\s*:\s+\((\d+)\)') > > Because of the new parentheses the text is the first matching group. The text should be a non-capturing group, like this: > > re.compile(r'(?:no expected results found|missing results)\s*:\s+\((\d+)\)')
Could you upload a patch for it? ;-)
Peter Gal
Comment 3
2012-08-13 00:31:40 PDT
Created
attachment 157932
[details]
regex fix Should fix it (TM) :)
Csaba Osztrogonác
Comment 4
2012-08-13 01:09:27 PDT
Comment on
attachment 157932
[details]
regex fix LGTM,r=me.
Csaba Osztrogonác
Comment 5
2012-08-13 01:11:58 PDT
Comment on
attachment 157932
[details]
regex fix Clearing flags on attachment: 157932 Committed
r125396
: <
http://trac.webkit.org/changeset/125396
>
Csaba Osztrogonác
Comment 6
2012-08-13 01:12:04 PDT
All reviewed patches have been landed. Closing bug.
Csaba Osztrogonác
Comment 7
2012-08-13 01:23:59 PDT
Lucas or Bill, could you restart the buildmaster again, please? (It seems automatic restart still doesn't work.)
Csaba Osztrogonác
Comment 8
2012-08-14 02:09:50 PDT
(In reply to
comment #7
)
> Lucas or Bill, could you restart the buildmaster again, please? > (It seems automatic restart still doesn't work.)
ping? It is very important to restart the master, because now all bots throw exception when somebody lands a new test without expected file. And are you planning to enable automatic master restarting after a master.cfg change?
Lucas Forschler
Comment 9
2012-08-14 11:29:20 PDT
Restarted master but ran into this issue: 2012-08-14 11:27:16-0700 [-] Unhandled Error Traceback (most recent call last): File "/var/python/lib/python2.6/site-packages/twisted/internet/defer.py", line 551, in _runCallbacks current.result = callback(current.result, *args, **kw) File "/var/python/lib/python2.6/site-packages/twisted/internet/defer.py", line 916, in gotResult _deferGenerator(g, deferred) File "/var/python/lib/python2.6/site-packages/twisted/internet/defer.py", line 891, in _deferGenerator result = g.next() File "/var/python/lib/python2.6/site-packages/buildbot/master.py", line 166, in startService self.configFileName) --- <exception caught here> --- File "/var/python/lib/python2.6/site-packages/buildbot/config.py", line 144, in loadConfig exec f in localDict File "/var/buildbot/master.cfg", line 921, in <module> loadBuilderConfig(c) File "/var/buildbot/master.cfg", line 847, in loadBuilderConfig c['slaves'] = [BuildSlave(slave['name'], passwords[slave['name']], max_builds=1) for slave in config['slaves']] exceptions.KeyError: u'indt-mountainlion'
Lucas Forschler
Comment 10
2012-08-14 11:30:22 PDT
I've rolled back until we can investigate the below. I'm not sure why the build master isn't auto-restarting... maybe because it failed to start. Hopefully Bill can investigate then when he returns from vacation. I will also look into it as time allows.
Lucas Forschler
Comment 11
2012-08-14 11:39:36 PDT
it looks like we needed a passwords update. I've fixed that and restarted the master. Things appear to be running now.
Csaba Osztrogonác
Comment 12
2012-11-07 07:01:27 PST
It is fixed long time ago.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug