Add extra error handling to S3 remote logging (#9118)#9908
Add extra error handling to S3 remote logging (#9118)#9908ashb merged 8 commits intoapache:masterfrom
Conversation
|
This works very well! |
|
@feluelle can you check? |
|
Can you give me an example of what the log view now shows with an error? |
|
Depending on the type of the error it might show: |
|
Oh, so it doesn't include any of the error message from S3? |
|
It shows the error from the HEAD: |
ashb
left a comment
There was a problem hiding this comment.
Could you add a new test along the lines of test_read_when_s3_log_missing but when an error is returned.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
ashb
left a comment
There was a problem hiding this comment.
Sorry, missed the rereview request.
Lgtm
|
The PR should be OK to be merged with just subset of tests as it does not modify Core of Airflow. The committers might merge it or can add a label 'full tests needed' and re-run it to run all tests if they see it is needed! |
|
Sorry @JPonte but there are some conflicting files. Can you fix this? When you've done this I am merging it. |
|
@feluelle done |
|
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Backport packages$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*. |
|
@JPonte there is an error with the - msg = 'Could not read logs from {} with error: {}'.format(remote_log_location, error)
+ msg = f'Could not read logs from {remote_log_location} with error: {error}'We force to use f-strings |
|
@feluelle Ah, my bad. Fixed again. |
|
The Workflow run is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Backport packages$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*. |
ashb
left a comment
There was a problem hiding this comment.
Tests failing because of trailing spaces in strings
#9118
Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.