Skip to content

Clean up sbt clean compile warnings #5200

@kunwp1

Description

@kunwp1

Task Summary

Running sbt clean compile on main surfaces eight [warn]/deprecation messages across five files on JDK 17. They don't block compilation but add noise to local and CI logs, and they make new warnings harder to spot.

File Warning Cleanup
common/pybuilder/.../BoundaryValidator.scala outer reference in this type test (×2) Move nested CompileTimeContext / RuntimeContext case classes to the companion object; parameterize the macro Position field.
file-service/.../DatasetFileNodeSerializer.java uses deprecated API Swap scala.collection.JavaConverters.seqAsJavaList for scala.jdk.javaapi.CollectionConverters.asJava.
common/workflow-operator/.../TestOperators.scala MySQLSourceOpDesc deprecated (×2) Delete the unused inMemoryMySQLSourceOpDesc helper (no callers; MySQL source dead since 1.1.0-incubating).
amber/.../ExecutionResultService.scala inferred existential type Add import scala.language.existentials.
amber/.../web/auth/JwtAuth.scala (used in ComputingUnitMaster.scala & TexeraWebApplication.scala) JwtAuth object deprecated (×2) Drop the aspirational @Deprecated on the wrapper. common/auth doesn't depend on Dropwizard, so there is no replacement to migrate to until that changes. Keep the TODO comment for the future migration.
➜  texera git:(main) sbt clean compile
[info] welcome to sbt 1.12.9 (Eclipse Adoptium Java 17.0.19)
[info] loading settings for project texera-build-build-build from metals.sbt...
[info] loading project definition from /Users/kunwoopark/workspace/fork/texera/project/project/project
[info] loading settings for project texera-build-build from metals.sbt...
[info] loading project definition from /Users/kunwoopark/workspace/fork/texera/project/project
[success] Generated .bloop/texera-build-build.json
[success] Total time: 1 s, completed May 24, 2026, 4:58:46 PM
[info] loading settings for project texera-build from metals.sbt, plugins.sbt...
[info] loading project definition from /Users/kunwoopark/workspace/fork/texera/project
[success] Generated .bloop/texera-build.json
[success] Total time: 0 s, completed May 24, 2026, 4:58:47 PM
[info] loading settings for project TexeraProject from build.sbt...
[info] loading settings for project DAO from build.sbt...
[info] loading settings for project Config from build.sbt...
[info] loading settings for project Auth from build.sbt...
[info] loading settings for project ConfigService from build.sbt...
[info] loading settings for project AccessControlService from build.sbt...
[info] loading settings for project PyBuilder from build.sbt...
[info] loading settings for project WorkflowCore from build.sbt...
[info] loading settings for project ComputingUnitManagingService from build.sbt...
[info] loading settings for project FileService from build.sbt...
[info] loading settings for project WorkflowOperator from build.sbt...
[info] loading settings for project WorkflowCompilingService from build.sbt...
[info] loading settings for project WorkflowExecutionService from build.sbt...
[info] resolving key references (19992 settings) ...
[info] set current project to texera (in build file:/Users/kunwoopark/workspace/fork/texera/)
[info] Executing in batch mode. For better performance use sbt's shell
[success] Total time: 0 s, completed May 24, 2026, 4:58:49 PM
[info] Generating JOOQ classes...
[info] compiling 14 Scala sources to /Users/kunwoopark/workspace/fork/texera/common/config/target/scala-2.13/classes ...
[info] compiling 4 Scala sources and 1 Java source to /Users/kunwoopark/workspace/fork/texera/common/pybuilder/target/scala-2.13/classes ...
[info] JOOQ code generation completed successfully
[info] compiling 2 Scala sources and 164 Java sources to /Users/kunwoopark/workspace/fork/texera/common/dao/target/scala-2.13/classes ...
[info] Compiling 4 protobuf files to /Users/kunwoopark/workspace/fork/texera/common/workflow-core/target/scala-2.13/src_managed/main
[warn] /Users/kunwoopark/workspace/fork/texera/common/pybuilder/src/main/scala/org/apache/texera/amber/pybuilder/BoundaryValidator.scala:78:20: The outer reference in this type test cannot be checked at run time.
[warn]   final case class CompileTimeContext(
[warn]                    ^
[warn] /Users/kunwoopark/workspace/fork/texera/common/pybuilder/src/main/scala/org/apache/texera/amber/pybuilder/BoundaryValidator.scala:86:20: The outer reference in this type test cannot be checked at run time.
[warn]   final case class RuntimeContext(
[warn]                    ^
[warn] two warnings found
[info] compiling 8 Scala sources to /Users/kunwoopark/workspace/fork/texera/common/auth/target/scala-2.13/classes ...
[info] compiling 65 Scala sources and 7 Java sources to /Users/kunwoopark/workspace/fork/texera/common/workflow-core/target/scala-2.13/classes ...
[info] compiling 5 Scala sources to /Users/kunwoopark/workspace/fork/texera/access-control-service/target/scala-2.13/classes ...
[info] compiling 4 Scala sources to /Users/kunwoopark/workspace/fork/texera/config-service/target/scala-2.13/classes ...
[info] Compiling 10 protobuf files to /Users/kunwoopark/workspace/fork/texera/amber/target/scala-2.13/src_managed/main,/Users/kunwoopark/workspace/fork/texera/amber/target/scala-2.13/src_managed/main/fs2-grpc
[info] compiling 7 Scala sources and 1 Java source to /Users/kunwoopark/workspace/fork/texera/file-service/target/scala-2.13/classes ...
[info] compiling 258 Scala sources and 50 Java sources to /Users/kunwoopark/workspace/fork/texera/common/workflow-operator/target/scala-2.13/classes ...
[info] compiling 9 Scala sources to /Users/kunwoopark/workspace/fork/texera/computing-unit-managing-service/target/scala-2.13/classes ...
[info] /Users/kunwoopark/workspace/fork/texera/file-service/src/main/scala/org/apache/texera/service/type/serde/DatasetFileNodeSerializer.java: DatasetFileNodeSerializer.java uses or overrides a deprecated API.
[info] /Users/kunwoopark/workspace/fork/texera/file-service/src/main/scala/org/apache/texera/service/type/serde/DatasetFileNodeSerializer.java: Recompile with -Xlint:deprecation for details.
[warn] /Users/kunwoopark/workspace/fork/texera/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/TestOperators.scala:150:6: class MySQLSourceOpDesc in package mysql is deprecated (since 1.1.0-incubating): MySQL source operator is no longer executable.
[warn]   ): MySQLSourceOpDesc = {
[warn]      ^
[warn] /Users/kunwoopark/workspace/fork/texera/common/workflow-operator/src/main/scala/org/apache/texera/amber/operator/TestOperators.scala:151:41: class MySQLSourceOpDesc in package mysql is deprecated (since 1.1.0-incubating): MySQL source operator is no longer executable.
[warn]     val inMemoryMySQLSourceOpDesc = new MySQLSourceOpDesc()
[warn]                                         ^
[warn] two warnings found
[info] compiling 8 Scala sources to /Users/kunwoopark/workspace/fork/texera/workflow-compiling-service/target/scala-2.13/classes ...
[info] compiling 334 Scala sources and 1 Java source to /Users/kunwoopark/workspace/fork/texera/amber/target/scala-2.13/classes ...
[warn] /Users/kunwoopark/workspace/fork/texera/amber/src/main/scala/org/apache/texera/web/service/ExecutionResultService.scala:441:13: inferred existential type (org.apache.texera.amber.core.storage.model.VirtualDocument[_$3], Option[org.apache.texera.amber.core.tuple.Schema]) forSome { type _$3 }, which cannot be expressed by wildcards, should be enabled
[warn] by making the implicit value scala.language.existentials visible.
[warn] This can be achieved by adding the import clause 'import scala.language.existentials'
[warn] or by setting the compiler option -language:existentials.
[warn] See the Scaladoc for value scala.language.existentials for a discussion
[warn] why the feature should be explicitly enabled.
[warn]         val (document, schemaOption) = DocumentFactory.openDocument(storageUri)
[warn]             ^
[warn] /Users/kunwoopark/workspace/fork/texera/amber/src/main/scala/org/apache/texera/web/ComputingUnitMaster.scala:166:5: object JwtAuth in package auth is deprecated
[warn]     setupJwtAuth(environment)
[warn]     ^
[warn] /Users/kunwoopark/workspace/fork/texera/amber/src/main/scala/org/apache/texera/web/TexeraWebApplication.scala:137:5: object JwtAuth in package auth is deprecated
[warn]     setupJwtAuth(environment)
[warn]     ^
[warn] three warnings found
[success] Total time: 30 s, completed May 24, 2026, 4:59:19 PM

Task Type

  • Refactor / Cleanup

Expected outcome

sbt clean compile finishes with zero [warn] lines on JDK 17.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions