Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/84098/?format=api
https://patches.dpdk.org/api/patches/84098/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20201113100605.20669-3-haiyangx.zhao@intel.com/", "project": { "id": 3, "url": "https://patches.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<20201113100605.20669-3-haiyangx.zhao@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20201113100605.20669-3-haiyangx.zhao@intel.com", "date": "2020-11-13T10:06:05", "name": "[V1,2/2] framework/excel_reporter: fix issue of msg exceed xlwt maximum cell length", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "6cf1389cc7cf38b6b8b248a667fcab0d023368d4", "submitter": { "id": 1978, "url": "https://patches.dpdk.org/api/people/1978/?format=api", "name": "Zhao, HaiyangX", "email": "haiyangx.zhao@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20201113100605.20669-3-haiyangx.zhao@intel.com/mbox/", "series": [ { "id": 13867, "url": "https://patches.dpdk.org/api/series/13867/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=13867", "date": "2020-11-13T10:06:03", "name": "framework: fix error msg too long cause saving result failed", "version": 1, "mbox": "https://patches.dpdk.org/series/13867/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/84098/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/84098/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dts-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 4BACBA09DF;\n\tFri, 13 Nov 2020 11:11:42 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id B0E71C87E;\n\tFri, 13 Nov 2020 11:11:40 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id 1A1BAC86E\n for <dts@dpdk.org>; Fri, 13 Nov 2020 11:11:38 +0100 (CET)", "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Nov 2020 02:11:37 -0800", "from unknown (HELO localhost.localdomain) ([10.240.183.57])\n by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Nov 2020 02:11:35 -0800" ], "IronPort-SDR": [ "\n T4txe/sqpwNJ5360JAVxa/lUzb6GSwrJeEbkukGEeZ27FAXw2bCz3eOgO6PLFNO161RBz+nFhc\n 6UIYLQBK3g+g==", "\n vU5QY3RZCElmO0uzwm+U9if6RkQ4kLTcYEcsQsaToPhlmqlWBFzedZkixJ7U4F48OsTmYhM8HB\n cyLP0JyWoulw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9803\"; a=\"166944168\"", "E=Sophos;i=\"5.77,475,1596524400\"; d=\"scan'208\";a=\"166944168\"", "E=Sophos;i=\"5.77,475,1596524400\"; d=\"scan'208\";a=\"474612982\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "From": "Haiyang Zhao <haiyangx.zhao@intel.com>", "To": "dts@dpdk.org,\n\tlijuan.tu@intel.com", "Cc": "Haiyang Zhao <haiyangx.zhao@intel.com>", "Date": "Fri, 13 Nov 2020 18:06:05 +0800", "Message-Id": "<20201113100605.20669-3-haiyangx.zhao@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20201113100605.20669-1-haiyangx.zhao@intel.com>", "References": "<20201113100605.20669-1-haiyangx.zhao@intel.com>", "Subject": "[dts] [PATCH V1 2/2] framework/excel_reporter: fix issue of msg\n\texceed xlwt maximum cell length", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org", "Sender": "\"dts\" <dts-bounces@dpdk.org>" }, "content": "truncate msg length if it exceed xlwt maximun cell\nlegth in case of saving result failed and DTS terminated.\n\nSigned-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>\n---\n framework/excel_reporter.py | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/framework/excel_reporter.py b/framework/excel_reporter.py\nindex 5b8e4cf..65d26b6 100644\n--- a/framework/excel_reporter.py\n+++ b/framework/excel_reporter.py\n@@ -167,7 +167,7 @@ class ExcelReporter(object):\n self.sheet.write(self.row, self.col + 1, result)\n else:\n self.sheet.write(\n- self.row, self.col + 1, result, self.failed_style)\n+ self.row, self.col + 1, result if len(result) < 5000 else result[:2000] + '\\r\\n...\\r\\n...\\r\\n...\\r\\n' + result[-2000:], self.failed_style)\n \n def __write_cases(self, dut, target, suite):\n for case in set(self.result.all_test_cases(dut, target, suite)):\n@@ -198,7 +198,7 @@ class ExcelReporter(object):\n \n def __write_failed_target(self, dut, target):\n msg = \"TARGET ERROR '%s'\" % self.result.target_failed_msg(dut, target)\n- self.sheet.write(self.row, self.col + 4, msg, self.failed_style)\n+ self.sheet.write(self.row, self.col + 4, msg if len(msg) < 5000 else msg[:2000] + '\\r\\n...\\r\\n...\\r\\n...\\r\\n' + msg[-2000:], self.failed_style)\n self.row += 1\n \n def __write_targets(self, dut):\n@@ -214,7 +214,7 @@ class ExcelReporter(object):\n \n def __write_failed_dut(self, dut):\n msg = \"PREREQ FAILED '%s'\" % self.result.dut_failed_msg(dut)\n- self.sheet.write(self.row, self.col + 5, msg, self.failed_style)\n+ self.sheet.write(self.row, self.col + 5, msg if len(msg) < 5000 else msg[:2000] + '\\r\\n...\\r\\n...\\r\\n...\\r\\n' + msg[-2000:], self.failed_style)\n self.row += 1\n \n def __parse_result(self):\n", "prefixes": [ "V1", "2/2" ] }{ "id": 84098, "url": "