You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2015/04/30 20:09:06 UTC
[jira] [Commented] (HADOOP-11895) Support running a specific subset
of tests in test-patch.sh.
[ https://issues.apache.org/jira/browse/HADOOP-11895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14521966#comment-14521966 ]
Chris Nauroth commented on HADOOP-11895:
----------------------------------------
There are a few use cases I have in mind for this:
* If we're troubleshooting a flaky test failure that only repros in Jenkins, then we can issue runs in rapid succession to troubleshoot that specific test.
* If we're posting a prototype patch that isn't intended to be committed, then it might still be valuable to click Submit Patch to run a small subset of tests as a basic check.
* If we're working on a feature branch, then we might prefer quicker test cycles initially, followed by full test runs towards the end of development.
We could do something like allowing a patch to provide a /test-to-run text file listing the test suites to run, which test-patch.sh would feed into {{mvn test -Dtest=...}}. Feature branches might choose to commit the file temporarily if it's helpful.
We might want the output from test-patch.sh to vote -1 automatically if this feature is used. That would help committers avoid accidentally committing a patch that hadn't gone through the full test run.
> Support running a specific subset of tests in test-patch.sh.
> ------------------------------------------------------------
>
> Key: HADOOP-11895
> URL: https://issues.apache.org/jira/browse/HADOOP-11895
> Project: Hadoop Common
> Issue Type: Improvement
> Components: scripts
> Reporter: Chris Nauroth
>
> test-patch.sh currently runs {{mvn test}} in the sub-modules that are changed by the patch. Due to long-running tests, this can slow down development for certain kinds of patches. This issue proposes an enhancement to test-patch.sh to support a faster mode of execution that applies the patch and runs {{mvn test -Dtest=...}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)