uranusjr opened a new pull request, #77146: URL: https://github.com/apache/airflow/pull/77146
The Task SDK client is tested against a mocked server, and the Execution API routes against a hand-written client. Neither catches a client that assumes something the server doesn't do. #76825's first version had that bug, and only the Kubernetes e2e job caught it. Add a task_sdk_client fixture that sends the real client's requests to this tree's routes in process, as the Dag processor and triggerer do. Use it to test the client methods that interpret a response: XCom reads, and the not-found mapping for Variables, Connections and the task and asset state stores. Document the convention in the Execution API AGENTS.md. Two cases are left out on purpose: - Reading a mapped task's XCom with no map index. main returns null for it until #76825 is merged, and that PR adds the case here. - 401/403 to PERMISSION_DENIED. The in-process API overrides the access checks, so a test would only send the client a hand-written 403, which the mocked client tests already cover. -- 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]
