Skip to content

add unit test coverage for Region #4567

@aglinxinyuan

Description

@aglinxinyuan

Task Summary

Region (amber/src/main/scala/org/apache/texera/amber/engine/architecture/scheduling/Region.scala) is the unit of execution for the workflow scheduler but currently has no dedicated unit tests. Add RegionSpec covering its public surface:

  • Constructor exposes physicalOps, physicalLinks, and ports via getOperators/getLinks/getPorts
  • getOperator(id) looks up by PhysicalOpIdentity and throws NoSuchElementException for unknown ids
  • topologicalIterator yields operators in topological order derived from physicalLinks
  • getSourceOperators treats operators without input ports as sources
  • getStarterOperators equals getSourceOperators when no resourceConfig is provided

Priority

P3 – Low

Task Type

  • Testing / QA

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