aglinxinyuan opened a new pull request, #9599:
URL: https://github.com/apache/texera/pull/9599

   ### What changes were proposed in this PR?
   
   Remove unused ScalaTest mixin traits and unused private test-helper defaults 
across 7 test files in `access-control-service`, `file-service`, and 
`workflow-compiling-service` without changing production code or test 
assertions:
   
   - **Unused `BeforeAndAfterEach` mixin (`access-control-service`, 
`file-service`):** Remove the unused `BeforeAndAfterEach` trait and import in 
`AccessControlResourceSpec`, `ModelApiForUiSpec`, `ModelDownloadResourceSpec`, 
`ModelResourceSpec`, and `ModelUploadResourceSpec`, which define no per-test 
hooks.
   - **Unused `OptionValues` mixin (`file-service`):** Remove the unused 
`OptionValues` trait and import in `ModelHubApiSpec`.
   - **Unused defaults and dead helper (`workflow-compiling-service`):** Remove 
12 unused default parameter values on private helper methods and the 
unreferenced private `noSiblings` helper in test utility `ConfigGenerator`.
   
   ### Any related issues, documentation, discussions?
   
   Closes #9598.
   
   ### How was this PR tested?
   
   Ran on `c0fc80c65b` (JDK 17.0.14, `sbt 1.12.9`, 
`STORAGE_ICEBERG_CATALOG_TYPE=hadoop`, Docker running for `FileService` 
`MockLakeFS` specs):
   
   ```bash
   sbt --batch \
     "AccessControlService/scalafmtCheckAll" \
     "FileService/scalafmtCheckAll" \
     "WorkflowCompilingService/scalafmtCheckAll" \
     "AccessControlService/scalafixAll --check" \
     "FileService/scalafixAll --check" \
     "WorkflowCompilingService/scalafixAll --check" \
     "AccessControlService/testOnly 
org.apache.texera.AccessControlResourceSpec" \
     "FileService/testOnly org.apache.texera.service.resource.ModelApiForUiSpec 
org.apache.texera.service.resource.ModelDownloadResourceSpec 
org.apache.texera.service.resource.ModelHubApiSpec 
org.apache.texera.service.resource.ModelResourceSpec 
org.apache.texera.service.resource.ModelUploadResourceSpec" \
     "WorkflowCompilingService/testOnly 
org.apache.texera.amber.translator.verify.ConfigGeneratorSpec 
org.apache.texera.amber.translator.verify.CanonicalFixtureSpec 
org.apache.texera.service.resource.WorkflowCompilationResourceSpec"
   ```
   
   - `scalafmtCheckAll` and `scalafixAll --check` across 
`AccessControlService`, `FileService`, and `WorkflowCompilingService`: passed.
   - `AccessControlService`: `1` suite, `44` passed (`0` failed, `0` skipped).
   - `FileService`: `5` suites, `117` passed (`0` failed, `0` skipped).
   - `WorkflowCompilingService`: `3` suites, `52` passed (`0` failed, `0` 
skipped).
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Antigravity (Gemini 4 Neon)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to