Fix dumping container logs on error#19645
Conversation
|
cc: @khalidmammadov |
|
You can see container logs nicely uploaded here: https://github.com/apache/airflow/actions/runs/1471691334 BTW. It would not help with diagnosing the problem we had - pinot logs are not showig anything suspicious. It looks like error was caused by bad health-check. I will add a |
When we optimized tests for memory use we added cleanup of all containers after each test suite. Unfortunately it caused dumping container logs to stop working because this dumping was done only only when the script was exiting. This PR moves dumping container logs to between the test run and cleanup, so that we can see the logs when there is a test failure. Related to: apache#19633 where the logs were not dumped and it made the analysis much more difficult.
36681f4 to
b71bf70
Compare
ashb
left a comment
There was a problem hiding this comment.
Yeah my change didn't work on timeout, likely because of this.
|
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
When we optimized tests for memory use we added cleanup of all containers after each test suite. Unfortunately it caused dumping container logs to stop working because this dumping was done only only when the script was exiting. This PR moves dumping container logs to between the test run and cleanup, so that we can see the logs when there is a test failure. Related to: #19633 where the logs were not dumped and it made the analysis much more difficult. (cherry picked from commit 7cda7d4)
When we optimized tests for memory use we added cleanup of all containers after each test suite. Unfortunately it caused dumping container logs to stop working because this dumping was done only only when the script was exiting. This PR moves dumping container logs to between the test run and cleanup, so that we can see the logs when there is a test failure. Related to: #19633 where the logs were not dumped and it made the analysis much more difficult. (cherry picked from commit 7cda7d4)
When we optimized tests for memory use we added cleanup of all containers after each test suite. Unfortunately it caused dumping container logs to stop working because this dumping was done only only when the script was exiting. This PR moves dumping container logs to between the test run and cleanup, so that we can see the logs when there is a test failure. Related to: #19633 where the logs were not dumped and it made the analysis much more difficult. (cherry picked from commit 7cda7d4)
When we optimized tests for memory use we added cleanup of all
containers after each test suite. Unfortunately it caused
dumping container logs to stop working because this dumping was
done only only when the script was exiting.
This PR moves dumping container logs to between the test run and
cleanup, so that we can see the logs when there is a test failure.
Related to: #19633 where the logs were not dumped and it made the
analysis much more difficult.
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
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.