feat: remove tmp directory
This commit is contained in:
parent
4d65165da5
commit
fc435027de
|
@ -28,7 +28,7 @@ def convert(repo_conf: repo.Config, task_conf: task.Config) -> result.Config:
|
||||||
)
|
)
|
||||||
|
|
||||||
# Construct healthcheck stage
|
# Construct healthcheck stage
|
||||||
healthcheck_stage = getHealthcheckConfig(repo_conf, task_conf)
|
healthcheck_stage = getHealthcheckConfig(repo_conf)
|
||||||
result_conf.stage.stages.append(healthcheck_stage)
|
result_conf.stage.stages.append(healthcheck_stage)
|
||||||
cached: list[str] = []
|
cached: list[str] = []
|
||||||
# Convert each stage in the task configuration
|
# Convert each stage in the task configuration
|
||||||
|
|
|
@ -48,7 +48,7 @@ def getHealthcheckCmd(repo_conf: Repo) -> Cmd:
|
||||||
else:
|
else:
|
||||||
immutable_files = immutable_files + name + ","
|
immutable_files = immutable_files + name + ","
|
||||||
# FIXME: need to make solution and make things easier to edit with global scope
|
# 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 = args + chore
|
args = args + chore
|
||||||
args = args + repo_size
|
args = args + repo_size
|
||||||
|
@ -63,14 +63,14 @@ def getHealthcheckCmd(repo_conf: Repo) -> Cmd:
|
||||||
args=args.split(),
|
args=args.split(),
|
||||||
# FIXME: easier to edit within global scope
|
# FIXME: easier to edit within global scope
|
||||||
copy_in={
|
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
|
return cmd
|
||||||
|
|
||||||
|
|
||||||
def getHealthcheckConfig(repo_conf: Repo, task_conf: Task) -> Stage:
|
def getHealthcheckConfig(repo_conf: repo.Config) -> result.StageDetail:
|
||||||
healthcheck_stage = Stage(
|
healthcheck_stage = result.StageDetail(
|
||||||
name="healthcheck",
|
name="healthcheck",
|
||||||
group="",
|
group="",
|
||||||
executor=ExecutorConfig(
|
executor=ExecutorConfig(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user