SameerMesiah97 commented on code in PR #77451:
URL: https://github.com/apache/airflow/pull/77451#discussion_r4654371989
##########
airflow-core/tests/unit/utils/log/test_file_processor_handler.py:
##########
@@ -89,6 +90,24 @@ def test_symlink_latest_log_directory(self):
assert os.path.basename(os.path.realpath(link)) == date2
assert os.path.exists(os.path.join(link, "log2"))
+ @mock.patch.object(FileProcessorHandler, "_symlink_latest_log_directory",
autospec=True)
+ def test_symlink_not_refreshed_within_same_day(self, mock_symlink):
Review Comment:
Since this PR addresses a date-boundary issue, could we extend the test to
cover a few additional boundary conditions? For example, we coudl verify that
the symlink refreshes at exactly midnight and that subsequent calls on the new
day do not trigger another refresh. There are more scenarios like month/year
rollover and clocks moving backwards/forwards for DST that you could optionally
cover as well.
--
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]