From 009aa6257b93e727a2af4729b1e874c1d9dfd600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Fri, 14 Mar 2025 11:38:24 +0100 Subject: [PATCH] ci.ocp: Override default runtimeclass CPU resources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit some of the e2e tests spawn a lot of workers which are mainly idle, but the scheduler fails to schedule them due to cpu resource overcommit. For our testing we are more focused on having actual pods running than the speed of the scheduled pods so let's increase the amount of schedulable pods by decreasing the default cpu requests. Signed-off-by: Lukáš Doktor --- ci/openshift-ci/test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/openshift-ci/test.sh b/ci/openshift-ci/test.sh index d012e5670..9f2a4f7a3 100755 --- a/ci/openshift-ci/test.sh +++ b/ci/openshift-ci/test.sh @@ -26,6 +26,9 @@ info "Install and configure kata into the test cluster" export SELINUX_PERMISSIVE="no" "${script_dir}/cluster/install_kata.sh" || die "Failed to install kata-containers" +info "Overriding KATA_RUNTIME cpu resources" +oc patch "runtimeclass/${KATA_RUNTIME}" -p '{"overhead": {"podFixed": {"cpu": "50m"}}}' + info "Run test suite: ${suite}" test_status='PASS' "${script_dir}/run_${suite}_test.sh" || test_status='FAIL'