GitHub user dongjoon-hyun opened a pull request: https://github.com/apache/spark/pull/12535
[SPARK-14765][BUILD] Jenkins should run tests only based on the PR contents ## What changes were proposed in this pull request? **Background** Yesterday, when I exposed a function to Python/R, only Python and R module are changed. At the first successful build, it took 25 minutes, but the next one took 125 minutes. * [25 minutes|https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/56291/consoleFull] {code} [info] Found the following changed modules: pyspark-sql, sparkr {code} * [125 minutes|https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/56298/] {code} [info] Found the following changed modules: pyspark-sql, sparkr, mllib, hive, sql, root {code} **Problem** `identify_changed_files_from_git_commits` function in `run-tests.py` simply runs `git diff` to the master. It means **Newly updated master code** also considered as a changed file in the PR. **How to fix** Add `git rebase` command before running `git diff`. ## How was this patch tested? Manual. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dongjoon-hyun/spark SPARK-14765 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/12535.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #12535 ---- ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org