[SPARK-33464][INFRA][3.0] Add/remove (un)necessary cache and restructure GitHub Actions yaml #30416
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR backports #30391. Note that it's a partial backport.
This PR proposes:
~/.sbtdirectory into the build cache, see also Directory standard sbt/sbt#3681Movehadoop-2below to put up together withjava-11andscala-213, see [SPARK-33464][INFRA] Add/remove (un)necessary cache and restructure GitHub Actions yaml #30391 (comment).m2cache if you run SBT tests only.rm ~/.m2/repository/org/apache/spark. If you don'tsbt publishLocalormvn install, we don't need to care about it.Use Java 8 in Scala 2.13 build. We can switch the Java version to 11 used for release later.sbtin, for example,./dev/lint-scala, and usesmvnin, for example,./dev/lint-java. Also, it requires tosbt packagein Jekyll build, see: https://github.com/apache/spark/blob/master/docs/_plugins/copy_api_dirs.rb#L160-L161. We need full caches here for SBT, Maven and build tools.Why are the changes needed?
Does this PR introduce any user-facing change?
No, dev-only.
How was this patch tested?
It will be tested in GitHub Actions build at the current PR