dev #10

Merged
李衍志523370910113 merged 238 commits from dev into master 2025-03-05 16:20:39 +08:00
7 changed files with 22 additions and 87 deletions
Showing only changes of commit a41b32ce92 - Show all commits

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 (
jon-lee marked this conversation as resolved Outdated

forgot to uncommented 😭

forgot to uncommented 😭

fixed

fixed
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