Yicong-Huang opened a new pull request, #4700: URL: https://github.com/apache/texera/pull/4700
### What changes were proposed in this PR? Adds `auto-layout.test.ts` covering `autoLayoutWorkflow` in `agent-service/src/agent/util/auto-layout.ts`. The suite asserts behavioral invariants rather than exact pixel coordinates, so it stays stable across dagre versions: - Empty workflow short-circuits without throwing or mutating state. - Single operator receives a finite numeric position. - Linear chain `a -> b -> c` ends up with strictly increasing `x` (rankdir LR). - Disconnected operators all receive positions. - Pre-existing positions are overwritten by the new layout. - Parallel branches downstream of the same source share an `x` rank but get distinct `y` values. ### Any related issues, documentation, discussions? Closes #4699. ### How was this PR tested? ``` cd agent-service bun install --frozen-lockfile bun test src/agent/util/auto-layout.test.ts # 6 pass / 0 fail bun test # 40 pass / 0 fail bun run typecheck bun run format:check ``` ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-4-7) -- 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]
