summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOran Agra <oran@redislabs.com>2020-02-25 13:01:52 +0200
committerOran Agra <oran@redislabs.com>2020-02-25 17:53:23 +0200
commit537893420bc5a51ece060b53e5492b101bcfaba3 (patch)
tree886b0684c7aaff364dd8c415f017d871b8b4d618
parent319a6831a912bab2e76590bbcac802e3a23188b1 (diff)
downloadredis-537893420bc5a51ece060b53e5492b101bcfaba3.tar.gz
fix github actions failing latency test for active defrag
seems that github actions are slow, using just one client to reduce false positives. also adding verbose, testing only on latest ubuntu, and building on older one. when doing that, i can reduce the test threshold back to something saner
-rw-r--r--.github/workflows/ci.yml21
-rw-r--r--tests/unit/memefficiency.tcl6
2 files changed, 14 insertions, 13 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 847abcf02..559ae61d8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -3,11 +3,8 @@ name: CI
on: [push, pull_request]
jobs:
- build-ubuntu:
- strategy:
- matrix:
- platform: [ubuntu-latest, ubuntu-16.04]
- runs-on: ${{ matrix.platform }}
+ test-ubuntu-latest:
+ runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: make
@@ -15,13 +12,17 @@ jobs:
- name: test
run: |
sudo apt-get install tcl8.5
- make test
+ ./runtest --clients 1 --verbose
+
+ test-ubuntu-old:
+ runs-on: ubuntu-16.04
+ steps:
+ - uses: actions/checkout@v1
+ - name: make
+ run: make
build-macos-latest:
- strategy:
- matrix:
- platform: [macos-latest, macOS-10.14]
- runs-on: ${{ matrix.platform }}
+ runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: make
diff --git a/tests/unit/memefficiency.tcl b/tests/unit/memefficiency.tcl
index 468825a47..c899103fd 100644
--- a/tests/unit/memefficiency.tcl
+++ b/tests/unit/memefficiency.tcl
@@ -100,7 +100,7 @@ start_server {tags {"defrag"}} {
assert {$frag < 1.1}
# due to high fragmentation, 100hz, and active-defrag-cycle-max set to 75,
# we expect max latency to be not much higher than 7.5ms but due to rare slowness threshold is set higher
- assert {$max_latency <= 60}
+ assert {$max_latency <= 30}
} else {
set _ ""
}
@@ -226,7 +226,7 @@ start_server {tags {"defrag"}} {
assert {$frag < 1.1}
# due to high fragmentation, 100hz, and active-defrag-cycle-max set to 75,
# we expect max latency to be not much higher than 7.5ms but due to rare slowness threshold is set higher
- assert {$max_latency <= 60}
+ assert {$max_latency <= 30}
}
# verify the data isn't corrupted or changed
set newdigest [r debug digest]
@@ -317,7 +317,7 @@ start_server {tags {"defrag"}} {
assert {$frag < 1.1}
# due to high fragmentation, 100hz, and active-defrag-cycle-max set to 75,
# we expect max latency to be not much higher than 7.5ms but due to rare slowness threshold is set higher
- assert {$max_latency <= 60}
+ assert {$max_latency <= 30}
}
# verify the data isn't corrupted or changed
set newdigest [r debug digest]