lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Rowe (JIRA)" <>
Subject [jira] [Commented] (LUCENE-8106) Add script to attempt to reproduce failing tests from a Jenkins log
Date Mon, 26 Feb 2018 23:59:00 GMT


Steve Rowe commented on LUCENE-8106:

bq. Sarowe's Jenkins uses ANT_OPTS environment variable. But this is something completely
different: It is just options that are passed to ANT's JVM (the JVM that runs the build scripts).
Those won't be passed to test runners, as not even the build.xml would see them. Contrary,
in the python script they are passed like other ant arguments, which is wrong. [...] The ANT_OPTS
stuff should be removed from the script, it has nothing to do with reproducing tests

Thanks, this is done.

I also did the following:

* fixed a path-based regex that was triggering failures on Windows (fixed to handle backslashes).
* changed the windows batch script to only attempt to move directories if they exist (missing
directories were causing script failures)
* added the repro script to the 7.x windows job

I'll keep an eye on the windows builds, hopefully they're fully working after these changes.

> Add script to attempt to reproduce failing tests from a Jenkins log
> -------------------------------------------------------------------
>                 Key: LUCENE-8106
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Steve Rowe
>            Assignee: Steve Rowe
>            Priority: Major
>             Fix For: master (8.0), 7.3
>         Attachments: LUCENE-8106-part2.patch, LUCENE-8106-part3.patch, LUCENE-8106-part4.patch,
LUCENE-8106.patch, LUCENE-8106.patch
> This script will be runnable from a downstream job triggered by an upstream failing Jenkins
job, passing log location info between the two.
> The script will also be runnable manually from a developer's cmdline.
> From the script help:
> {noformat}
> Usage:
>      python3 -u URL
> Must be run from a Lucene/Solr git workspace. Downloads the Jenkins
> log pointed to by the given URL, parses it for Git revision and failed
> Lucene/Solr tests, checks out the Git revision in the local workspace,
> groups the failed tests by module, then runs
> 'ant test -Dtest.dups=5 -Dtests.class="*.test1[|*.test2[...]]" ...'
> in each module of interest, failing at the end if any of the runs fails.
> To control the maximum number of concurrent JVMs used for each module's
> test run, set 'tests.jvms', e.g. in ~/
> {noformat}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message