feat: remove tmp directory
This commit is contained in:
parent
b207fefca3
commit
d451fed832
|
@ -37,7 +37,7 @@ def convert(repo_conf: repo.Config, task_conf: task.Config) -> result.Config:
|
|||
)
|
||||
|
||||
# Construct healthcheck stage
|
||||
healthcheck_stage = getHealthcheckConfig(repo_conf, task_conf)
|
||||
healthcheck_stage = getHealthcheckConfig(repo_conf)
|
||||
result_conf.stage.stages.append(healthcheck_stage)
|
||||
cached: list[str] = []
|
||||
# Convert each stage in the task configuration
|
||||
|
|
|
@ -36,7 +36,7 @@ def getHealthcheckCmd(repo_conf: repo.Config) -> result.Cmd:
|
|||
else:
|
||||
immutable_files = immutable_files + name + ","
|
||||
# FIXME: need to make solution and make things easier to edit with global scope
|
||||
chore = f"/tmp/repo-health-checker -root=. "
|
||||
chore = f"./repo-health-checker -root=. "
|
||||
args = ""
|
||||
args = args + chore
|
||||
args = args + repo_size
|
||||
|
@ -51,15 +51,13 @@ def getHealthcheckCmd(repo_conf: repo.Config) -> result.Cmd:
|
|||
args=args.split(),
|
||||
# FIXME: easier to edit within global scope
|
||||
copy_in={
|
||||
f"/tmp/repo-health-checker": result.CmdFile(src=f"/tmp/repo-health-checker")
|
||||
f"./repo-health-checker": result.CmdFile(src=f"./repo-health-checker")
|
||||
},
|
||||
)
|
||||
return cmd
|
||||
|
||||
|
||||
def getHealthcheckConfig(
|
||||
repo_conf: repo.Config, task_conf: task.Config
|
||||
) -> result.StageDetail:
|
||||
def getHealthcheckConfig(repo_conf: repo.Config) -> result.StageDetail:
|
||||
healthcheck_stage = result.StageDetail(
|
||||
name="healthcheck",
|
||||
group="",
|
||||
|
|
|
@ -0,0 +1,118 @@
|
|||
task = "cc"
|
||||
|
||||
[[stages]]
|
||||
name = "cc"
|
||||
command = "run cc"
|
||||
score = 100
|
||||
parsers = []
|
||||
skip = []
|
||||
|
||||
[stages.files]
|
||||
import = []
|
||||
export = []
|
||||
|
||||
[stages.limit]
|
||||
mem = 4
|
||||
cpu = 4
|
||||
stderr = 4
|
||||
stdout = 4
|
||||
|
||||
[stages.dummy]
|
||||
comment = ""
|
||||
score = 0
|
||||
forcequit = true
|
||||
|
||||
[stages.result-status]
|
||||
comment = ""
|
||||
score = 0
|
||||
forcequit = true
|
||||
|
||||
[stages.keyword]
|
||||
keyword = []
|
||||
weight = []
|
||||
|
||||
[stages.clangtidy]
|
||||
keyword = []
|
||||
weight = []
|
||||
|
||||
[stages.cppcheck]
|
||||
keyword = []
|
||||
weight = []
|
||||
|
||||
[stages.cpplint]
|
||||
keyword = []
|
||||
weight = []
|
||||
|
||||
[stages.result-detail]
|
||||
time = true
|
||||
mem = true
|
||||
stdout = false
|
||||
stderr = false
|
||||
exitstatus = false
|
||||
[stages.diff.output]
|
||||
score = 0
|
||||
ignorespaces = false
|
||||
hide = false
|
||||
forcequit = true
|
||||
|
||||
[stages.cases]
|
||||
|
||||
[[stages]]
|
||||
name = "c"
|
||||
command = "run c"
|
||||
score = 100
|
||||
parsers = []
|
||||
skip = []
|
||||
|
||||
[stages.files]
|
||||
import = []
|
||||
export = []
|
||||
|
||||
[stages.limit]
|
||||
mem = 4
|
||||
cpu = 4
|
||||
stderr = 4
|
||||
stdout = 4
|
||||
|
||||
[stages.dummy]
|
||||
comment = ""
|
||||
score = 0
|
||||
forcequit = true
|
||||
|
||||
[stages.result-status]
|
||||
comment = ""
|
||||
score = 0
|
||||
forcequit = true
|
||||
|
||||
[stages.keyword]
|
||||
keyword = []
|
||||
weight = []
|
||||
|
||||
[stages.clangtidy]
|
||||
keyword = []
|
||||
weight = []
|
||||
|
||||
[stages.cppcheck]
|
||||
keyword = []
|
||||
weight = []
|
||||
|
||||
[stages.cpplint]
|
||||
keyword = []
|
||||
weight = []
|
||||
|
||||
[stages.result-detail]
|
||||
time = true
|
||||
mem = true
|
||||
stdout = false
|
||||
stderr = false
|
||||
exitstatus = false
|
||||
[stages.diff.output]
|
||||
score = 0
|
||||
ignorespaces = false
|
||||
hide = false
|
||||
forcequit = true
|
||||
|
||||
[stages.cases]
|
||||
|
||||
[release]
|
||||
deadline = "null"
|
Loading…
Reference in New Issue
Block a user