From patchwork Fri Jul 20 11:57:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russell Currey X-Patchwork-Id: 946849 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41X8Xw4CYHz9s7c for ; Fri, 20 Jul 2018 21:58:24 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=russell.cc Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="tonaHHbg"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41X8Xw2TQhzDqHw for ; Fri, 20 Jul 2018 21:58:24 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=russell.cc Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="tonaHHbg"; dkim-atps=neutral X-Original-To: snowpatch@lists.ozlabs.org Delivered-To: snowpatch@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=russell.cc (client-ip=64.147.123.21; helo=wout5-smtp.messagingengine.com; envelope-from=ruscur@russell.cc; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=russell.cc Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="tonaHHbg"; dkim-atps=neutral Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41X8Xf0Rb4zDqD1 for ; Fri, 20 Jul 2018 21:58:10 +1000 (AEST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 07FCA376; Fri, 20 Jul 2018 07:58:07 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 20 Jul 2018 07:58:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=QXiz4eQC+LE1JxyCga0Eh5SMpUPV5BGm56xgpAo8g5s=; b=tonaHHbg RXie2OJJWQdF066P4mUXzp1nckWlhRXsex4RpcmFPx1mn2HCWxMt+8J2cqyFPP+7 mDw8wFn+dgBbA7mMZqn9+BQlvEfPBGj1jtb5hHDeqI1DZKcakWHhJDm/tpslHjoL 1EOOhCdRgaYO6UMDllOw3G7D7zuoaj2ufGo3REVNGqkxEazC6m4+g2VYNM56dMtu TDD2+/ShBHEfPokEZCDJg3YJT1PjDMI4BoHYKdD1pErMbSn0y4+YJPu6cAZDTis/ BnPPl1Y6qR+PsX7xrHT5kDT5EGYKBPAFugPZhn244uJXvr9J5n2MXmnMjy+N/8OM 20RQMJBHXLJh+A== X-ME-Proxy: X-ME-Sender: Received: from snap.ozlabs.ibm.com (unknown [122.99.82.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 055B310269; Fri, 20 Jul 2018 07:58:05 -0400 (EDT) From: Russell Currey To: snowpatch@lists.ozlabs.org, andrew.donnellan@au1.ibm.com Date: Fri, 20 Jul 2018 21:57:28 +1000 Message-Id: <20180720115728.19312-8-ruscur@russell.cc> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180720115728.19312-1-ruscur@russell.cc> References: <20180720115728.19312-1-ruscur@russell.cc> Subject: [snowpatch] [PATCH 8/8] Improve "context" sent in Patchwork checks X-BeenThere: snowpatch@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Continuous Integration for patch-based workflows List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Russell Currey MIME-Version: 1.0 Errors-To: snowpatch-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "snowpatch" No need to mention snowpatch here, it should just be the name of the test. Signed-off-by: Russell Currey Reviewed-by: Andrew Donnellan --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e3b36f2..eb7ffc1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -151,7 +151,7 @@ fn run_tests( format!("Test {} on branch {}", job.title, branch_name.to_string()).to_string(), ), state: test_result, - context: Some(format!("{}-{}", "snowpatch", job.title.replace("/", "_")).to_string()), + context: Some(format!("{}", job.title.replace("/", "_")).to_string()), target_url: Some(jenkins.get_results_url(&build_url_real, &job.parameters)), }); } @@ -227,6 +227,7 @@ fn test_patch( "Successfully applied".to_string() ).to_string(), ), + context: Some("apply_patch".to_string()), ..Default::default() }); } @@ -242,6 +243,7 @@ fn test_patch( "Patch failed to apply".to_string() ).to_string(), ), + context: Some("apply_patch".to_string()), ..Default::default() }); continue; @@ -272,6 +274,7 @@ fn test_patch( results.push(TestResult { state: TestState::Fail, description: Some("Failed to apply to any branch".to_string()), + context: Some("apply_patch".to_string()), ..Default::default() }); }