Skip to content

Add a --no-latency tests flag.#7939

Merged
yossigo merged 2 commits intoredis:unstablefrom
yossigo:no-latency-tests-flag
Oct 22, 2020
Merged

Add a --no-latency tests flag.#7939
yossigo merged 2 commits intoredis:unstablefrom
yossigo:no-latency-tests-flag

Conversation

@yossigo
Copy link
Collaborator

@yossigo yossigo commented Oct 21, 2020

Useful for running tests on systems which may be way slower than usual.

Useful for running tests on systems which may be way slower than usual.
@yossigo yossigo requested a review from oranagra October 21, 2020 15:30
oranagra
oranagra previously approved these changes Oct 21, 2020
# If running on Linux, we also measure utime/stime to detect possible I/O handling issues
set os [catch {exec unamee}]
set measure_time [expr {$os == "Linux"} ? 1 : 0]
set measure_time [expr {$os == "Linux" && !$::no_latency} ? 1 : 0]
Copy link
Member

Choose a reason for hiding this comment

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

I would rather just make the assertions conditional, and keep the verbose logging

@oranagra
Copy link
Member

fresh from the oven:
https://github.com/redis/redis/runs/1289896233

*** [err]: LATENCY HISTORY output is ok in tests/unit/latency-monitor.tcl
Expected 573 >= 350 && 573 <= 550 (context: type eval line 6 cmd {assert {$latency >= $min && $latency <= $max}} proc ::test)
*** [err]: LATENCY LATEST output is ok in tests/unit/latency-monitor.tcl
Expected 1603326833 == 1603326829 (context: type eval line 6 cmd {assert {$time == $last_time}} proc ::test)

teaches us two things:

  1. let's also put this one inside the if: assert {$time == $last_time}
  2. let's add --no-latency to the MacOS CI.

* Add --no-latency to macos daily.
* Print measured replication time with --no-latency.
* Ignore another latency assert.
@yossigo yossigo merged commit 843a13e into redis:unstable Oct 22, 2020
@yossigo yossigo deleted the no-latency-tests-flag branch October 22, 2020 08:10
oranagra pushed a commit that referenced this pull request Oct 27, 2020
Useful for running tests on systems which may be way slower than usual.

(cherry picked from commit 843a13e)
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Nov 4, 2020
Useful for running tests on systems which may be way slower than usual.
jschmieg pushed a commit to memKeyDB/memKeyDB that referenced this pull request Nov 6, 2020
Useful for running tests on systems which may be way slower than usual.

(cherry picked from commit 843a13e)
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.

2 participants