Skip to content

Conversation

@HyukjinKwon
Copy link
Member

@HyukjinKwon HyukjinKwon commented Jun 22, 2016

What changes were proposed in this pull request?

This PR fixes incorrect checking for root module (meaning all tests).

I realised that #13806 is being failed due to this one.

The PR corrects two files in sql and core. Since it seems fixing core module triggers all tests by root value from determine_modules_for_files.
So, changed_modules becomes as below:

['root', 'sql']

and module.dependent_modules becaomes as below:

['pyspark-mllib', 'pyspark-ml', 'hive-thriftserver', 'sparkr', 'mllib', 'examples', 'pyspark-sql']

Now, modules_to_test does not include root and this checking is skipped but then both changed_modules and modules_to_test are being merged after that. So, this includes root module to test.

This ends up with failing with the message below (e.g. https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60990/consoleFull):

Error: unrecognized module 'root'. Supported modules: pyspark-core, pyspark-sql, pyspark-streaming, pyspark-ml, pyspark-mllib

How was this patch tested?

N/A

@HyukjinKwon
Copy link
Member Author

cc @yhuai and @JoshRosen

@SparkQA
Copy link

SparkQA commented Jun 22, 2016

Test build #61032 has finished for PR 13845 at commit 6e72652.

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

@yhuai
Copy link
Contributor

yhuai commented Jun 22, 2016

Looks good. @JoshRosen can you take a quick look as well?

@HyukjinKwon
Copy link
Member Author

@JoshRosen Could you take a look by any change please?

@JoshRosen
Copy link
Contributor

LGTM as well, so I'm going to merge this to branch-1.6. Thanks @HyukjinKwon!

asfgit pushed a commit that referenced this pull request Jun 28, 2016
…oot` module ending up failure of Python tests

## What changes were proposed in this pull request?

This PR fixes incorrect checking for `root` module (meaning all tests).

I realised that #13806 is being failed due to this one.

The PR corrects two files in `sql` and `core`. Since it seems fixing `core` module triggers all tests by `root` value from `determine_modules_for_files`.
So, `changed_modules` becomes as below:

```
['root', 'sql']
```

and `module.dependent_modules` becaomes as below:

```
['pyspark-mllib', 'pyspark-ml', 'hive-thriftserver', 'sparkr', 'mllib', 'examples', 'pyspark-sql']
```

Now, `modules_to_test` does not include `root` and this checking is skipped but then both `changed_modules` and `modules_to_test` are being merged after that. So, this includes `root` module to test.

This ends up with failing with the message below (e.g. https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60990/consoleFull):

```
Error: unrecognized module 'root'. Supported modules: pyspark-core, pyspark-sql, pyspark-streaming, pyspark-ml, pyspark-mllib
```

## How was this patch tested?

N/A

Author: hyukjinkwon <[email protected]>

Closes #13845 from HyukjinKwon/fix-build-1.6.
@JoshRosen
Copy link
Contributor

(Now that this is merged, you'll have to close this PR manually since GitHub can't auto-close it).

@HyukjinKwon
Copy link
Member Author

Sure! Thank you!

zzcclp pushed a commit to zzcclp/spark that referenced this pull request Jun 28, 2016
…oot` module ending up failure of Python tests

## What changes were proposed in this pull request?

This PR fixes incorrect checking for `root` module (meaning all tests).

I realised that apache#13806 is being failed due to this one.

The PR corrects two files in `sql` and `core`. Since it seems fixing `core` module triggers all tests by `root` value from `determine_modules_for_files`.
So, `changed_modules` becomes as below:

```
['root', 'sql']
```

and `module.dependent_modules` becaomes as below:

```
['pyspark-mllib', 'pyspark-ml', 'hive-thriftserver', 'sparkr', 'mllib', 'examples', 'pyspark-sql']
```

Now, `modules_to_test` does not include `root` and this checking is skipped but then both `changed_modules` and `modules_to_test` are being merged after that. So, this includes `root` module to test.

This ends up with failing with the message below (e.g. https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/60990/consoleFull):

```
Error: unrecognized module 'root'. Supported modules: pyspark-core, pyspark-sql, pyspark-streaming, pyspark-ml, pyspark-mllib
```

## How was this patch tested?

N/A

Author: hyukjinkwon <[email protected]>

Closes apache#13845 from HyukjinKwon/fix-build-1.6.

(cherry picked from commit 4a67541)
@HyukjinKwon HyukjinKwon deleted the fix-build-1.6 branch January 2, 2018 03:40
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.

4 participants