-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This implements part of what we need with HTTP POST handling, but doesn't include tests and doesn't have fleshed out throttling or storage.
- Loading branch information
Showing
9 changed files
with
263 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
class BotoS3CrashStorage: | ||
def __init__(self, config): | ||
pass | ||
|
||
def save_raw_crash(self, raw_crash, dumps, crash_id): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
ACCEPT = 0 # save and process | ||
DEFER = 1 # save but don't process | ||
DISCARD = 2 # tell client to go away and not come back | ||
IGNORE = 3 # ignore submission entirely | ||
|
||
|
||
class Throttler: | ||
def __init__(self, config): | ||
pass | ||
|
||
def throttle(self, raw_crash): | ||
# FIXME: Implement | ||
return ACCEPT, 100 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"InstallTime": "1357622062", | ||
"Theme": "classic/1.0", | ||
"Version": "4.0a1", | ||
"id": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}", | ||
"Vendor": "Mozilla", | ||
"EMCheckCompatibility": "true", | ||
"Throttleable": "0", | ||
"URL": "http://code.google.com/p/crashme/", | ||
"version": "20.0a1", | ||
"CrashTime": "1357770042", | ||
"ReleaseChannel": "nightly", | ||
"submitted_timestamp": "2013-01-09T22:21:18.646733+00:00", | ||
"buildid": "20130107030932", | ||
"timestamp": 1357770078.646789, | ||
"Notes": "OpenGL: NVIDIA Corporation -- GeForce 8600M GT/PCIe/SSE2 -- 3.3.0 NVIDIA 313.09 -- texture_from_pixmap\r\n", | ||
"StartupTime": "1357769913", | ||
"FramePoisonSize": "4096", | ||
"FramePoisonBase": "7ffffffff0dea000", | ||
"Add-ons": "%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D:20.0a1,crashme%40ted.mielczarek.org:0.4", | ||
"BuildID": "20130107030932", | ||
"SecondsSinceLastCrash": "1831736", | ||
"ProductName": "WaterWolf", | ||
"legacy_processing": 0, | ||
"ProductID": "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters