Skip to content

Conversation

@JoshRosen
Copy link
Contributor

This patch backports the dev/test-dependencies script (from #10461) to branch-1.6.

…r new pull requests

This patch adds a new build check which enumerates Spark's resolved runtime classpath and saves it to a file, then diffs against that file to detect whether pull requests have introduced dependency changes. The aim of this check is to make it simpler to reason about whether pull request which modify the build have introduced new dependencies or changed transitive dependencies in a way that affects the final classpath.

This supplants the checks added in SPARK-4123 / apache#5093, which are currently disabled due to bugs.

This patch is based on pwendell's work in apache#8531.

Closes apache#8531.

Author: Josh Rosen <[email protected]>
Author: Patrick Wendell <[email protected]>

Closes apache#10461 from JoshRosen/SPARK-10359.
…sh script

This patch includes multiple fixes for the `dev/test-dependencies.sh` script (which was introduced in apache#10461):

- Use `build/mvn --force` instead of `mvn` in one additional place.
- Explicitly set a zero exit code on success.
- Set `LC_ALL=C` to make `sort` results agree across machines (see https://stackoverflow.com/questions/28881/).
- Set `should_run_build_tests=True` for `build` module (this somehow got lost).

Author: Josh Rosen <[email protected]>

Closes apache#10543 from JoshRosen/dep-script-fixes.
…dencies.sh; fix version switching

This patch aims to fix another potential source of flakiness in the `dev/test-dependencies.sh` script.

pwendell's original patch and my version used `$(date +%s | tail -c6)` to generate a suffix to use when installing temporary Spark versions into the local Maven cache, but this value only changes once per second and thus is highly collision-prone when concurrent builds launch on AMPLab Jenkins. In order to reduce the potential for conflicts, this patch updates the script to call Python's random number generator instead.

I also fixed a bug in how we captured the original project version; the bug was causing the exit handler code to fail.

Author: Josh Rosen <[email protected]>

Closes apache#10558 from JoshRosen/build-dep-tests-round-3.
@JoshRosen JoshRosen changed the title [SPARK-10359][PROJECT-INFRA] Backport dev/test-dependencies script to branch-1.5 [SPARK-10359][PROJECT-INFRA] Backport dev/test-dependencies script to branch-1.6 Jan 10, 2016
@SparkQA
Copy link

SparkQA commented Jan 10, 2016

Test build #49055 has finished for PR 10680 at commit f8b4fdb.

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

@JoshRosen
Copy link
Contributor Author

The R failure is unrelated and the build tests passed, so I'm going to merge this into branch-1.6.

asfgit pushed a commit that referenced this pull request Jan 10, 2016
… branch-1.6

This patch backports the `dev/test-dependencies` script (from #10461) to branch-1.6.

Author: Josh Rosen <[email protected]>

Closes #10680 from JoshRosen/test-deps-16-backport.
@JoshRosen JoshRosen closed this Jan 10, 2016
@JoshRosen JoshRosen deleted the test-deps-16-backport branch January 10, 2016 22:51
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.

2 participants