Skip to content

Commit 8eea6ae

Browse files
authored
Fix Redis memory overcommit warning in the CI (#414)
1 parent 06170dc commit 8eea6ae

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

.github/workflows/examples.yml

+18
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
- name: Install apt packages
4444
run: |
4545
sudo apt update
46+
sudo apt-get install -y procps # Install procps to enable sysctl
47+
sudo sysctl -w vm.overcommit_memory=1
4648
- uses: actions/checkout@v4
4749
- name: Set up Python ${{ matrix.python-version }}
4850
uses: useblacksmith/setup-python@v6
@@ -75,6 +77,8 @@ jobs:
7577
- name: Install apt packages
7678
run: |
7779
sudo apt update
80+
sudo apt-get install -y procps # Install procps to enable sysctl
81+
sudo sysctl -w vm.overcommit_memory=1
7882
- uses: actions/checkout@v4
7983
- name: Set up Python ${{ matrix.python-version }}
8084
uses: useblacksmith/setup-python@v6
@@ -107,6 +111,8 @@ jobs:
107111
- name: Install apt packages
108112
run: |
109113
sudo apt update
114+
sudo apt-get install -y procps # Install procps to enable sysctl
115+
sudo sysctl -w vm.overcommit_memory=1
110116
- uses: actions/checkout@v4
111117
- name: Set up Python ${{ matrix.python-version }}
112118
uses: useblacksmith/setup-python@v6
@@ -139,6 +145,8 @@ jobs:
139145
- name: Install apt packages
140146
run: |
141147
sudo apt update
148+
sudo apt-get install -y procps # Install procps to enable sysctl
149+
sudo sysctl -w vm.overcommit_memory=1
142150
- uses: actions/checkout@v4
143151
- name: Set up Python ${{ matrix.python-version }}
144152
uses: useblacksmith/setup-python@v6
@@ -171,6 +179,8 @@ jobs:
171179
- name: Install apt packages
172180
run: |
173181
sudo apt update
182+
sudo apt-get install -y procps # Install procps to enable sysctl
183+
sudo sysctl -w vm.overcommit_memory=1
174184
- uses: actions/checkout@v4
175185
- name: Set up Python ${{ matrix.python-version }}
176186
uses: useblacksmith/setup-python@v6
@@ -209,6 +219,8 @@ jobs:
209219
- name: Install apt packages
210220
run: |
211221
sudo apt update
222+
sudo apt-get install -y procps # Install procps to enable sysctl
223+
sudo sysctl -w vm.overcommit_memory=1
212224
- uses: actions/checkout@v4
213225
- name: Set up Python ${{ matrix.python-version }}
214226
uses: useblacksmith/setup-python@v6
@@ -241,6 +253,8 @@ jobs:
241253
- name: Install apt packages
242254
run: |
243255
sudo apt update
256+
sudo apt-get install -y procps # Install procps to enable sysctl
257+
sudo sysctl -w vm.overcommit_memory=1
244258
- uses: actions/checkout@v4
245259
- name: Set up Python ${{ matrix.python-version }}
246260
uses: useblacksmith/setup-python@v6
@@ -273,6 +287,8 @@ jobs:
273287
- name: Install apt packages
274288
run: |
275289
sudo apt update
290+
sudo apt-get install -y procps # Install procps to enable sysctl
291+
sudo sysctl -w vm.overcommit_memory=1
276292
- uses: actions/checkout@v4
277293
- name: Set up Python ${{ matrix.python-version }}
278294
uses: useblacksmith/setup-python@v6
@@ -305,6 +321,8 @@ jobs:
305321
- name: Install apt packages
306322
run: |
307323
sudo apt update
324+
sudo apt-get install -y procps # Install procps to enable sysctl
325+
sudo sysctl -w vm.overcommit_memory=1
308326
- uses: actions/checkout@v4
309327
- name: Set up Python ${{ matrix.python-version }}
310328
uses: useblacksmith/setup-python@v6

.github/workflows/parallel-support.yml

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
- name: Install apt packages
5050
run: |
5151
sudo apt update
52+
sudo apt-get install -y procps # Install procps to enable sysctl
53+
sudo sysctl -w vm.overcommit_memory=1
5254
- uses: actions/checkout@v4
5355
- name: Set up Python ${{ matrix.python-version }}
5456
uses: useblacksmith/setup-python@v6
@@ -89,6 +91,8 @@ jobs:
8991
- name: Install apt packages
9092
run: |
9193
sudo apt update
94+
sudo apt-get install -y procps # Install procps to enable sysctl
95+
sudo sysctl -w vm.overcommit_memory=1
9296
- uses: actions/checkout@v4
9397
- name: Set up Python ${{ matrix.python-version }}
9498
uses: useblacksmith/setup-python@v6

.github/workflows/python-package.yml

+6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
- name: Install apt packages
5050
run: |
5151
sudo apt update
52+
sudo apt-get install -y procps # Install procps to enable sysctl
53+
sudo sysctl -w vm.overcommit_memory=1
5254
- uses: actions/checkout@v4
5355
- name: Set up Python ${{ matrix.python-version }}
5456
uses: useblacksmith/setup-python@v6
@@ -99,6 +101,8 @@ jobs:
99101
- name: Install apt packages
100102
run: |
101103
sudo apt update
104+
sudo apt-get install -y procps # Install procps to enable sysctl
105+
sudo sysctl -w vm.overcommit_memory=1
102106
- uses: actions/checkout@v4
103107
- name: Set up Python ${{ matrix.python-version }}
104108
uses: useblacksmith/setup-python@v6
@@ -142,6 +146,8 @@ jobs:
142146
- name: Install apt packages
143147
run: |
144148
sudo apt update
149+
sudo apt-get install -y procps # Install procps to enable sysctl
150+
sudo sysctl -w vm.overcommit_memory=1
145151
- uses: actions/checkout@v4
146152
- name: Set up Python ${{ matrix.python-version }}
147153
uses: useblacksmith/setup-python@v6

0 commit comments

Comments
 (0)