The GitHub Actions job "Tests" on 
airflow.git/fix/eks-pod-operator-credential-refresh-issue-57585 has failed.
Run started by GitHub user aviralgarg05 (triggered by vincbeck).

Head commit for run:
7ceac243b8a706a2f8cbf604e9ca0e908e9dbdeb / aviralgarg05 <[email protected]>
Fix EKSPodOperator credential refresh errors and improve error handling (#57585)

This commit fixes the issue where long-running EKS Pod tasks fail with
'NoneType' object has no attribute 'groups' error during AWS credential
refresh and where logs get duplicated after reconnection.

Changes:
1. Enhanced COMMAND template in eks.py to validate token generation output
   - Added validation to ensure last_line is not empty
   - Added validation to ensure timestamp and token are successfully parsed
   - Provides clear error messages when token parsing fails
   - Prevents NoneType errors from bash script failures

2. Improved error handling in pod.py _handle_api_exception method
   - Added try-except block around credential refresh logic
   - Logs detailed error information when credential refresh fails
   - Helps diagnose the root cause of credential refresh failures

These changes prevent cryptic NoneType errors and provide better visibility
into credential refresh failures for EKS Pod operators.

Fixes #57585

Report URL: https://github.com/apache/airflow/actions/runs/19718242211

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to