mengw15 opened a new pull request, #6355: URL: https://github.com/apache/texera/pull/6355
### What changes were proposed in this PR? Add unit test coverage for the two pure string formatters in `agent-service/src/agent/util/workflow-system-metadata.ts` — `formatValidationErrors` and `formatCompactSchemaForError`. A `bun test` `.spec.ts` sits next to the source. No production-code changes. `fetchOperatorMetadata` in the same file hits the backend and is out of scope for this unit issue. ### Any related issues, documentation, discussions? Closes #6335. ### How was this PR tested? ``` bun test src/agent/util/workflow-system-metadata.spec.ts ``` 4 pass. `bun run typecheck` and `bun run format:check` are clean. The spec is pure — it calls the formatters with in-process literals and covers: a valid result → `""`; invalid messages joined as `key: msg` with `"; "`; a compact schema rendering its required keys plus the JSON-stringified present required properties; and the empty required/properties case. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Opus 4.8 [1M context]) -- 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]
