You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2015/04/07 05:41:12 UTC

[jira] [Commented] (LUCENE-6403) smokeTestRelease.py fails against an RC stored in Subversion

    [ https://issues.apache.org/jira/browse/LUCENE-6403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14482520#comment-14482520 ] 

Steve Rowe commented on LUCENE-6403:
------------------------------------

The URL that failed is broken:

{noformat}
https://dist.apache.org/repos/dist/dev/lucene/lucene-solr-5.1.0-RC1-rev1671632//lucene/maven/org/apache/lucene-analyzers-common/
{noformat}

There's a missing path segment {{lucene/}} after {{maven/org/apache/}}.

When maven artifacts are crawled, the seed URLs end in {{/lucene}} or {{/solr}} - no trailing slash.  Both the HTTP server on people.apache.org and the ASF Subversion server at svn.apache.org redirect a non-trailing-slash directory URL to the same URL with slash appended, so I'm not sure why the current code succeeds against people.apache.org, correctly joining the parent URL with child artifacts, but fails against svn.apache.org.

When I make the seed URLs end in a slash, the smoke tester succeeds for me:

{noformat}
Index: dev-tools/scripts/smokeTestRelease.py
===================================================================
--- dev-tools/scripts/smokeTestRelease.py	(revision 1671629)
+++ dev-tools/scripts/smokeTestRelease.py	(working copy)
@@ -1017,7 +1017,7 @@
   print('    download artifacts')
   artifacts = {'lucene': [], 'solr': []}
   for project in ('lucene', 'solr'):
-    artifactsURL = '%s/%s/maven/org/apache/%s' % (baseURL, project, project)
+    artifactsURL = '%s/%s/maven/org/apache/%s/' % (baseURL, project, project)
     targetDir = '%s/maven/org/apache/%s' % (tmpDir, project)
     if not os.path.exists(targetDir):
       os.makedirs(targetDir)
{noformat}

Committing shortly.

> smokeTestRelease.py fails against an RC stored in Subversion
> ------------------------------------------------------------
>
>                 Key: LUCENE-6403
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6403
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>            Reporter: Steve Rowe
>            Assignee: Steve Rowe
>
> When I run {{smokeTestRelease.py}} against an RC stored on Subversion:
> {noformat}
> python3 -u dev-tools/scripts/smokeTestRelease.py https://dist.apache.org/repos/dist/dev/lucene/lucene-solr-5.1.0-RC1-rev1671632/
> {noformat}
> I got this failure:
> {noformat}
> Test Maven artifacts for Lucene and Solr...
>     get POM templates
> .........................................................
>     download artifacts
> Retrying download of url https://dist.apache.org/repos/dist/dev/lucene/lucene-solr-5.1.0-RC1-rev1671632//lucene/maven/org/apache/lucene-analyzers-common/ after exception: HTTP Error 404: Not Found
> FAILED to open url https://dist.apache.org/repos/dist/dev/lucene/lucene-solr-5.1.0-RC1-rev1671632//lucene/maven/org/apache/lucene-analyzers-common/
> Traceback (most recent call last):
>   File "dev-tools/scripts/smokeTestRelease.py", line 150, in load
>     content = urllib.request.urlopen(urlString).read().decode('utf-8')
>   File "/Users/sarowe/homebrew/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 156, in urlopen
>     return opener.open(url, data, timeout)
>   File "/Users/sarowe/homebrew/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 475, in open
>     response = meth(req, response)
>   File "/Users/sarowe/homebrew/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 587, in http_response
>     'http', request, response, code, msg, hdrs)
>   File "/Users/sarowe/homebrew/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 513, in error
>     return self._call_chain(*args)
>   File "/Users/sarowe/homebrew/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 447, in _call_chain
>     result = func(*args)
>   File "/Users/sarowe/homebrew/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/urllib/request.py", line 595, in http_error_default
>     raise HTTPError(req.full_url, code, msg, hdrs, fp)
> urllib.error.HTTPError: HTTP Error 404: Not Found
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org