[
https://issues.apache.org/jira/browse/HIVE-18588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alan Gates updated HIVE-18588:
------------------------------
Status: Patch Available (was: Open)
I made a classic blunder here. Don't worry, I did not get involved in a land
war in Asia. The mistake I did make, which is only slightly less well known,
is don't confuse requirements and design in software. My requirement is to
find a way to separate out quick unit tests from longer running checkin/nightly
tests. I proposed to do that via a maven profile. But after playing with it a
bit, I think using junit's Categories feature is better. It makes it easier to
break the tests into various different sets and still have an easy way to run
them all. The downside is each test has to be annotated with a Category or it
won't get picked up. I don't think this is much worse than having to edit the
pom file to get a test in the right category, but developers might be surprised
why when they add a test and do 'mvn test' it isn't automatically run.
The attached patch implements the Categories approach. Currently I've created
a unit test category and checkin test category. In the future when HIVE-17983
is in I would then add a db test category.
cc [~pvary]
> Add 'checkin' profile that runs slower tests in standalone-metastore
> --------------------------------------------------------------------
>
> Key: HIVE-18588
> URL: https://issues.apache.org/jira/browse/HIVE-18588
> Project: Hive
> Issue Type: Test
> Components: Standalone Metastore
> Affects Versions: 3.0.0
> Reporter: Alan Gates
> Assignee: Alan Gates
> Priority: Major
> Attachments: HIVE-18588.patch
>
>
> Runtime for unit tests in standalone-metastore are now exceeding 25 minutes.
> Ideally unit tests should finish within 2-3 minutes so users will run them
> frequently. To solve this I propose to carve off many of the slower tests to
> run in a new 'checkin' profile. This profile should be run before checkin
> and by the ptest infrastructure.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)