summaryrefslogtreecommitdiffstats
path: root/scripts/send-error-report
Commit message (Collapse)AuthorAgeFilesLines
* scripts/send-error-report: Rework script to support new featuresMichael Wood2015-03-101-96/+178
| | | | | | | | | | | | | | | | | | | | | | - Add arguments to allow for non-prompted sending, json encoded response and link backs. - Add feature to check the server's max_log_size - Add feature to allow reviewing of the final data - Be a bit more helpful if the expected fields aren't filled in instead of exiting. - Remove the redundant urlencode - Add a user-agent so that the server can identify the encoding method. - Remove custom proxy handling - urllib should 'just work' [YOCTO #6736] [YOCTO #7245] [YOCTO #7105] (From OE-Core rev: 5e036f3fd9caaedcd2759214766b3228299e929b) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/send-error-report: Set exit code if error occursRichard Purdie2015-01-291-1/+5
| | | | | | | | | | | If an error occurs, set an error exit code so the world knows about it. This fixes issues where the autobuilder doesn't notice these failures. [YOCTO #7265] (From OE-Core rev: b219377defc9517af360986352bd7da1a7906f10) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/send-error-report: fetch /Errors/ instead of /.Roxana Ciobanu2014-08-061-1/+1
| | | | | | | | | | | | | | | | | If HTTP_PROXY or http_proxy is set when the send-error-report script is run, it will check to see if fetching / on the specified server returns 200 without the proxy set. If it does it will assume that the proxy is not needed. However this check can never work because fetching / always redirects to /Errors/ in the current code and thus returns code 301. This is fixed by fetching /Errors/ instead of /. [YOCTO #YB6576] (From OE-Core rev: af93c89febcd186d7e31f1d15affc15f38e3379d) Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* report-error: Add posting in the public noteSaul Wold2014-04-241-1/+2
| | | | | | | (From OE-Core rev: c2eb5cd1aa4632f7ee8c261414e599dcb6f40a8b) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/send-error-report: simple hack to use proxy from the enviromentStefan Stanacar2014-04-231-7/+36
| | | | | | | | | | | People behind a proxy couldn't send an error report to an upstream server, this should fix the issue if they use a proxy that doesn't require authentication, or one that uses basic http authentication and it's correctly exported in the enviroment. (From OE-Core rev: a8511ee80246b4e2caa353b87f4b586f1539e6d4) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/send-error-report: use a real server as the defaultStefan Stanacar2014-04-191-1/+1
| | | | | | | | | | | | | Now that there is a public instance [1] of the error report web interface [2], we should set it as the default. [1] http://errors.yoctoproject.org/ [2] http://git.yoctoproject.org/cgit/cgit.cgi/error-report-web/ (From OE-Core rev: 90a955761db4724f0222527a129a3904d6d8aa6e) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* send-error-report: show responseMartin Jansa2014-04-041-2/+4
| | | | | | | | | | * useful when debuging why it was refused by server (From OE-Core rev: 0b8ff2231a36755a71d8bf8c7854364d69ef2df8) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* report-error.bbclass: new class to save build information when errors occurAndreea Proca2014-02-141-0/+78
Class is used to save data about errors after every task that failed. Errors saved as json files in ERROR_REPORT_DIR (defaults to tmp/log/error-report). To use this class one has to add INHERIT += "report-error" to local.conf. scripts/send-error-report is a simple script that sends the json file to a HTTP server that collects data (git://git.yoctoproject.org/error-report-web is a Django web interface that can be used to receive and visualize the error reports). The script will give you an URL where you can find your report. (From OE-Core rev: f186b4c7c6c975638e60b30a512d669dc6dc390f) Signed-off-by: Andreea Proca <andreea.b.proca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
OpenPOWER on IntegriCloud