zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ph...@apache.org
Subject zookeeper git commit: Fixed URL encoding - seems the new version of Jenkins is more strict and this was failing as a result of recent upgrade of the system
Date Wed, 18 Jul 2018 18:07:16 GMT
Repository: zookeeper
Updated Branches:
  refs/heads/jenkins-tools 065c43f83 -> 06b9507ab


Fixed URL encoding - seems the new version of Jenkins is more strict and this was failing
as a result of recent upgrade of the system

Change-Id: I035e4eb753d12da47d7a0a94724f4a8feedd0341


Project: http://git-wip-us.apache.org/repos/asf/zookeeper/repo
Commit: http://git-wip-us.apache.org/repos/asf/zookeeper/commit/06b9507a
Tree: http://git-wip-us.apache.org/repos/asf/zookeeper/tree/06b9507a
Diff: http://git-wip-us.apache.org/repos/asf/zookeeper/diff/06b9507a

Branch: refs/heads/jenkins-tools
Commit: 06b9507ab78a1a055b8f467846c15791600b72ee
Parents: 065c43f
Author: Patrick Hunt <phunt@apache.org>
Authored: Wed Jul 18 11:06:45 2018 -0700
Committer: Patrick Hunt <phunt@apache.org>
Committed: Wed Jul 18 11:06:45 2018 -0700

----------------------------------------------------------------------
 zk-test-report/zk_test_analyzer.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zookeeper/blob/06b9507a/zk-test-report/zk_test_analyzer.py
----------------------------------------------------------------------
diff --git a/zk-test-report/zk_test_analyzer.py b/zk-test-report/zk_test_analyzer.py
index 7e08234..1951bd1 100644
--- a/zk-test-report/zk_test_analyzer.py
+++ b/zk-test-report/zk_test_analyzer.py
@@ -29,6 +29,7 @@ import os
 import time
 import re
 import requests
+import urllib
 from jinja2 import Template
 
 MAX_NUM_OF_BUILDS = 10000
@@ -79,7 +80,7 @@ def generate_report(build_url):
     """
     LOG.info("Analyzing %s", build_url)
 
-    report_url = build_url + "testReport/api/json?tree=suites[name,cases[className,name,status]]"
+    report_url = build_url + "testReport/api/json?tree=suites" + urllib.quote("[name,cases[className,name,status]]")
     try:
         response = requests.get(report_url).json()
     except:
@@ -143,7 +144,7 @@ def analyze_build(args):
         url = url_max_build["url"]
         excludes = url_max_build["excludes"]
 
-        json_response = requests.get(url + "/api/json?tree=builds[number,url]").json()
+        json_response = requests.get(url + "/api/json?tree=" + urllib.quote("builds[number,url]")).json()
         if json_response.has_key("builds"):
             builds = json_response["builds"]
             LOG.info("Analyzing job: %s", url)


Mime
View raw message