Skip to content

[syslog] Add wait_until to syslog test to stabilize kvm runners#2027

Merged
daall merged 2 commits intosonic-net:masterfrom
daall:syslog_wait
Aug 5, 2020
Merged

[syslog] Add wait_until to syslog test to stabilize kvm runners#2027
daall merged 2 commits intosonic-net:masterfrom
daall:syslog_wait

Conversation

@daall
Copy link
Contributor

@daall daall commented Aug 4, 2020

Signed-off-by: Danny Allen [email protected]

Description of PR

Summary: Add wait_until to syslog test to even out instabilities running the test in a virtual PR environment.
Fixes #1998

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach

What is the motivation for this PR?

We noticed that the syslog test occasionally fails the PR tests, but rarely ever on physical switches. We think the discrepancy is because the shared kvm environment that the PR tests is quite a bit noisier and slower than the physical test environment, so we may need to wait longer for the syslog to populate.

How did you do it?

I used wait_until to poll for the syslog message rather than checking immediately after the log message is written.

In addition, I also added a wait_until to the test initialization to speed things along when the syslog service restarts in <30s.

I also fixed the pep8 warnings that popped up in my dev environment.

How did you verify/test it?

Ran the test locally on my virtual switch and on a physical DUT.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@daall daall merged commit ab45537 into sonic-net:master Aug 5, 2020
@daall daall deleted the syslog_wait branch August 5, 2020 19:07
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…atically (sonic-net#15835)

src/sonic-utilities

* bc7c7929 - (HEAD -> 202205, origin/202205) Add FEC correctable and uncorrectable port stats (sonic-net#2027) (10 hours ago) [Prince George]
* 58db48ad - [show][muxcable] update `show mux tunnel-route` to check soc_ipv6 as well (10 hours ago) [Jing Zhang]
* 24fc1db8 - [dualtor][route_check] filter out `soc_ipv6`  (sonic-net#2899) (10 hours ago) [Jing Zhang]
* d89d4832 - [route_check][dualtor] Ignore vlan neighbor route miss (sonic-net#2888) (10 hours ago) [Longxiang Lyu]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_syslog unstable

4 participants