diff --git a/tests/kphp_ci_pipeline_runner.py b/tests/kphp_ci_pipeline_runner.py index 1d915cb68c..a7989c1d5a 100755 --- a/tests/kphp_ci_pipeline_runner.py +++ b/tests/kphp_ci_pipeline_runner.py @@ -438,8 +438,8 @@ def _calculate_pytest_jobs_count(default_percent: int = 95) -> int: cmd="KPHP_TESTS_POLYFILLS_REPO={kphp_polyfills_repo} " "KPHP_CXX={cxx_name} " "K2_BIN={k2_bin} " - "K2_MONITORING_ABORT_HANGING_GLOBAL_TASK=false " - "K2_MONITORING_ABORT_HANGING_REQUEST_TASK=false " + "K2_MONITORING_REQUEST_TASK_HARD_TIMEOUT=30 " + "K2_MONITORING_GLOBAL_TASK_HARD_TIMEOUT=30 " "KPHP_TRACKED_BUILTINS_LIST={K2_KPHP_TRACKED_BUILTINS_LIST} " "python3 -m pytest --basetemp={base_tempdir} --tb=native -n{jobs} {functional_tests_dir}".format( kphp_polyfills_repo=kphp_polyfills_repo, diff --git a/tests/python/lib/kphp_run_once.py b/tests/python/lib/kphp_run_once.py index afeed27f86..a61f430872 100644 --- a/tests/python/lib/kphp_run_once.py +++ b/tests/python/lib/kphp_run_once.py @@ -156,7 +156,7 @@ def run_with_kphp_and_k2(self, runs_cnt=1, args=[]): k2_node_bin = self.k2_bin - cmd = [k2_node_bin, "run-once", "--image", os.path.join(self._kphp_build_tmp_dir, "component.so"), "--runs-count={}".format(runs_cnt), "--crypto", "--instance-cache"] + args + cmd = [k2_node_bin, "run-once", "--image", os.path.join(self._kphp_build_tmp_dir, "component.so"), "--runs-count={}".format(runs_cnt), "--crypto", "--instance-cache", "--task-hard-timeout", "30"] + args env = os.environ.copy() if "RUST_LOG" not in env: