test: skip health check stage
This commit is contained in:
parent
6d2097b84b
commit
a41b32ce92
|
@ -45,8 +45,12 @@ def convert(
|
||||||
)
|
)
|
||||||
|
|
||||||
# Construct healthcheck stage
|
# Construct healthcheck stage
|
||||||
healthcheck_stage = get_healthcheck_config(repo_conf, repo_root)
|
if (
|
||||||
result_conf.stage.stages.append(healthcheck_stage)
|
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] = []
|
stages: List[str] = []
|
||||||
# Convert each stage in the task configuration
|
# Convert each stage in the task configuration
|
||||||
for task_stage in task_conf.stages:
|
for task_stage in task_conf.stages:
|
||||||
|
|
|
@ -4,19 +4,20 @@ from pydantic import BaseModel, Field
|
||||||
|
|
||||||
|
|
||||||
class Files(BaseModel):
|
class Files(BaseModel):
|
||||||
required: List[str]
|
required: List[str] = []
|
||||||
immutable: List[str]
|
immutable: List[str] = []
|
||||||
|
|
||||||
|
|
||||||
class Group(BaseModel):
|
class Groups(BaseModel):
|
||||||
name: List[str]
|
name: List[str] = []
|
||||||
max_count: List[int]
|
max_count: List[int] = []
|
||||||
time_period_hour: List[int]
|
time_period_hour: List[int] = []
|
||||||
|
|
||||||
|
|
||||||
class Config(BaseModel):
|
class Config(BaseModel):
|
||||||
max_size: float = Field(..., ge=0)
|
max_size: float = Field(10, ge=0)
|
||||||
files: Files
|
files: Files = Files()
|
||||||
sandbox_token: str
|
sandbox_token: str = Field("")
|
||||||
max_total_score: int = Field(100)
|
max_total_score: int = Field(100)
|
||||||
groups: Group
|
force_skip_heatlh_check_on_test: bool = False
|
||||||
|
groups: Groups = Groups()
|
||||||
|
|
|
@ -1,15 +1 @@
|
||||||
sandbox_token = "test"
|
force_skip_heatlh_check_on_test = true
|
||||||
|
|
||||||
# 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"]
|
|
||||||
|
|
|
@ -1,15 +1 @@
|
||||||
sandbox_token = "test"
|
force_skip_heatlh_check_on_test = true
|
||||||
|
|
||||||
# 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"]
|
|
||||||
|
|
|
@ -1,15 +1 @@
|
||||||
sandbox_token = "test"
|
force_skip_heatlh_check_on_test = true
|
||||||
|
|
||||||
# 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"]
|
|
||||||
|
|
|
@ -1,15 +1 @@
|
||||||
sandbox_token = "test"
|
force_skip_heatlh_check_on_test = true
|
||||||
|
|
||||||
# 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"]
|
|
||||||
|
|
|
@ -1,15 +1 @@
|
||||||
sandbox_token = "test"
|
force_skip_heatlh_check_on_test = true
|
||||||
|
|
||||||
# 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"]
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user