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

   ## Why
   
   `airflowctl connections test` sends the connection to `POST 
/api/v2/connections/test`. If the test fails, the API server still answers with 
HTTP 200. The response body shows the failure with `"status": false`. 
airflowctl exits 1 only on HTTP errors. Because of this, a failed test exits 0, 
and a script that checks the exit code cannot see the failure. `airflow 
connections test` exits 1 in the same case.
   
   ## What
   
   After airflowctl prints the result, it now exits 1 if `status` is false. The 
printed output does not change.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 5.5)
   
   Generated-by: 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