Repository navigation
test: check the log-file symlink victim, not a polled syslog - #8350
Merged
Merged
Conversation
oferchen
force-pushed
the
test/operator-path-syslog-no-poll
branch
3 times, most recently
from
November 13, 2026 16:16
22c28de to
50ea628
Compare
oferchen
force-pushed
the
test/operator-path-syslog-no-poll
branch
from
November 14, 2026 10:29
50ea628 to
8ee9a57
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
daemon_operator_path_symlinkspolled journald for up to 5 s to see thelog filerefusal reach syslog. 3.5.1's own tests for this case (testsuite/log-file-symlink_test.py,operator-path-log-file_test.py) only check that the victim file is untouched; nothing in the 3.5.1 testsuite reads syslog. The test now checks what upstream checks: the victim is unchanged, the planted symlink is left alone, and the daemon keeps serving (log.c:169, :175-182). The two fallback lines and their order are already pinned by the unit testlog_file_open_failure_falls_back_to_syslog.Also drops the
Duration, Instantimport that #8254 left unused. Stacked on #8254.Tests