Unverified Commit de6f3ad0 authored by Yossi Gottlieb's avatar Yossi Gottlieb Committed by GitHub
Browse files

Fix FreeBSD tests and CI Daily issues. (#8438)

* Add bash temporarily to allow sentinel fd leaks test to run.
* Use vmactions-freebsd rdist sync to work around bind permission denied
  and slow execution issues.
* Upgrade to tcl8.6 to be aligned with latest Ubuntu envs.
* Concat all command executions to avoid ignoring failures.
* Skip intensive fuzzer on FreeBSD. For some yet unknown reason, generate_fuzzy_traffic_on_key causes TCL to significantly bloat on FreeBSD resulting with out of memory.
parent a3718cde
...@@ -58,14 +58,3 @@ jobs: ...@@ -58,14 +58,3 @@ jobs:
run: | run: |
yum -y install gcc make yum -y install gcc make
make REDIS_CFLAGS='-Werror' make REDIS_CFLAGS='-Werror'
build-freebsd:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: make
uses: vmactions/freebsd-vm@v0.1.0
with:
usesh: true
prepare: pkg install -y gmake
run: gmake
...@@ -210,13 +210,14 @@ jobs: ...@@ -210,13 +210,14 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: test - name: test
uses: vmactions/freebsd-vm@v0.1.0 uses: vmactions/freebsd-vm@v0.1.2
with: with:
usesh: true usesh: true
prepare: pkg install -y gmake lang/tcl85 sync: rsync
run: | prepare: pkg install -y bash gmake lang/tcl86
gmake run: >
./runtest --accurate --verbose --no-latency gmake &&
MAKE=gmake ./runtest-moduleapi --verbose ./runtest --accurate --verbose --no-latency &&
./runtest-sentinel MAKE=gmake ./runtest-moduleapi --verbose &&
./runtest-sentinel &&
./runtest-cluster ./runtest-cluster
...@@ -71,6 +71,13 @@ foreach sanitize_dump {no yes} { ...@@ -71,6 +71,13 @@ foreach sanitize_dump {no yes} {
set min_cycles 10 ; # run at least 10 cycles set min_cycles 10 ; # run at least 10 cycles
} }
# Don't execute this on FreeBSD due to a yet-undiscovered memory issue
# which causes tclsh to bloat.
if {[exec uname] == "FreeBSD"} {
set min_cycles 1
set min_duration 1
}
test "Fuzzer corrupt restore payloads - sanitize_dump: $sanitize_dump" { test "Fuzzer corrupt restore payloads - sanitize_dump: $sanitize_dump" {
if {$min_duration * 2 > $::timeout} { if {$min_duration * 2 > $::timeout} {
fail "insufficient timeout" fail "insufficient timeout"
......
...@@ -43,7 +43,7 @@ all: $(TEST_MODULES) ...@@ -43,7 +43,7 @@ all: $(TEST_MODULES)
$(CC) -I../../src $(CFLAGS) $(SHOBJ_CFLAGS) -fPIC -c $< -o $@ $(CC) -I../../src $(CFLAGS) $(SHOBJ_CFLAGS) -fPIC -c $< -o $@
%.so: %.xo %.so: %.xo
$(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LDFLAGS) $(LIBS) -lc $(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LDFLAGS) $(LIBS)
.PHONY: clean .PHONY: clean
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment