You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by md...@apache.org on 2020/06/20 04:44:16 UTC
[lucene-solr] branch master updated: LUCENE-9412 Do not validate
jenkins HTTPS cert
This is an automated email from the ASF dual-hosted git repository.
mdrob pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/master by this push:
new 591d844 LUCENE-9412 Do not validate jenkins HTTPS cert
591d844 is described below
commit 591d844e806c4887974d887097fe8401f66f7049
Author: Mike Drob <md...@apache.org>
AuthorDate: Fri Jun 19 23:36:03 2020 -0500
LUCENE-9412 Do not validate jenkins HTTPS cert
---
dev-tools/scripts/reproduceJenkinsFailures.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dev-tools/scripts/reproduceJenkinsFailures.py b/dev-tools/scripts/reproduceJenkinsFailures.py
index 8e99ef4..879e8c01 100644
--- a/dev-tools/scripts/reproduceJenkinsFailures.py
+++ b/dev-tools/scripts/reproduceJenkinsFailures.py
@@ -18,6 +18,7 @@ import http.client
import os
import re
import shutil
+import ssl
import subprocess
import sys
import time
@@ -107,7 +108,9 @@ def fetchAndParseJenkinsLog(url, numRetries):
tests = {}
print('[repro] Jenkins log URL: %s\n' % url)
try:
- with urllib.request.urlopen(url) as consoleText:
+ # HTTPS fails at certificate validation, see LUCENE-9412, PEP-476
+ context = ssl._create_unverified_context()
+ with urllib.request.urlopen(url, context=context) as consoleText:
for rawLine in consoleText:
line = rawLine.decode(encoding)
match = reGitRev.match(line)