From e9af96d30f9e1e5d87fb6e086850b93e4059a438 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Mon, 21 Oct 2024 04:35:57 -0400 Subject: [PATCH] feat: move to repo-health-checker --- conf.json | 69 +++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 44 insertions(+), 25 deletions(-) diff --git a/conf.json b/conf.json index 66d1687..18d92bb 100644 --- a/conf.json +++ b/conf.json @@ -1,30 +1,49 @@ { - "stages" : [ { - "name" : "healthcheck", - "executor" : { - "name" : "sandbox", - "with" : { - "default" : { - "args" : - [ "./healthcheck", "-root=.", "-meta=readme", "-repoSize=0.1" ], - "env" : ["PATH=/usr/bin:/bin"], - "cpuLimit" : 10000000000, - "memoryLimit" : 104857600, - "procLimit" : 50, - "copyInDir" : ".", - "copyIn" : { - "healthcheck" : {"src" : "./../../../../../../build/healthcheck"} - }, - "copyOut" : [ "stdout", "stderr" ], - "stdin" : {"content" : ""}, - "stdout" : {"name" : "stdout", "max" : 4096}, - "stderr" : {"name" : "stderr", "max" : 4096} + "stages": [ + { + "name": "healthcheck", + "executor": { + "name": "sandbox", + "with": { + "default": { + "args": [ + "/tmp/repo-health-checker", + "-root=.", + "-meta=readme", + "-repoSize=0.1" + ], + "env": ["PATH=/usr/bin:/bin"], + "cpuLimit": 10000000000, + "memoryLimit": 104857600, + "procLimit": 50, + "copyInDir": ".", + "copyIn": { + "/tmp/repo-health-checker": { + "src": "./../../../../../../build/repo-health-checker" + } + }, + "copyOut": ["stdout", "stderr"], + "stdin": { + "content": "" + }, + "stdout": { + "name": "stdout", + "max": 4096 + }, + "stderr": { + "name": "stderr", + "max": 4096 + } + } + } + }, + "parser": { + "name": "healthcheck", + "with": { + "score": 10, + "comment": " + comment from toml conf" } } - }, - "parser" : { - "name" : "healthcheck", - "with" : {"score" : 10, "comment" : " + comment from toml conf"} } - } ] + ] }