Skip to content

Conversation

@troglobit
Copy link
Contributor

@troglobit troglobit commented Nov 25, 2025

Description

The syslog/hostname-filtering test (introduced in this release cycle) has shown itself to be a bit flaky on physical test systems. The changes introduced in this PR add some basic checks to ensure connectivity between syslog server and client before initiating the test phase.

The results of this change have proven successful.

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe): flaky test stabilzation

@troglobit troglobit changed the title test: attempt to stabilize syslog hostname filtering Stabilize syslog hostname filtering test Nov 25, 2025
@troglobit troglobit requested a review from mattiaswal November 25, 2025 17:04
@troglobit troglobit marked this pull request as ready for review November 25, 2025 17:04
clientssh.runsh(f"logger -t test -p daemon.info -H {hostname} -h 10.0.0.1 '{message}'")
time.sleep(2)
# Give extra time for messages to be received and written to disk on physical hardware
time.sleep(5)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use until here, instead of magic sleep. Move
rc = serverssh.runsh("cat /var/log/router1 2>/dev/null") log_content = rc.stdout if rc.returncode == 0 else ""

to a seperate function and use until on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants