Skip to content

Commit

Permalink
Merge pull request #2761 from twobraids/bug-1159993-fennec-on-wrong-c…
Browse files Browse the repository at this point in the history
…hannel

fixes bug 1159993 - rewrite release channel for certain Fennec
  • Loading branch information
rhelmer committed Apr 30, 2015
2 parents 33b54d1 + 9659afc commit 5a90c90
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion socorro/processor/mozilla_processor_2015.py
Expand Up @@ -17,7 +17,8 @@
"socorro.processor.mozilla_transform_rules.ESRVersionRewrite,"
"socorro.processor.mozilla_transform_rules.PluginContentURL,"
"socorro.processor.mozilla_transform_rules.PluginUserComment,"
"socorro.processor.mozilla_transform_rules.WebAppRuntime"
"socorro.processor.mozilla_transform_rules.WebAppRuntime,"
"socorro.processor.mozilla_transform_rules.FennecBetaError20150430"

],
[ # rules to transform a raw crash into a processed crash
Expand Down
21 changes: 21 additions & 0 deletions socorro/processor/mozilla_transform_rules.py
Expand Up @@ -922,3 +922,24 @@ def _action(self, raw_crash, raw_dumps, processed_crash, processor_meta):
except KeyError:
return False
return True


#==============================================================================
class FennecBetaError20150430(Rule):

#--------------------------------------------------------------------------
def version(self):
return '1.0'

#--------------------------------------------------------------------------
def _predicate(self, raw_crash, raw_dumps, processed_crash, proc_meta):
return raw_crash['ProductName'].startswith('Fennec') and \
raw_crash['BuildID'] == '20150427090529' and \
raw_crash['ReleaseChannel'] == 'release'

#--------------------------------------------------------------------------
def _action(self, raw_crash, raw_dumps, processed_crash, processor_meta):
raw_crash['ReleaseChannel'] = 'beta'
return True


0 comments on commit 5a90c90

Please sign in to comment.