This is an automated email from the ASF dual-hosted git repository.

yangjie01 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 9f897190bdb [SPARK-44798][BUILD] Fix Scala 2.13 mima check after 
SPARK-44705 merged
9f897190bdb is described below

commit 9f897190bdb29dd80e85bc0926ebacb70825b4ed
Author: yangjie01 <yangji...@baidu.com>
AuthorDate: Tue Aug 15 11:44:17 2023 +0800

    [SPARK-44798][BUILD] Fix Scala 2.13 mima check after SPARK-44705 merged
    
    ### What changes were proposed in this pull request?
    This pr aims add a new `ProblemFilters` to `MimaExcludes.scala` to fix mima 
check for Scala 2.13 after SPARK-44705 merged.
    
    ### Why are the changes needed?
    Scala 2.13's daily tests have been failing the mima check for several days:
    
    - https://github.com/apache/spark/actions/runs/5849050388/job/15856979487
    
    <img width="1315" alt="image" 
src="https://github.com/apache/spark/assets/1475305/fa4f859a-293b-429b-a030-a332e6a587d3";>
    
    ### Does this PR introduce _any_ user-facing change?
    No
    
    ### How was this patch tested?
    - Pass GitHub Actions
    - Manual verification:
    
    1.  The mima check was passing before SPARK-44705
    ```
    // [SPARK-44765][CONNECT] Simplify retries of ReleaseExecute
    git reset --hard 9bde882fcb39e9fedced0df9702df2a36c1a84e6
    dev/change-scala-version.sh 2.13
    dev/mima -Pscala-2.13
    ```
    
    ```
    [success] Total time: 48 s, completed 2023-8-14 13:02:11
    ```
    
    2. The mima check failed after SPARK-44705 was merged
    
    ```
    // [SPARK-44705][PYTHON] Make PythonRunner single-threaded
    git reset --hard 8aaff55839493e80e3ce376f928c04aa8f31d18c
    dev/change-scala-version.sh 2.13
    dev/mima -Pscala-2.13
    ```
    ```
    [error] spark-core: Failed binary compatibility check against 
org.apache.spark:spark-core_2.13:3.4.0! Found 1 potential problems (filtered 
4019)
    [error]  * method 
this(org.apache.spark.api.python.BasePythonRunner,java.io.DataInputStream,org.apache.spark.api.python.BasePythonRunner#WriterThread,Long,org.apache.spark.SparkEnv,java.net.Socket,scala.Option,java.util.concurrent.atomic.AtomicBoolean,org.apache.spark.TaskContext)Unit
 in class org.apache.spark.api.python.BasePythonRunner#ReaderIterator's type is 
different in current version, where it is 
(org.apache.spark.api.python.BasePythonRunner,java.io.DataInputStream,org.apache.s
 [...]
    [error]    filter with: 
ProblemFilters.exclude[IncompatibleMethTypeProblem]("org.apache.spark.api.python.BasePythonRunner#ReaderIterator.this")
    [error] java.lang.RuntimeException: Failed binary compatibility check 
against org.apache.spark:spark-core_2.13:3.4.0! Found 1 potential problems 
(filtered 4019)
    [error]         at scala.sys.package$.error(package.scala:30)
    [error]         at 
com.typesafe.tools.mima.plugin.SbtMima$.reportModuleErrors(SbtMima.scala:89)
    [error]         at 
com.typesafe.tools.mima.plugin.MimaPlugin$.$anonfun$projectSettings$2(MimaPlugin.scala:36)
    [error]         at 
com.typesafe.tools.mima.plugin.MimaPlugin$.$anonfun$projectSettings$2$adapted(MimaPlugin.scala:26)
    [error]         at scala.collection.Iterator.foreach(Iterator.scala:943)
    [error]         at scala.collection.Iterator.foreach$(Iterator.scala:943)
    [error]         at 
scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
    [error]         at 
com.typesafe.tools.mima.plugin.MimaPlugin$.$anonfun$projectSettings$1(MimaPlugin.scala:26)
    [error]         at 
com.typesafe.tools.mima.plugin.MimaPlugin$.$anonfun$projectSettings$1$adapted(MimaPlugin.scala:25)
    [error]         at scala.Function1.$anonfun$compose$1(Function1.scala:49)
    [error]         at 
sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:63)
    [error]         at sbt.std.Transform$$anon$4.work(Transform.scala:69)
    [error]         at sbt.Execute.$anonfun$submit$2(Execute.scala:283)
    [error]         at 
sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
    [error]         at sbt.Execute.work(Execute.scala:292)
    [error]         at sbt.Execute.$anonfun$submit$1(Execute.scala:283)
    [error]         at 
sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
    [error]         at 
sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
    [error]         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    [error]         at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    [error]         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    [error]         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    [error]         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    [error]         at java.lang.Thread.run(Thread.java:750)
    [error] (core / mimaReportBinaryIssues) Failed binary compatibility check 
against org.apache.spark:spark-core_2.13:3.4.0! Found 1 potential problems 
(filtered 4019)
    [error] Total time: 74 s (01:14), completed 2023-8-14 13:05:25
    ```
    3. with this pr, mima check pass
    
    ```
    gh pr checkout 42479
    dev/change-scala-version.sh 2.13
    dev/mima -Pscala-2.13
    ```
    
    ```
    [success] Total time: 99 s (01:39), completed 2023-8-14 13:10:13
    ```
    
    Closes #42479 from LuciferYang/SPARK-44798.
    
    Authored-by: yangjie01 <yangji...@baidu.com>
    Signed-off-by: yangjie01 <yangji...@baidu.com>
---
 project/MimaExcludes.scala | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/project/MimaExcludes.scala b/project/MimaExcludes.scala
index c1e1d087590..f818d9aa2c8 100644
--- a/project/MimaExcludes.scala
+++ b/project/MimaExcludes.scala
@@ -78,7 +78,9 @@ object MimaExcludes {
     
ProblemFilters.exclude[MissingClassProblem]("org.apache.spark.api.java.function.FlatMapGroupsWithStateFunction"),
     
ProblemFilters.exclude[MissingClassProblem]("org.apache.spark.api.java.function.MapGroupsWithStateFunction"),
     
ProblemFilters.exclude[MissingClassProblem]("org.apache.spark.sql.SaveMode"),
-    
ProblemFilters.exclude[MissingClassProblem]("org.apache.spark.sql.streaming.GroupState")
+    
ProblemFilters.exclude[MissingClassProblem]("org.apache.spark.sql.streaming.GroupState"),
+    // [SPARK-44705][PYTHON] Make PythonRunner single-threaded
+    
ProblemFilters.exclude[IncompatibleMethTypeProblem]("org.apache.spark.api.python.BasePythonRunner#ReaderIterator.this")
   )
 
   // Default exclude rules


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to