Skip to content

[SPARK-10300] [build] [tests] Add support for test tags in run-tests.py.#8437

Closed
vanzin wants to merge 13 commits into
apache:masterfrom
vanzin:test-tags
Closed

[SPARK-10300] [build] [tests] Add support for test tags in run-tests.py.#8437
vanzin wants to merge 13 commits into
apache:masterfrom
vanzin:test-tags

Conversation

@vanzin

@vanzin vanzin commented Aug 25, 2015

Copy link
Copy Markdown
Contributor

This change does two things:

  • tag a few tests and adds the mechanism in the build to be able to disable those tags,
    both in maven and sbt, for both junit and scalatest suites.
  • add some logic to run-tests.py to disable some tags depending on what files have
    changed; that's used to disable expensive tests when a module hasn't explicitly
    been changed, to speed up testing for changes that don't directly affect those
    modules.

@SparkQA

SparkQA commented Aug 25, 2015

Copy link
Copy Markdown

Test build #41566 has finished for PR 8437 at commit 4e26e43.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • class FPGrowthModel[Item: ClassTag] @Since("1.3.0") (
    • class FreqItemset[Item] @Since("1.3.0") (
    • class FreqSequence[Item] @Since("1.5.0") (
    • class PrefixSpanModel[Item] @Since("1.5.0") (

@vanzin

vanzin commented Aug 25, 2015

Copy link
Copy Markdown
Contributor Author

retest this please

@SparkQA

SparkQA commented Aug 25, 2015

Copy link
Copy Markdown

Test build #41567 has finished for PR 8437 at commit 833502f.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin

vanzin commented Aug 25, 2015

Copy link
Copy Markdown
Contributor Author

retest this please

@SparkQA

SparkQA commented Aug 26, 2015

Copy link
Copy Markdown

Test build #41568 has finished for PR 8437 at commit ef737c0.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA

SparkQA commented Aug 26, 2015

Copy link
Copy Markdown

Test build #41572 has finished for PR 8437 at commit 3a2979f.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Marcelo Vanzin added 5 commits August 25, 2015 20:01
Based on squito:SPARK-4746
From squito:SPARK-4746 it seems like they might not even be needed.
…iveTest.

This allows a small set of tests to run for every PR, while runnign the
whole test suite when changes to sql code are made (as decided by
run-tests.py).
@vanzin

vanzin commented Aug 26, 2015

Copy link
Copy Markdown
Contributor Author

@pwendell @marmbrus what do you think of this approach? It's partly based on code that @squito wrote before to add tags for long-running tests. Main change is that I hooked things up to run-tests.py to automate enabling / disabling some tags.

Note that the tests for this PR will run everything (since I'm touching files in the respective modules), but I tested locally that things are disabled properly when they should be.

@SparkQA

SparkQA commented Aug 26, 2015

Copy link
Copy Markdown

Test build #41639 has finished for PR 8437 at commit b7d0507.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

Marcelo Vanzin added 2 commits August 26, 2015 10:52
This makes sbt happy now that I put the junit assembly
in the shared dependencies in the root pom.
@SparkQA

SparkQA commented Aug 26, 2015

Copy link
Copy Markdown

Test build #41641 has finished for PR 8437 at commit 5c107a5.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@marmbrus

Copy link
Copy Markdown
Contributor

The ExtendedHiveTest tag looks good to me. I would consider dropping the random smoke test part of things since we have lot of SQL tests and even hive tests that will still be running, so I'm not sure its worth the complexity. I would be okay just marking the whole test as ExtendedHiveTest.

Thanks for working on this!

@vanzin

vanzin commented Aug 26, 2015

Copy link
Copy Markdown
Contributor Author

I would be okay just marking the whole test as ExtendedHiveTest.

Easy enough (good thing I made that change in a single commit).

@vanzin vanzin changed the title WIP DO NOT MERGE. Testing out test tags. [SPARK-10300] [build] [tests] Add support for test tags in run-test.py. Aug 26, 2015
@marmbrus

Copy link
Copy Markdown
Contributor

SQL changes LGTM. I'll let @pwendell comment on build changes.

@vanzin vanzin changed the title [SPARK-10300] [build] [tests] Add support for test tags in run-test.py. [SPARK-10300] [build] [tests] Add support for test tags in run-tests.py. Aug 26, 2015
Conflicts:
	dev/run-tests-jenkins
@SparkQA

SparkQA commented Aug 26, 2015

Copy link
Copy Markdown

Test build #41642 has finished for PR 8437 at commit 85fed20.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin

vanzin commented Aug 26, 2015

Copy link
Copy Markdown
Contributor Author

pyspark failures, seem unrelated. in any case... retest this please

@SparkQA

SparkQA commented Aug 26, 2015

Copy link
Copy Markdown

Test build #41645 has finished for PR 8437 at commit 83bec7f.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA

SparkQA commented Aug 26, 2015

Copy link
Copy Markdown

Test build #41648 has finished for PR 8437 at commit 131e658.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin

vanzin commented Aug 26, 2015

Copy link
Copy Markdown
Contributor Author

Another pyspark failure (that I've seen countless times in other PRs).

@vanzin

vanzin commented Aug 27, 2015

Copy link
Copy Markdown
Contributor Author

retest this please

@SparkQA

SparkQA commented Aug 27, 2015

Copy link
Copy Markdown

Test build #41649 has finished for PR 8437 at commit 131e658.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA

SparkQA commented Aug 27, 2015

Copy link
Copy Markdown

Test build #41657 has finished for PR 8437 at commit 131e658.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA

SparkQA commented Aug 27, 2015

Copy link
Copy Markdown

Test build #41658 has finished for PR 8437 at commit 090e1d4.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@andrewor14

Copy link
Copy Markdown
Contributor

@JoshRosen should look at this

@vanzin

vanzin commented Sep 9, 2015

Copy link
Copy Markdown
Contributor Author

@JoshRosen any comments?

@vanzin

vanzin commented Sep 14, 2015

Copy link
Copy Markdown
Contributor Author

No comments? I already got a +1 from Michael, so as far as I can tell, this is good to go.

@pwendell

Copy link
Copy Markdown
Contributor

LGTM - I've modified that script recently enough to be familiar with how it works. This seems like a good approach and could be useful for us in the future.

@vanzin

vanzin commented Sep 15, 2015

Copy link
Copy Markdown
Contributor Author

ok, merging.

@asfgit asfgit closed this in 8abef21 Sep 15, 2015
@vanzin vanzin deleted the test-tags branch September 15, 2015 17:50
@vanzin

vanzin commented Sep 15, 2015

Copy link
Copy Markdown
Contributor Author

This seems to have caused PR tests to start failing... I'll try things locally again and revert the patch if needed.

@mengxr

mengxr commented Sep 15, 2015

Copy link
Copy Markdown
Contributor

Shall we revert the PR first? It is blocking other PRs.

@vanzin

vanzin commented Sep 15, 2015

Copy link
Copy Markdown
Contributor Author

Done.

@vanzin

vanzin commented Sep 15, 2015

Copy link
Copy Markdown
Contributor Author

For the curious, the issue is that the junit test runners (both surefire and the sbt one) need the tag classes around or they'll throw an error, and that happens when building modules where the tag is not available. I'm thinking about a workaround that does not involve removing the junit functionality.

@JoshRosen

Copy link
Copy Markdown
Contributor

Are there plans to revive this PR and attempt another merge?

@vanzin

vanzin commented Oct 1, 2015

Copy link
Copy Markdown
Contributor Author

@JoshRosen #8775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants