Skip to content

test(service): remove unused spec mixins and test defaults - #9599

Merged
aglinxinyuan merged 2 commits into
apache:mainfrom
aglinxinyuan:test/platform-unused-spec-mixins
Nov 23, 2026
Merged

aglinxinyuan merged 2 commits into
apache:mainfrom
aglinxinyuan:test/platform-unused-spec-mixins

Conversation

@aglinxinyuan

@aglinxinyuan aglinxinyuan commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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): In test utility ConfigGenerator, remove 12 unused default parameter values on private helper methods, the 3 unused field defaults on the private FillContext case class (both of its constructor calls pass every field), the scaladoc FillContext had copied from requiredUnder, and the unreferenced private noSiblings helper.

Any related issues, documentation, discussions?

Closes #9598.

How was this PR tested?

Ran on 906cd73fd1 (JDK 17.0.14, sbt 1.12.9, STORAGE_ICEBERG_CATALOG_TYPE=hadoop, Docker running for FileService MockLakeFS specs):

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), Claude Code (Claude Opus 5.5)

Copilot AI balanced review requested due to automatic review settings November 21, 2026 02:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added the platform Non-amber Scala service paths label Nov 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Committers with relevant context: @parshimers
    You can request their reviews formally with /request-review @parshimers.

  • Contributors with relevant context: @tanishqgandhi1908, @zyratlo, @kunwp1
    You can notify them by mentioning @tanishqgandhi1908, @zyratlo, @kunwp1 in a comment.

@codecov-commenter

codecov-commenter commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.57%. Comparing base (bf6bf9f) to head (906cd73).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9599      +/-   ##
============================================
- Coverage     91.57%   91.57%   -0.01%     
+ Complexity     5182     5181       -1     
============================================
  Files          1300     1300              
  Lines         58131    58135       +4     
  Branches       7615     7619       +4     
============================================
+ Hits          53235    53237       +2     
- Misses         2958     2959       +1     
- Partials       1938     1939       +1     
Flag Coverage Δ *Carryforward flag
access-control-service 77.44% <ø> (ø)
agent-service 99.56% <ø> (ø) Carriedforward from c0fc80c
amber 85.46% <ø> (ø) Carriedforward from c0fc80c
computing-unit-managing-service 63.83% <ø> (-0.05%) ⬇️
config-service 87.50% <ø> (ø)
file-service 82.16% <ø> (ø)
frontend 96.45% <ø> (ø) Carriedforward from c0fc80c
notebook-migration-service 83.77% <ø> (ø)
pyamber 98.38% <ø> (ø) Carriedforward from c0fc80c
result-service 85.71% <ø> (ø)
workflow-compiling-service 78.30% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aglinxinyuan
aglinxinyuan requested review from aicam and kunwp1 November 21, 2026 04:36

@kunwp1 kunwp1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aglinxinyuan
aglinxinyuan added this pull request to the merge queue Nov 23, 2026
Merged via the queue into apache:main with commit cd5e257 Nov 23, 2026
39 checks passed
@aglinxinyuan
aglinxinyuan deleted the test/platform-unused-spec-mixins branch November 23, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform Non-amber Scala service paths

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unused ScalaTest mixins and test helper defaults in platform services

4 participants