fix: result-status

This commit is contained in:
李衍志523370910113 2024-10-23 22:55:31 +08:00
parent f06bc21eeb
commit 5f51232cb0
2 changed files with 77 additions and 407 deletions

View File

@ -259,8 +259,10 @@ def fix_comment(task_stage: TaskStage, conf_stage: ResultStage) -> ResultStage:
for parser in task_stage.parsers: for parser in task_stage.parsers:
if parser in comment_parser: if parser in comment_parser:
comment_parser_ = next(p for p in conf_stage.parsers if p.name == parser) comment_parser_ = next(p for p in conf_stage.parsers if p.name == parser)
if getattr(task_stage, parser, None) is not None: if getattr(task_stage, parser.replace("-", "_"), None) is not None:
comment_parser_.with_.update(getattr(task_stage, parser)) comment_parser_.with_.update(
getattr(task_stage, parser.replace("-", "_"))
)
else: else:
continue continue
return conf_stage return conf_stage

View File

@ -1,6 +1,6 @@
{ {
"name": "h4 ex1", "name": "Homework 1 exercise 2",
"logPath": "h4-ex1.log", "logPath": "Homework-1-exercise-2.log",
"expireUnixTimestamp": 1728748740, "expireUnixTimestamp": 1728748740,
"stage": { "stage": {
"sandboxExecServer": "172.17.0.1:5051", "sandboxExecServer": "172.17.0.1:5051",
@ -18,12 +18,13 @@
"/<function", "/<function",
"get_temp_directory", "get_temp_directory",
"at", "at",
"0x7f19f8920180>/repo-health-checker", "0x7f1db69b71a0>/repo-health-checker",
"-root=.", "-root=.",
"-repoSize=50.5", "-repoSize=50.5",
"-meta=main.py", "-meta=main.py",
"-meta=README.md", "-meta=README.md",
"-checkFileSumList=-checkFileNameList=" "-checkFileSumList=a5b63323a692d3d8b952442969649b4f823d58dae26429494f613df160710dfc,b1bbad25b830db0a77b15a033f9ca1b7ab44c1d2d05056412bd3e4421645f0bf,1965adff52af61da8b9e089ff580d60f7e4c294a2930b9809c5cbdf76528de4d,c8bd62bf5297bac738b3845612fd595d677884093070904375463ab7953fce28",
"-checkFileNameList=.gitignore,.gitattributes,push.yaml,release.yaml"
], ],
"env": [ "env": [
"PATH=/usr/bin:/bin:/usr/local/bin" "PATH=/usr/bin:/bin:/usr/local/bin"
@ -70,8 +71,8 @@
"cpuRateLimit": 0, "cpuRateLimit": 0,
"cpuSetLimit": "", "cpuSetLimit": "",
"copyIn": { "copyIn": {
"//tmp/repo-checker-5txkd_qm/repo-health-checker": { "//tmp/repo-checker-90ztqsoq/repo-health-checker": {
"src": "//tmp/repo-checker-i9n16_cy/repo-health-checker", "src": "//tmp/repo-checker-41mcx5_x/repo-health-checker",
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": null, "name": null,
@ -135,7 +136,7 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stdout", "name": "stdout",
"max": 4000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
@ -146,15 +147,15 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stderr", "name": "stderr",
"max": 128000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
"pipe": false "pipe": false
}, },
"cpuLimit": 180000000000, "cpuLimit": 4000000000,
"realCpuLimit": 0, "realCpuLimit": 0,
"clockLimit": 360000000000, "clockLimit": 8000000000,
"memoryLimit": 4194304, "memoryLimit": 4194304,
"stackLimit": 0, "stackLimit": 0,
"procLimit": 50, "procLimit": 50,
@ -233,14 +234,11 @@
{ {
"name": "result-detail", "name": "result-detail",
"with": { "with": {
"score": 0, "time": false,
"comment": "", "mem": false,
"showFiles": [ "stdout": false,
"stderr" "stderr": true,
], "exitstatus": true
"showExitStatus": true,
"showRuntime": false,
"showMemory": false
} }
}, },
{ {
@ -290,7 +288,7 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stdout", "name": "stdout",
"max": 4000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
@ -301,7 +299,7 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stderr", "name": "stderr",
"max": 4000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
@ -373,14 +371,11 @@
{ {
"name": "result-detail", "name": "result-detail",
"with": { "with": {
"score": 0, "time": false,
"comment": "", "mem": false,
"showFiles": [ "stdout": false,
"stderr" "stderr": true,
], "exitstatus": false
"showExitStatus": false,
"showRuntime": false,
"showMemory": false
} }
} }
] ]
@ -419,7 +414,7 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stdout", "name": "stdout",
"max": 65000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
@ -430,7 +425,7 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stderr", "name": "stderr",
"max": 4000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
@ -560,14 +555,11 @@
{ {
"name": "result-detail", "name": "result-detail",
"with": { "with": {
"score": 0, "time": false,
"comment": "", "mem": false,
"showFiles": [ "stdout": true,
"stdout" "stderr": false,
], "exitstatus": true
"showExitStatus": true,
"showRuntime": false,
"showMemory": false
} }
} }
] ]
@ -610,7 +602,7 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stdout", "name": "stdout",
"max": 4000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
@ -621,7 +613,7 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stderr", "name": "stderr",
"max": 65000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
@ -697,14 +689,11 @@
{ {
"name": "result-detail", "name": "result-detail",
"with": { "with": {
"score": 0, "time": false,
"comment": "", "mem": false,
"showFiles": [ "stdout": false,
"stderr" "stderr": true,
], "exitstatus": true
"showExitStatus": true,
"showRuntime": false,
"showMemory": false
} }
} }
] ]
@ -743,7 +732,7 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stdout", "name": "stdout",
"max": 65000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
@ -754,7 +743,7 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stderr", "name": "stderr",
"max": 4000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
@ -786,9 +775,7 @@
"parsers": [ "parsers": [
{ {
"name": "cpplint", "name": "cpplint",
"with": { "with": {}
"comment": ""
}
}, },
{ {
"name": "dummy", "name": "dummy",
@ -799,14 +786,11 @@
{ {
"name": "result-detail", "name": "result-detail",
"with": { "with": {
"score": 0, "time": false,
"comment": "", "mem": false,
"showFiles": [ "stdout": true,
"stdout" "stderr": false,
], "exitstatus": true
"showExitStatus": true,
"showRuntime": false,
"showMemory": false
} }
} }
] ]
@ -841,7 +825,7 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stdout", "name": "stdout",
"max": 4000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
@ -852,16 +836,16 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stderr", "name": "stderr",
"max": 4000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
"pipe": false "pipe": false
}, },
"cpuLimit": 3000000000, "cpuLimit": 4000000000,
"realCpuLimit": 0, "realCpuLimit": 0,
"clockLimit": 6000000000, "clockLimit": 8000000000,
"memoryLimit": 78643200, "memoryLimit": 4194304,
"stackLimit": 0, "stackLimit": 0,
"procLimit": 50, "procLimit": 50,
"cpuRateLimit": 0, "cpuRateLimit": 0,
@ -878,168 +862,13 @@
"dataSegmentLimit": false, "dataSegmentLimit": false,
"addressSpaceLimit": false "addressSpaceLimit": false
}, },
"cases": [ "cases": []
{
"args": null,
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"src": "/home/tt/.config/joj/judge-base/case4.in",
"content": null,
"fileId": null,
"name": null,
"max": 4194304,
"symlink": null,
"streamIn": false,
"streamOut": false,
"pipe": false
},
"stdout": null,
"stderr": null,
"cpuLimit": 30000000000,
"realCpuLimit": null,
"clockLimit": 60000000000,
"memoryLimit": 10485760,
"stackLimit": null,
"procLimit": 50,
"cpuRateLimit": null,
"cpuSetLimit": null,
"copyIn": null,
"copyInCached": null,
"copyInDir": null,
"copyOut": null,
"copyOutCached": null,
"copyOutMax": null,
"copyOutDir": null,
"tty": null,
"strictMemoryLimit": null,
"dataSegmentLimit": null,
"addressSpaceLimit": null
},
{
"args": null,
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"src": "/home/tt/.config/joj/judge-base/case5.in",
"content": null,
"fileId": null,
"name": null,
"max": 4194304,
"symlink": null,
"streamIn": false,
"streamOut": false,
"pipe": false
},
"stdout": null,
"stderr": null,
"cpuLimit": 4000000000,
"realCpuLimit": null,
"clockLimit": 8000000000,
"memoryLimit": 4194304,
"stackLimit": null,
"procLimit": 50,
"cpuRateLimit": null,
"cpuSetLimit": null,
"copyIn": null,
"copyInCached": null,
"copyInDir": null,
"copyOut": null,
"copyOutCached": null,
"copyOutMax": null,
"copyOutDir": null,
"tty": null,
"strictMemoryLimit": null,
"dataSegmentLimit": null,
"addressSpaceLimit": null
},
{
"args": null,
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"src": "/home/tt/.config/joj/judge-base/case8.in",
"content": null,
"fileId": null,
"name": null,
"max": 4194304,
"symlink": null,
"streamIn": false,
"streamOut": false,
"pipe": false
},
"stdout": null,
"stderr": null,
"cpuLimit": 4000000000,
"realCpuLimit": null,
"clockLimit": 8000000000,
"memoryLimit": 4194304,
"stackLimit": null,
"procLimit": 50,
"cpuRateLimit": null,
"cpuSetLimit": null,
"copyIn": null,
"copyInCached": null,
"copyInDir": null,
"copyOut": null,
"copyOutCached": null,
"copyOutMax": null,
"copyOutDir": null,
"tty": null,
"strictMemoryLimit": null,
"dataSegmentLimit": null,
"addressSpaceLimit": null
}
]
} }
}, },
"parsers": [ "parsers": [
{ {
"name": "diff", "name": "diff",
"with": { "with": {}
"name": "diff",
"cases": [
{
"outputs": [
{
"score": 0,
"fileName": "stdout",
"answerPath": "/home/tt/.config/joj/judge-base/case4.out",
"forceQuitOnDiff": true,
"alwaysHide": false,
"compareSpace": true
}
]
},
{
"outputs": [
{
"score": 0,
"fileName": "stdout",
"answerPath": "/home/tt/.config/joj/judge-base/case5.out",
"forceQuitOnDiff": true,
"alwaysHide": false,
"compareSpace": true
}
]
},
{
"outputs": [
{
"score": 0,
"fileName": "stdout",
"answerPath": "/home/tt/.config/joj/judge-base/case8.out",
"forceQuitOnDiff": true,
"alwaysHide": false,
"compareSpace": true
}
]
}
]
}
}, },
{ {
"name": "dummy", "name": "dummy",
@ -1050,14 +879,11 @@
{ {
"name": "result-detail", "name": "result-detail",
"with": { "with": {
"score": 0, "time": true,
"comment": "", "mem": true,
"showFiles": [ "stdout": false,
"stderr" "stderr": true,
], "exitstatus": true
"showExitStatus": true,
"showRuntime": true,
"showMemory": true
} }
} }
] ]
@ -1092,7 +918,7 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stdout", "name": "stdout",
"max": 4000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
@ -1103,16 +929,16 @@
"content": null, "content": null,
"fileId": null, "fileId": null,
"name": "stderr", "name": "stderr",
"max": 4000000000, "max": 4096,
"symlink": null, "symlink": null,
"streamIn": false, "streamIn": false,
"streamOut": false, "streamOut": false,
"pipe": false "pipe": false
}, },
"cpuLimit": 10000000000, "cpuLimit": 4000000000,
"realCpuLimit": 0, "realCpuLimit": 0,
"clockLimit": 20000000000, "clockLimit": 8000000000,
"memoryLimit": 524288000, "memoryLimit": 4194304,
"stackLimit": 0, "stackLimit": 0,
"procLimit": 50, "procLimit": 50,
"cpuRateLimit": 0, "cpuRateLimit": 0,
@ -1129,168 +955,13 @@
"dataSegmentLimit": false, "dataSegmentLimit": false,
"addressSpaceLimit": false "addressSpaceLimit": false
}, },
"cases": [ "cases": []
{
"args": null,
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"src": "/home/tt/.config/joj/judge-msan/case4.in",
"content": null,
"fileId": null,
"name": null,
"max": 4194304,
"symlink": null,
"streamIn": false,
"streamOut": false,
"pipe": false
},
"stdout": null,
"stderr": null,
"cpuLimit": 30000000000,
"realCpuLimit": null,
"clockLimit": 60000000000,
"memoryLimit": 10485760,
"stackLimit": null,
"procLimit": 50,
"cpuRateLimit": null,
"cpuSetLimit": null,
"copyIn": null,
"copyInCached": null,
"copyInDir": null,
"copyOut": null,
"copyOutCached": null,
"copyOutMax": null,
"copyOutDir": null,
"tty": null,
"strictMemoryLimit": null,
"dataSegmentLimit": null,
"addressSpaceLimit": null
},
{
"args": null,
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"src": "/home/tt/.config/joj/judge-msan/case5.in",
"content": null,
"fileId": null,
"name": null,
"max": 4194304,
"symlink": null,
"streamIn": false,
"streamOut": false,
"pipe": false
},
"stdout": null,
"stderr": null,
"cpuLimit": 4000000000,
"realCpuLimit": null,
"clockLimit": 8000000000,
"memoryLimit": 4194304,
"stackLimit": null,
"procLimit": 50,
"cpuRateLimit": null,
"cpuSetLimit": null,
"copyIn": null,
"copyInCached": null,
"copyInDir": null,
"copyOut": null,
"copyOutCached": null,
"copyOutMax": null,
"copyOutDir": null,
"tty": null,
"strictMemoryLimit": null,
"dataSegmentLimit": null,
"addressSpaceLimit": null
},
{
"args": null,
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"src": "/home/tt/.config/joj/judge-msan/case6.in",
"content": null,
"fileId": null,
"name": null,
"max": 4194304,
"symlink": null,
"streamIn": false,
"streamOut": false,
"pipe": false
},
"stdout": null,
"stderr": null,
"cpuLimit": 4000000000,
"realCpuLimit": null,
"clockLimit": 8000000000,
"memoryLimit": 4194304,
"stackLimit": null,
"procLimit": 50,
"cpuRateLimit": null,
"cpuSetLimit": null,
"copyIn": null,
"copyInCached": null,
"copyInDir": null,
"copyOut": null,
"copyOutCached": null,
"copyOutMax": null,
"copyOutDir": null,
"tty": null,
"strictMemoryLimit": null,
"dataSegmentLimit": null,
"addressSpaceLimit": null
}
]
} }
}, },
"parsers": [ "parsers": [
{ {
"name": "diff", "name": "diff",
"with": { "with": {}
"name": "diff",
"cases": [
{
"outputs": [
{
"score": 0,
"fileName": "stdout",
"answerPath": "/home/tt/.config/joj/judge-msan/case4.out",
"forceQuitOnDiff": true,
"alwaysHide": false,
"compareSpace": true
}
]
},
{
"outputs": [
{
"score": 0,
"fileName": "stdout",
"answerPath": "/home/tt/.config/joj/judge-msan/case5.out",
"forceQuitOnDiff": true,
"alwaysHide": false,
"compareSpace": true
}
]
},
{
"outputs": [
{
"score": 0,
"fileName": "stdout",
"answerPath": "/home/tt/.config/joj/judge-msan/case6.out",
"forceQuitOnDiff": true,
"alwaysHide": true,
"compareSpace": true
}
]
}
]
}
}, },
{ {
"name": "dummy", "name": "dummy",
@ -1301,14 +972,11 @@
{ {
"name": "result-detail", "name": "result-detail",
"with": { "with": {
"score": 0, "time": true,
"comment": "", "mem": true,
"showFiles": [ "stdout": false,
"stderr" "stderr": true,
], "exitstatus": true
"showExitStatus": true,
"showRuntime": true,
"showMemory": true
} }
} }
] ]
@ -1316,10 +984,10 @@
] ]
}, },
"teapot": { "teapot": {
"logPath": "h4-ex1-joint-teapot-debug.log", "logPath": "Homework-1-exercise-2-joint-teapot-debug.log",
"scoreboardPath": "h4-ex1-scoreboard.csv", "scoreboardPath": "Homework-1-exercise-2-scoreboard.csv",
"failedTablePath": "h4-ex1-failed-table.md", "failedTablePath": "Homework-1-exercise-2-failed-table.md",
"gradingRepoName": "Nuvole-joj", "gradingRepoName": "engr151-joj",
"skipIssue": false, "skipIssue": false,
"skipScoreboard": false, "skipScoreboard": false,
"skipFailedTable": false "skipFailedTable": false