jason810496 opened a new pull request, #77190:
URL: https://github.com/apache/airflow/pull/77190

   - related: #77146
   
   ## Why
   
   #77146 added contract tests for Task SDK client methods that interpret a 
response. `task_instances.start`, `dag_runs.trigger` and `assets.get` also do, 
but have no test yet.
   
   ## What
   
   - Test that `task_instances.start` raises `TaskAlreadyRunningError` for a 
task running or restarting on another host, and a plain `ServerResponseError` 
for a finished one.
   - Test that `dag_runs.trigger` returns `DAGRUN_ALREADY_EXISTS` on a repeat 
trigger, and falls back to `clear` with `reset_dag_run`.
   - Test that `assets.get` returns `ASSET_NOT_FOUND` for a missing name or uri.
   - Add a stored-null case for the asset state store, matching the task state 
store.
   - Add a guard test that fails when a client method catches 
`ServerResponseError` but no contract test calls it.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [x] Yes, with help of Claude Code Opus 5.5 following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
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]

Reply via email to