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

Philip Zeyliger commented on IMPALA-8025:
-----------------------------------------

{{run-tests.py}} is a wrapper around {{py.test}}. It's likely you can run the 
test directly with {{impala-py.test tests/metadata/test_explain.py -vv -s}} and 
get a bit more of what you want. 

If we want to always pass {{-vv}} to py.test, the invocation is at and around 
https://github.com/apache/impala/blob/master/tests/run-tests.py#L294 . 

> End-to-end tests sometimes unhelpfully truncate error output
> ------------------------------------------------------------
>
>                 Key: IMPALA-8025
>                 URL: https://issues.apache.org/jira/browse/IMPALA-8025
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Infrastructure
>    Affects Versions: Impala 3.1.0
>            Reporter: Paul Rogers
>            Priority: Minor
>
> Made a change to the DESCRIBE output per IMPALA-8021. This required 
> adjustment to {{metadata/test_explain.py}} to account for the change. The 
> test encodes a "golden" version in a .test file using a specialized syntax.
> But, when running the test, the output shows the first few lines (which do 
> match), then elides the rest:
> {noformat}
> E     row_regex:.*mem-estimate=[0-9.]*[A-Z]*B mem-reservation=[0-9.]*[A-Z]*B 
> thread-reservation=0 == '|  mem-estimate=0B mem-reservation=0B 
> thread-reservation=0'
> E     Detailed information truncated (45 more lines), use "-vv" to show
> {noformat}
> As it turns out, passing "-vv" to {{tests/run-tests.py}} does not seem to 
> pass it to the test program, so that did not work.
> The .xml file for the test contains the same message: output is truncated. 
> Same in the .log file.
> So, the question is, how is a developer to figure out the issue if we can't 
> see the actual error lines? This is the kind of thing that converts a simple 
> task into a multi-hour ordeal.
> Right now, the only solution is to rerun the tests with {{--update_results}} 
> flag to {{run-tests.py}}, then hunt down the generated output file.
> Better would be to output the n lines before the error, rather than the first 
> n lines.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to