Skip to content

computing-unit-managing-service test sources do not compile on main #7634

Closed

Description

@eugenegujing

What happened?

ComputingUnitManagingResourceSpec reads a field called ownerGoogleAvatar in two assertions, but DashboardWorkflowComputingUnit declares it as ownerAvatar (ComputingUnitManagingResource.scala:162). The module's test sources therefore do not compile.

Because Scala test compilation is per module, the impact is much wider than two assertions: no test in computing-unit-managing-service can run at all. ComputingUnitHelpersSpec, AdminComputingUnitResourceSpec, KubernetesClientSpec and ComputingUnitAccessResourceSpec are all taken down with it — 116 tests across 8 suites.

A repo-wide grep for ownerGoogleAvatar over all .scala sources returns exactly the two lines in that spec (:179 and :285). There is no alias, extension method, or second definition anywhere.

#7563 renamed the field and correctly updated the two specs that referenced it at the time — AdminComputingUnitResourceSpec and ComputingUnitHelpersSpec, both of which use ownerAvatar on main today. ComputingUnitManagingResourceSpec had no avatar assertions then, so there was nothing to update. #7580 subsequently added them from a branch based before the rename, and its CI ran against that older base.

Expected: main compiles its test sources and the spec then passes 31/31 unchanged.

How to reproduce?

  1. Check out main.
  2. Run sbt "ComputingUnitManagingService/Test/compile".
  3. Compilation fails with two value ownerGoogleAvatar is not a member of ...DashboardWorkflowComputingUnit errors (full output in the log section below).

Consequently sbt "ComputingUnitManagingService/test" cannot run any of the module's 116 tests.

Version/Branch

1.3.0-incubating-SNAPSHOT (main)

Commit Hash (Optional)

No response

What browsers are you seeing the problem on?

No response

Relevant log output

[error] /computing-unit-managing-service/src/test/scala/org/apache/texera/service/resource/ComputingUnitManagingResourceSpec.scala:179:10: value ownerGoogleAvatar is not a member of org.apache.texera.service.resource.ComputingUnitManagingResource.DashboardWorkflowComputingUnit
[error]     info.ownerGoogleAvatar shouldBe "owner-avatar"
[error]          ^
[error] /computing-unit-managing-service/src/test/scala/org/apache/texera/service/resource/ComputingUnitManagingResourceSpec.scala:285:13: value ownerGoogleAvatar is not a member of org.apache.texera.service.resource.ComputingUnitManagingResource.DashboardWorkflowComputingUnit
[error]     created.ownerGoogleAvatar shouldBe null
[error]             ^
[error] two errors found
[error] (ComputingUnitManagingService / Test / compileIncremental) Compilation failed

Activity

  1. added theissue type on Aug 13, 2026
  2. added a commit that references this issue on Aug 23, 2026
    65f1f66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions