feat: longer time limit for health check
Some checks failed
build / build (push) Failing after 3m15s

This commit is contained in:
张泊明518370910136 2025-03-21 17:26:58 -04:00
parent 56c4981340
commit 2c78d75e07
GPG Key ID: D47306D7062CDA9D
2 changed files with 6 additions and 4 deletions

View File

@ -2,7 +2,7 @@ import hashlib
from pathlib import Path
from typing import List
from joj3_config_generator.models import repo, result
from joj3_config_generator.models import common, repo, result
from joj3_config_generator.models.const import TEAPOT_CONFIG_ROOT, TEAPOT_LOG_PATH
@ -71,7 +71,9 @@ def get_health_check_stage(repo_conf: repo.Config) -> result.StageDetail:
executor=result.Executor(
name="local",
with_=result.ExecutorWith(
default=result.Cmd(),
default=result.Cmd(
cpu_limit=common.Time("10s"), clock_limit=common.Time("20s")
),
cases=[
result.OptionalCmd(
args=get_health_check_args(repo_conf),

View File

@ -32,8 +32,8 @@
"max": 33554432,
"pipe": true
},
"cpuLimit": 1000000000,
"clockLimit": 2000000000,
"cpuLimit": 10000000000,
"clockLimit": 20000000000,
"memoryLimit": 134217728,
"stackLimit": 0,
"procLimit": 50,