-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[SPARK-33079][TESTS] Replace the existing Maven job for Scala 2.13 in Github Actions with SBT job #29958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-33079][TESTS] Replace the existing Maven job for Scala 2.13 in Github Actions with SBT job #29958
Changes from 3 commits
8e45bc8
5a22c38
5dec1ff
47a4806
91d1066
30b2ddd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -319,3 +319,29 @@ jobs: | |
| ./dev/change-scala-version.sh 2.13 | ||
| ./build/mvn $MAVEN_CLI_OPTS -DskipTests -Pyarn -Pmesos -Pkubernetes -Phive -Phive-thriftserver -Phadoop-cloud -Djava.version=11 -Pscala-2.13 install | ||
| rm -rf ~/.m2/repository/org/apache/spark | ||
|
|
||
| scala-213-sbt: | ||
| name: Scala 2.13 build with SBT | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, should we set this job in the PR builder? The (almost) same thing is tested at "Scala 2.13 build". I think we'll set a Jenkins regular job to run the tests at SPARK-33044 as well. I would avoid adding too many jobs here since we're not able to have more resources (see also SPARK-32264).
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The main purpose of adding the build with SBT is not just testing with SBT. As I mentioned, some compilation error happens only with SBT so I'd like detect such error before any changes being merged.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am okay with replacing the existing "Scala 2.13 build". Seems that'll catch the compilation errors more correctly.
It does takes longer to detect the errors. However, there are many other combinations to test and currently we can't test all combinations. So I think the default common-ish combination was picked to use it as a GitHub Actions and Jenkins PR builder. For example, JDK 11 is not being tested in GitHub Actions and Jenkins PR builder.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yeah, I know but whether build is successfully finish is tested in GitHub Actions so I thought build test (not unit test) should be checked in GitHub Actions too for now.
HyukjinKwon marked this conversation as resolved.
Outdated
|
||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Spark repository | ||
| uses: actions/checkout@v2 | ||
| - name: Cache Ivy local repository | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: ~/.ivy2/cache | ||
| key: scala-213-ivy-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }} | ||
| restore-keys: | | ||
| scala-213-ivy- | ||
| - name: Install Java 11 | ||
| uses: actions/setup-java@v1 | ||
| with: | ||
| java-version: 11 | ||
| - name: Build with SBT | ||
| run: | | ||
| mkdir -p ~/.ivy2/local | ||
| mkdir -p ~/.m2 | ||
|
HyukjinKwon marked this conversation as resolved.
Outdated
|
||
| ./dev/change-scala-version.sh 2.13 | ||
| ./build/sbt -Pyarn -Pmesos -Pkubernetes -Phive -Phive-thriftserver -Phadoop-cloud -Pkinesis-asl -Djava.version=11 -Pscala-2.13 test:compile publishLocal | ||
| rm -rf ~/.ivy2/local/org.apache.spark | ||
| rm -rf ~/.m2/repository/org/apache/spark | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,7 +91,7 @@ class KinesisBackedBlockRDD[T: ClassTag]( | |
| require(_blockIds.length == arrayOfseqNumberRanges.length, | ||
| "Number of blockIds is not equal to the number of sequence number ranges") | ||
|
|
||
| override def isValid(): Boolean = true | ||
| override def isValid: Boolean = true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this change related to the current pr?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. empty parameter list causes compilation error if we build for Scala 2.13 with SBT. |
||
|
|
||
| override def getPartitions: Array[Partition] = { | ||
| Array.tabulate(_blockIds.length) { i => | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.