github-actions[bot] opened a new pull request, #67172:
URL: https://github.com/apache/airflow/pull/67172

   * Surface remote-log upload failures via structured warnings
   
   `upload_to_remote()` silently returned in three failure paths (handler
   load failure, log-path resolution exception, handler.upload exception)
   with no signal to the operator that logs were not reaching the remote
   system. The supervisor's `_upload_logs` already logs the outermost
   exception, but the inner paths inside `upload_to_remote()` were silent
   — so a misconfigured remote handler or a transient remote-system
   outage would degrade silently while local-only logs continued.
   
   Add a dedicated `airflow.logging.remote` structlog logger and emit a
   `log.warning` at each of the three failure paths with the TI id and
   the underlying error string. No behaviour change otherwise — failures
   still fall through softly so a bad remote handler doesn't abort the
   task lifecycle.
   
   Reported by the L3 ASVS sweep at apache/tooling-agents#24 (FINDING-004).
   
   * Address review feedback on remote-log upload warnings
   
   - Use ti.id directly (available since 3.0) instead of getattr fallback.
   - Pass exc_info=exc to structlog so the traceback is preserved on
     path-resolution and upload failures.
   - Trim past-tense from the docstring comment.
   - Add tests covering the three failure paths and the silent
     success / no-path cases.
   (cherry picked from commit ef87426904c6bde23139b773b802fbafe3f858d2)
   
   Co-authored-by: Jarek Potiuk <[email protected]>


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