Skip to content

Commit

Permalink
test: Increase TestHostSwitching VM memory for devel scenario
Browse files Browse the repository at this point in the history
The Python bridge currently loads all package files into memory. These
become very big in the devel scenario, causing some OOM in
TestHostSwitching. This is going to be addressed in PR #19065; increase
the VM size until that lands.
  • Loading branch information
martinpitt committed Jul 13, 2023
1 parent 3a36307 commit dbeda3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/verify/check-shell-host-switching
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Cockpit; If not, see <http://www.gnu.org/licenses/>.

import os
import time

import testlib
Expand Down Expand Up @@ -104,7 +105,8 @@ class HostSwitcherHelpers:
@testlib.todoPybridgeRHEL8()
class TestHostSwitching(testlib.MachineCase, HostSwitcherHelpers):
provision = {
'machine1': {"address": "10.111.113.1/20", "memory_mb": 512},
# HACK: pybridge uses too much memory in devel scenario, revert after PR #19065
'machine1': {"address": "10.111.113.1/20", "memory_mb": 768 if "devel" in os.getenv("TEST_SCENARIO", "") else 512},
'machine2': {"address": "10.111.113.2/20", "memory_mb": 512},
'machine3': {"address": "10.111.113.3/20", "memory_mb": 512}
}
Expand Down

0 comments on commit dbeda3c

Please sign in to comment.