mengw15 opened a new issue, #6334:
URL: https://github.com/apache/texera/issues/6334
### Task Summary
`agent-service/src/agent/util/workflow-utils.ts` (codecov ~9.8%) exports
`extractOperatorInputPortSchemaMap(...)`, a pure function (type-only imports)
mapping each input port of an operator to its resolved upstream schema.
`agent-service` uses `bun test`; add a `.spec.ts` next to the file.
### Behavior to cover
- Operator with no input links -> returns `undefined`
- One input port fed by one link -> map is `{ [serializePortIdentity(0,
false)]: <source output schema> }`
- Link whose source operator is absent from `outputSchemas` -> that port's
schema is `undefined`
- Link whose `link.source.portID` fails `parseLogicalOperatorPortID` -> that
source contributes `undefined`
- A link is matched to a port when
`parseLogicalOperatorPortID(link.target.portID).portNumber === portIndex`
- Multiple input ports -> each keyed by its own
`serializePortIdentity(portIndex, false)`
### Task Type
- [ ] Refactor / Cleanup
- [ ] DevOps / Deployment / CI
- [x] Testing / QA
- [ ] Documentation
- [ ] Performance
- [ ] Other
--
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]