test: skip health check stage
Some checks failed
build / build (pull_request) Failing after 2m28s
build / build (push) Failing after 2m30s

This commit is contained in:
张泊明518370910136 2025-02-24 22:17:41 -05:00
parent 6d2097b84b
commit a41b32ce92
GPG Key ID: D47306D7062CDA9D
7 changed files with 22 additions and 87 deletions

View File

@ -45,8 +45,12 @@ def convert(
)
# Construct healthcheck stage
healthcheck_stage = get_healthcheck_config(repo_conf, repo_root)
result_conf.stage.stages.append(healthcheck_stage)
if (
not repo_conf.force_skip_heatlh_check_on_test
or os.environ.get("PYTEST_CURRENT_TEST") is None
):
healthcheck_stage = get_healthcheck_config(repo_conf, repo_root)
result_conf.stage.stages.append(healthcheck_stage)
stages: List[str] = []
# Convert each stage in the task configuration
for task_stage in task_conf.stages:

View File

@ -4,19 +4,20 @@ from pydantic import BaseModel, Field
class Files(BaseModel):
required: List[str]
immutable: List[str]
required: List[str] = []
immutable: List[str] = []
class Group(BaseModel):
name: List[str]
max_count: List[int]
time_period_hour: List[int]
class Groups(BaseModel):
name: List[str] = []
max_count: List[int] = []
time_period_hour: List[int] = []
class Config(BaseModel):
max_size: float = Field(..., ge=0)
files: Files
sandbox_token: str
max_size: float = Field(10, ge=0)
files: Files = Files()
sandbox_token: str = Field("")
max_total_score: int = Field(100)
groups: Group
force_skip_heatlh_check_on_test: bool = False
groups: Groups = Groups()

View File

@ -1,15 +1 @@
sandbox_token = "test"
# reconfigure later
max_total_score = 100
max_size = 50.5
# for tests
[groups]
name = ["joj", "run"]
max_count = [1000, 1000]
time_period_hour = [24, 24]
[files]
required = ["README.md", "Changelog.md"]
immutable = [".gitignore", ".gitattributes",".gitea/workflows/push.yaml", ".gitea/workflows/release.yaml"]
force_skip_heatlh_check_on_test = true

View File

@ -1,15 +1 @@
sandbox_token = "test"
# reconfigure later
max_total_score = 100
max_size = 50.5
# for tests
[groups]
name = ["joj", "run"]
max_count = [1000, 1000]
time_period_hour = [24, 24]
[files]
required = ["README.md", "Changelog.md"]
immutable = [".gitignore", ".gitattributes",".gitea/workflows/push.yaml", ".gitea/workflows/release.yaml"]
force_skip_heatlh_check_on_test = true

View File

@ -1,15 +1 @@
sandbox_token = "test"
# reconfigure later
max_total_score = 100
max_size = 50.5
# for tests
[groups]
name = ["joj", "run"]
max_count = [1000, 1000]
time_period_hour = [24, 24]
[files]
required = ["README.md", "Changelog.md"]
immutable = [".gitignore", ".gitattributes",".gitea/workflows/push.yaml", ".gitea/workflows/release.yaml"]
force_skip_heatlh_check_on_test = true

View File

@ -1,15 +1 @@
sandbox_token = "test"
# reconfigure later
max_total_score = 100
max_size = 50.5
# for tests
[groups]
name = ["joj", "run"]
max_count = [1000, 1000]
time_period_hour = [24, 24]
[files]
required = ["README.md", "Changelog.md"]
immutable = [".gitignore", ".gitattributes",".gitea/workflows/push.yaml", ".gitea/workflows/release.yaml"]
force_skip_heatlh_check_on_test = true

View File

@ -1,15 +1 @@
sandbox_token = "test"
# reconfigure later
max_total_score = 100
max_size = 50.5
# for tests
[groups]
name = ["joj", "run"]
max_count = [1000, 1000]
time_period_hour = [24, 24]
[files]
required = ["README.md", "Changelog.md"]
immutable = [".gitignore", ".gitattributes",".gitea/workflows/push.yaml", ".gitea/workflows/release.yaml"]
force_skip_heatlh_check_on_test = true