Skip to content

Commit c761fc1

Browse files
committed
GH workflow: compile redis manually to be able to use v8
1 parent f554d56 commit c761fc1

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.github/workflows/install-slips-dependencies.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,21 @@ jobs:
3333
- name: Enable memory overcommit (for Redis)
3434
run: sysctl vm.overcommit_memory=1
3535

36+
- name: Install Redis
37+
run: |
38+
curl -L https://download.redis.io/redis-stable.tar.gz -o /tmp/redis-stable.tar.gz \
39+
&& mkdir -p /redis-stable \
40+
&& tar xzf redis-stable.tar.gz -C / \
41+
&& cd /redis-stable \
42+
&& make distclean \
43+
&& make MALLOC=libc
44+
3645
- name: Install APT dependencies
3746
run: |
38-
sudo apt-get update --fix-missing && sudo apt-get -y --no-install-recommends install $(cat install/apt_dependencies.txt)
39-
sudo apt-get -y install font-manager
47+
sudo apt-get update --fix-missing && \
48+
sudo apt-get -y --no-install-recommends install \
49+
$(grep -Ev '^(redis|redis-server)$' install/apt_dependencies.txt)
50+
4051
4152
- name: Save APT Cache
4253
uses: actions/cache@v4

install/apt_dependencies.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,3 @@ yara
2727
libnotify-bin
2828
wireless-tools
2929
arp-scan
30-
redis-server
31-
redis

tests/test_whitelist.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ def test_is_ignored_flow_type(
7777

7878
def test_get_src_domains_of_flow():
7979
whitelist = ModuleFactory().create_whitelist_obj()
80-
whitelist.db.get_ip_info.return_value = {
81-
"SNI": [{"server_name": "sni.com"}]
82-
}
80+
whitelist.db.get_ip_info.return_value = [{"server_name": "sni.com"}]
8381
whitelist.db.get_dns_resolution.return_value = {
8482
"domains": ["dns_resolution.com"]
8583
}

0 commit comments

Comments
 (0)