aboutsummaryrefslogtreecommitdiffstats
path: root/Post/parser.py
AgeCommit message (Collapse)Author
2015-06-04Add a similar errors matching mechanismMichael Wood
This adds the feature to recognise if an error has been reported before. It matches it against the distance with an offset of bytes by using the first error in the database as the prime error. The accuracy is adjustable by setting SIMILAR_FAILURE_DISTANCE. If using the JSON response to a submission you will also get the number of the duplicates and a link to view them. [YOCTO #7798] Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-02parser: Add fall back for regex based parsingMichael Wood
Currently the branch, commit, recipe and recipe_version rely on being in a particular format so that they can be extracted by a regex. If this fails we should fall back and mark these fields just as "unknown" Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-02parser: Fix rename Machine varMichael Wood
This was accidentally renamed in refactoring the parser save routine and failed silently Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-27parser: Add back accidentally removed DATE setterMichael Wood
At some point this should be moved to the model definition Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-27parser: Simplify the orm Build object creationMichael Wood
Also update the error message when we can't parse the json payload Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-02-24parser: Add optional LINK_BACK fieldMichael Wood
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-23Paser: Return a useful error for invalid characters in payloadMichael Wood
If there are invalid characters in the BUILD payload return an error message to that affect. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-23Parser: Add basic catching of exceptions from invalid dataMichael Wood
When we catch these exceptions make sure we send back a useful response and a http 500 status code Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-23Parser: Make sure we respond in JSON format with errors if there are anyMichael Wood
Also make sure the url pattern is properly terminated for the non-json result Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-23Remove unused templates and importsMichael Wood
- Remove unused duplicated templates - Remove unused imports - Add comment to bug about POST request Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-23Parser: Add feature to have the reponse from a submission in JSONMichael Wood
If you wish to have the details of the submission returned in JSON format then append /JSON/ to the submission url. Also add a filter which allows you to view the recorded failures for a specified build /Build/<id>/. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-01-23Parser: Return more details about a successful build error being loggedMichael Wood
Return a json formatted result to show the status of a error submission including the urls for each of the failures logged. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2014-10-23parser: Check for tag markup in the metadata fields0.1v0.1Michael Wood
Before we commit the error report metadata to the database do a rudimentary check on all fields that are passed to the graphs page to avoid any XSS happening. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2014-08-14error-report: add 'Submitted on' columnRoxana Ciobanu
Show the submission date and time for an error in the search results page [YOCTO #6538] Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>
2014-01-29Initial commit of error-report web interfaceAndreea Proca
This is a Django web interface intended to be used with the error-report class from the OE build system. It receives data sent from users using the send-error-report script and saves it in a DB. Using the web interface users are able to search for errors and visualize statistics. Signed-off-by: Andreea Proca <andreea.b.proca@intel.com>