fix: pass pytest
This commit is contained in:
		
							parent
							
								
									adfdc027f2
								
							
						
					
					
						commit
						1f0ee639dd
					
				|  | @ -41,7 +41,7 @@ def convert_joj1(yaml_file: typer.FileText, toml_file: typer.FileTextWrite) -> N | ||||||
|     joj1_obj = yaml.safe_load(yaml_file.read()) |     joj1_obj = yaml.safe_load(yaml_file.read()) | ||||||
|     joj1_model = joj1.Config(**joj1_obj) |     joj1_model = joj1.Config(**joj1_obj) | ||||||
|     task_model = convert_joj1_conf(joj1_model) |     task_model = convert_joj1_conf(joj1_model) | ||||||
|     result_dict = task_model.model_dump(by_alias=True) |     result_dict = task_model.model_dump(by_alias=True, exclude_none=True) | ||||||
|     toml_file.write(rtoml.dumps(result_dict)) |     toml_file.write(rtoml.dumps(result_dict)) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -108,8 +108,8 @@ class Task(BaseModel): | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class Config(BaseModel): | class Config(BaseModel): | ||||||
|     root: Path = Path(".") |     root: Optional[Path] = None | ||||||
|     path: Path = Path("task.toml") |     path: Optional[Path] = None | ||||||
|     task: Task  # Task name (e.g., hw3 ex5) |     task: Task  # Task name (e.g., hw3 ex5) | ||||||
|     release: Release  # Release configuration |     release: Release  # Release configuration | ||||||
|     stages: List[Stage]  # list of stage configurations |     stages: List[Stage]  # list of stage configurations | ||||||
|  |  | ||||||
|  | @ -122,7 +122,7 @@ def calc_sha256sum(file_path: Path) -> str: | ||||||
| def get_hash( | def get_hash( | ||||||
|     immutable_files: list[str], repo_conf: repo.Config |     immutable_files: list[str], repo_conf: repo.Config | ||||||
| ) -> str:  # input should be a list | ) -> str:  # input should be a list | ||||||
|     repo_path = repo_conf.path.parent |     repo_path = (repo_conf.root / repo_conf.path).parent | ||||||
|     file_path = Path(f"{repo_path}/immutable_files") |     file_path = Path(f"{repo_path}/immutable_files") | ||||||
|     immutable_hash = [] |     immutable_hash = [] | ||||||
|     immutable_files_ = [] |     immutable_files_ = [] | ||||||
|  |  | ||||||
|  | @ -10,111 +10,6 @@ | ||||||
|         "sandboxToken": "", |         "sandboxToken": "", | ||||||
|         "outputPath": "/tmp/joj3_result.json", |         "outputPath": "/tmp/joj3_result.json", | ||||||
|         "stages": [ |         "stages": [ | ||||||
|             { |  | ||||||
|                 "name": "healthcheck", |  | ||||||
|                 "group": "", |  | ||||||
|                 "executor": { |  | ||||||
|                     "name": "local", |  | ||||||
|                     "with": { |  | ||||||
|                         "default": { |  | ||||||
|                             "env": [ |  | ||||||
|                                 "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                             ], |  | ||||||
|                             "stdin": { |  | ||||||
|                                 "content": "", |  | ||||||
|                                 "max": 419430400 |  | ||||||
|                             }, |  | ||||||
|                             "stdout": { |  | ||||||
|                                 "name": "stdout", |  | ||||||
|                                 "max": 4096 |  | ||||||
|                             }, |  | ||||||
|                             "stderr": { |  | ||||||
|                                 "name": "stderr", |  | ||||||
|                                 "max": 4096 |  | ||||||
|                             }, |  | ||||||
|                             "cpuLimit": 4000000000000, |  | ||||||
|                             "realCpuLimit": 0, |  | ||||||
|                             "clockLimit": 8000000000000, |  | ||||||
|                             "memoryLimit": 838860800, |  | ||||||
|                             "stackLimit": 0, |  | ||||||
|                             "procLimit": 50, |  | ||||||
|                             "cpuRateLimit": 0, |  | ||||||
|                             "cpuSetLimit": "", |  | ||||||
|                             "copyIn": {}, |  | ||||||
|                             "copyInCached": {}, |  | ||||||
|                             "copyInDir": ".", |  | ||||||
|                             "copyOut": [ |  | ||||||
|                                 "stdout", |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutCached": [], |  | ||||||
|                             "copyOutMax": 0, |  | ||||||
|                             "copyOutDir": "", |  | ||||||
|                             "tty": false, |  | ||||||
|                             "strictMemoryLimit": false, |  | ||||||
|                             "dataSegmentLimit": false, |  | ||||||
|                             "addressSpaceLimit": false |  | ||||||
|                         }, |  | ||||||
|                         "cases": [ |  | ||||||
|                             { |  | ||||||
|                                 "args": [ |  | ||||||
|                                     "/usr/local/bin/repo-health-checker", |  | ||||||
|                                     "-root=.", |  | ||||||
|                                     "-repoSize=10", |  | ||||||
|                                     "-checkFileSumList=-checkFileNameList=" |  | ||||||
|                                 ], |  | ||||||
|                                 "env": [ |  | ||||||
|                                     "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                                 ], |  | ||||||
|                                 "cpuLimit": 4000000000000, |  | ||||||
|                                 "clockLimit": 8000000000000, |  | ||||||
|                                 "memoryLimit": 838860800, |  | ||||||
|                                 "procLimit": 50, |  | ||||||
|                                 "copyOut": [ |  | ||||||
|                                     "stdout", |  | ||||||
|                                     "stderr" |  | ||||||
|                                 ] |  | ||||||
|                             }, |  | ||||||
|                             { |  | ||||||
|                                 "args": [ |  | ||||||
|                                     "/usr/local/bin/joint-teapot", |  | ||||||
|                                     "joj3-check-env", |  | ||||||
|                                     "/home/tt/.config/teapot/teapot.env", |  | ||||||
|                                     "--grading-repo-name", |  | ||||||
|                                     "ece280-joj", |  | ||||||
|                                     "--group-config", |  | ||||||
|                                     "=100:24" |  | ||||||
|                                 ], |  | ||||||
|                                 "env": [ |  | ||||||
|                                     "LOG_FILE_PATH=/home/tt/.cache/joint-teapot-debug.log" |  | ||||||
|                                 ], |  | ||||||
|                                 "cpuLimit": 4000000000000, |  | ||||||
|                                 "clockLimit": 8000000000000, |  | ||||||
|                                 "memoryLimit": 838860800, |  | ||||||
|                                 "procLimit": 50, |  | ||||||
|                                 "copyOut": [ |  | ||||||
|                                     "stdout", |  | ||||||
|                                     "stderr" |  | ||||||
|                                 ] |  | ||||||
|                             } |  | ||||||
|                         ] |  | ||||||
|                     } |  | ||||||
|                 }, |  | ||||||
|                 "parsers": [ |  | ||||||
|                     { |  | ||||||
|                         "name": "healthcheck", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 1 |  | ||||||
|                         } |  | ||||||
|                     }, |  | ||||||
|                     { |  | ||||||
|                         "name": "debug", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0 |  | ||||||
|                         } |  | ||||||
|                     } |  | ||||||
|                 ] |  | ||||||
|             }, |  | ||||||
|             { |             { | ||||||
|                 "name": "[cq] Clang-tidy", |                 "name": "[cq] Clang-tidy", | ||||||
|                 "group": "cq", |                 "group": "cq", | ||||||
|  |  | ||||||
|  | @ -10,111 +10,6 @@ | ||||||
|         "sandboxToken": "", |         "sandboxToken": "", | ||||||
|         "outputPath": "/tmp/joj3_result.json", |         "outputPath": "/tmp/joj3_result.json", | ||||||
|         "stages": [ |         "stages": [ | ||||||
|             { |  | ||||||
|                 "name": "healthcheck", |  | ||||||
|                 "group": "", |  | ||||||
|                 "executor": { |  | ||||||
|                     "name": "local", |  | ||||||
|                     "with": { |  | ||||||
|                         "default": { |  | ||||||
|                             "env": [ |  | ||||||
|                                 "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                             ], |  | ||||||
|                             "stdin": { |  | ||||||
|                                 "content": "", |  | ||||||
|                                 "max": 419430400 |  | ||||||
|                             }, |  | ||||||
|                             "stdout": { |  | ||||||
|                                 "name": "stdout", |  | ||||||
|                                 "max": 4096 |  | ||||||
|                             }, |  | ||||||
|                             "stderr": { |  | ||||||
|                                 "name": "stderr", |  | ||||||
|                                 "max": 4096 |  | ||||||
|                             }, |  | ||||||
|                             "cpuLimit": 4000000000000, |  | ||||||
|                             "realCpuLimit": 0, |  | ||||||
|                             "clockLimit": 8000000000000, |  | ||||||
|                             "memoryLimit": 838860800, |  | ||||||
|                             "stackLimit": 0, |  | ||||||
|                             "procLimit": 50, |  | ||||||
|                             "cpuRateLimit": 0, |  | ||||||
|                             "cpuSetLimit": "", |  | ||||||
|                             "copyIn": {}, |  | ||||||
|                             "copyInCached": {}, |  | ||||||
|                             "copyInDir": ".", |  | ||||||
|                             "copyOut": [ |  | ||||||
|                                 "stdout", |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutCached": [], |  | ||||||
|                             "copyOutMax": 0, |  | ||||||
|                             "copyOutDir": "", |  | ||||||
|                             "tty": false, |  | ||||||
|                             "strictMemoryLimit": false, |  | ||||||
|                             "dataSegmentLimit": false, |  | ||||||
|                             "addressSpaceLimit": false |  | ||||||
|                         }, |  | ||||||
|                         "cases": [ |  | ||||||
|                             { |  | ||||||
|                                 "args": [ |  | ||||||
|                                     "/usr/local/bin/repo-health-checker", |  | ||||||
|                                     "-root=.", |  | ||||||
|                                     "-repoSize=10", |  | ||||||
|                                     "-checkFileSumList=-checkFileNameList=" |  | ||||||
|                                 ], |  | ||||||
|                                 "env": [ |  | ||||||
|                                     "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                                 ], |  | ||||||
|                                 "cpuLimit": 4000000000000, |  | ||||||
|                                 "clockLimit": 8000000000000, |  | ||||||
|                                 "memoryLimit": 838860800, |  | ||||||
|                                 "procLimit": 50, |  | ||||||
|                                 "copyOut": [ |  | ||||||
|                                     "stdout", |  | ||||||
|                                     "stderr" |  | ||||||
|                                 ] |  | ||||||
|                             }, |  | ||||||
|                             { |  | ||||||
|                                 "args": [ |  | ||||||
|                                     "/usr/local/bin/joint-teapot", |  | ||||||
|                                     "joj3-check-env", |  | ||||||
|                                     "/home/tt/.config/teapot/teapot.env", |  | ||||||
|                                     "--grading-repo-name", |  | ||||||
|                                     "ece280-joj", |  | ||||||
|                                     "--group-config", |  | ||||||
|                                     "=100:24" |  | ||||||
|                                 ], |  | ||||||
|                                 "env": [ |  | ||||||
|                                     "LOG_FILE_PATH=/home/tt/.cache/joint-teapot-debug.log" |  | ||||||
|                                 ], |  | ||||||
|                                 "cpuLimit": 4000000000000, |  | ||||||
|                                 "clockLimit": 8000000000000, |  | ||||||
|                                 "memoryLimit": 838860800, |  | ||||||
|                                 "procLimit": 50, |  | ||||||
|                                 "copyOut": [ |  | ||||||
|                                     "stdout", |  | ||||||
|                                     "stderr" |  | ||||||
|                                 ] |  | ||||||
|                             } |  | ||||||
|                         ] |  | ||||||
|                     } |  | ||||||
|                 }, |  | ||||||
|                 "parsers": [ |  | ||||||
|                     { |  | ||||||
|                         "name": "healthcheck", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 1 |  | ||||||
|                         } |  | ||||||
|                     }, |  | ||||||
|                     { |  | ||||||
|                         "name": "debug", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0 |  | ||||||
|                         } |  | ||||||
|                     } |  | ||||||
|                 ] |  | ||||||
|             }, |  | ||||||
|             { |             { | ||||||
|                 "name": "[cq] Cppcheck", |                 "name": "[cq] Cppcheck", | ||||||
|                 "group": "cq", |                 "group": "cq", | ||||||
|  |  | ||||||
|  | @ -10,111 +10,6 @@ | ||||||
|         "sandboxToken": "", |         "sandboxToken": "", | ||||||
|         "outputPath": "/tmp/joj3_result.json", |         "outputPath": "/tmp/joj3_result.json", | ||||||
|         "stages": [ |         "stages": [ | ||||||
|             { |  | ||||||
|                 "name": "healthcheck", |  | ||||||
|                 "group": "", |  | ||||||
|                 "executor": { |  | ||||||
|                     "name": "local", |  | ||||||
|                     "with": { |  | ||||||
|                         "default": { |  | ||||||
|                             "env": [ |  | ||||||
|                                 "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                             ], |  | ||||||
|                             "stdin": { |  | ||||||
|                                 "content": "", |  | ||||||
|                                 "max": 419430400 |  | ||||||
|                             }, |  | ||||||
|                             "stdout": { |  | ||||||
|                                 "name": "stdout", |  | ||||||
|                                 "max": 4096 |  | ||||||
|                             }, |  | ||||||
|                             "stderr": { |  | ||||||
|                                 "name": "stderr", |  | ||||||
|                                 "max": 4096 |  | ||||||
|                             }, |  | ||||||
|                             "cpuLimit": 4000000000000, |  | ||||||
|                             "realCpuLimit": 0, |  | ||||||
|                             "clockLimit": 8000000000000, |  | ||||||
|                             "memoryLimit": 838860800, |  | ||||||
|                             "stackLimit": 0, |  | ||||||
|                             "procLimit": 50, |  | ||||||
|                             "cpuRateLimit": 0, |  | ||||||
|                             "cpuSetLimit": "", |  | ||||||
|                             "copyIn": {}, |  | ||||||
|                             "copyInCached": {}, |  | ||||||
|                             "copyInDir": ".", |  | ||||||
|                             "copyOut": [ |  | ||||||
|                                 "stdout", |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutCached": [], |  | ||||||
|                             "copyOutMax": 0, |  | ||||||
|                             "copyOutDir": "", |  | ||||||
|                             "tty": false, |  | ||||||
|                             "strictMemoryLimit": false, |  | ||||||
|                             "dataSegmentLimit": false, |  | ||||||
|                             "addressSpaceLimit": false |  | ||||||
|                         }, |  | ||||||
|                         "cases": [ |  | ||||||
|                             { |  | ||||||
|                                 "args": [ |  | ||||||
|                                     "/usr/local/bin/repo-health-checker", |  | ||||||
|                                     "-root=.", |  | ||||||
|                                     "-repoSize=10", |  | ||||||
|                                     "-checkFileSumList=-checkFileNameList=" |  | ||||||
|                                 ], |  | ||||||
|                                 "env": [ |  | ||||||
|                                     "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                                 ], |  | ||||||
|                                 "cpuLimit": 4000000000000, |  | ||||||
|                                 "clockLimit": 8000000000000, |  | ||||||
|                                 "memoryLimit": 838860800, |  | ||||||
|                                 "procLimit": 50, |  | ||||||
|                                 "copyOut": [ |  | ||||||
|                                     "stdout", |  | ||||||
|                                     "stderr" |  | ||||||
|                                 ] |  | ||||||
|                             }, |  | ||||||
|                             { |  | ||||||
|                                 "args": [ |  | ||||||
|                                     "/usr/local/bin/joint-teapot", |  | ||||||
|                                     "joj3-check-env", |  | ||||||
|                                     "/home/tt/.config/teapot/teapot.env", |  | ||||||
|                                     "--grading-repo-name", |  | ||||||
|                                     "ece280-joj", |  | ||||||
|                                     "--group-config", |  | ||||||
|                                     "=100:24" |  | ||||||
|                                 ], |  | ||||||
|                                 "env": [ |  | ||||||
|                                     "LOG_FILE_PATH=/home/tt/.cache/joint-teapot-debug.log" |  | ||||||
|                                 ], |  | ||||||
|                                 "cpuLimit": 4000000000000, |  | ||||||
|                                 "clockLimit": 8000000000000, |  | ||||||
|                                 "memoryLimit": 838860800, |  | ||||||
|                                 "procLimit": 50, |  | ||||||
|                                 "copyOut": [ |  | ||||||
|                                     "stdout", |  | ||||||
|                                     "stderr" |  | ||||||
|                                 ] |  | ||||||
|                             } |  | ||||||
|                         ] |  | ||||||
|                     } |  | ||||||
|                 }, |  | ||||||
|                 "parsers": [ |  | ||||||
|                     { |  | ||||||
|                         "name": "healthcheck", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 1 |  | ||||||
|                         } |  | ||||||
|                     }, |  | ||||||
|                     { |  | ||||||
|                         "name": "debug", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0 |  | ||||||
|                         } |  | ||||||
|                     } |  | ||||||
|                 ] |  | ||||||
|             }, |  | ||||||
|             { |             { | ||||||
|                 "name": "[cq] Cpplint", |                 "name": "[cq] Cpplint", | ||||||
|                 "group": "cq", |                 "group": "cq", | ||||||
|  |  | ||||||
|  | @ -10,111 +10,6 @@ | ||||||
|         "sandboxToken": "", |         "sandboxToken": "", | ||||||
|         "outputPath": "/tmp/joj3_result.json", |         "outputPath": "/tmp/joj3_result.json", | ||||||
|         "stages": [ |         "stages": [ | ||||||
|             { |  | ||||||
|                 "name": "healthcheck", |  | ||||||
|                 "group": "", |  | ||||||
|                 "executor": { |  | ||||||
|                     "name": "local", |  | ||||||
|                     "with": { |  | ||||||
|                         "default": { |  | ||||||
|                             "env": [ |  | ||||||
|                                 "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                             ], |  | ||||||
|                             "stdin": { |  | ||||||
|                                 "content": "", |  | ||||||
|                                 "max": 419430400 |  | ||||||
|                             }, |  | ||||||
|                             "stdout": { |  | ||||||
|                                 "name": "stdout", |  | ||||||
|                                 "max": 4096 |  | ||||||
|                             }, |  | ||||||
|                             "stderr": { |  | ||||||
|                                 "name": "stderr", |  | ||||||
|                                 "max": 4096 |  | ||||||
|                             }, |  | ||||||
|                             "cpuLimit": 4000000000000, |  | ||||||
|                             "realCpuLimit": 0, |  | ||||||
|                             "clockLimit": 8000000000000, |  | ||||||
|                             "memoryLimit": 838860800, |  | ||||||
|                             "stackLimit": 0, |  | ||||||
|                             "procLimit": 50, |  | ||||||
|                             "cpuRateLimit": 0, |  | ||||||
|                             "cpuSetLimit": "", |  | ||||||
|                             "copyIn": {}, |  | ||||||
|                             "copyInCached": {}, |  | ||||||
|                             "copyInDir": ".", |  | ||||||
|                             "copyOut": [ |  | ||||||
|                                 "stdout", |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutCached": [], |  | ||||||
|                             "copyOutMax": 0, |  | ||||||
|                             "copyOutDir": "", |  | ||||||
|                             "tty": false, |  | ||||||
|                             "strictMemoryLimit": false, |  | ||||||
|                             "dataSegmentLimit": false, |  | ||||||
|                             "addressSpaceLimit": false |  | ||||||
|                         }, |  | ||||||
|                         "cases": [ |  | ||||||
|                             { |  | ||||||
|                                 "args": [ |  | ||||||
|                                     "/usr/local/bin/repo-health-checker", |  | ||||||
|                                     "-root=.", |  | ||||||
|                                     "-repoSize=10", |  | ||||||
|                                     "-checkFileSumList=-checkFileNameList=" |  | ||||||
|                                 ], |  | ||||||
|                                 "env": [ |  | ||||||
|                                     "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                                 ], |  | ||||||
|                                 "cpuLimit": 4000000000000, |  | ||||||
|                                 "clockLimit": 8000000000000, |  | ||||||
|                                 "memoryLimit": 838860800, |  | ||||||
|                                 "procLimit": 50, |  | ||||||
|                                 "copyOut": [ |  | ||||||
|                                     "stdout", |  | ||||||
|                                     "stderr" |  | ||||||
|                                 ] |  | ||||||
|                             }, |  | ||||||
|                             { |  | ||||||
|                                 "args": [ |  | ||||||
|                                     "/usr/local/bin/joint-teapot", |  | ||||||
|                                     "joj3-check-env", |  | ||||||
|                                     "/home/tt/.config/teapot/teapot.env", |  | ||||||
|                                     "--grading-repo-name", |  | ||||||
|                                     "ece280-joj", |  | ||||||
|                                     "--group-config", |  | ||||||
|                                     "=100:24" |  | ||||||
|                                 ], |  | ||||||
|                                 "env": [ |  | ||||||
|                                     "LOG_FILE_PATH=/home/tt/.cache/joint-teapot-debug.log" |  | ||||||
|                                 ], |  | ||||||
|                                 "cpuLimit": 4000000000000, |  | ||||||
|                                 "clockLimit": 8000000000000, |  | ||||||
|                                 "memoryLimit": 838860800, |  | ||||||
|                                 "procLimit": 50, |  | ||||||
|                                 "copyOut": [ |  | ||||||
|                                     "stdout", |  | ||||||
|                                     "stderr" |  | ||||||
|                                 ] |  | ||||||
|                             } |  | ||||||
|                         ] |  | ||||||
|                     } |  | ||||||
|                 }, |  | ||||||
|                 "parsers": [ |  | ||||||
|                     { |  | ||||||
|                         "name": "healthcheck", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 1 |  | ||||||
|                         } |  | ||||||
|                     }, |  | ||||||
|                     { |  | ||||||
|                         "name": "debug", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0 |  | ||||||
|                         } |  | ||||||
|                     } |  | ||||||
|                 ] |  | ||||||
|             }, |  | ||||||
|             { |             { | ||||||
|                 "name": "[joj] ex2-asan", |                 "name": "[joj] ex2-asan", | ||||||
|                 "group": "joj", |                 "group": "joj", | ||||||
|  |  | ||||||
|  | @ -10,111 +10,6 @@ | ||||||
|         "sandboxToken": "", |         "sandboxToken": "", | ||||||
|         "outputPath": "/tmp/joj3_result.json", |         "outputPath": "/tmp/joj3_result.json", | ||||||
|         "stages": [ |         "stages": [ | ||||||
|             { |  | ||||||
|                 "name": "healthcheck", |  | ||||||
|                 "group": "", |  | ||||||
|                 "executor": { |  | ||||||
|                     "name": "local", |  | ||||||
|                     "with": { |  | ||||||
|                         "default": { |  | ||||||
|                             "env": [ |  | ||||||
|                                 "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                             ], |  | ||||||
|                             "stdin": { |  | ||||||
|                                 "content": "", |  | ||||||
|                                 "max": 419430400 |  | ||||||
|                             }, |  | ||||||
|                             "stdout": { |  | ||||||
|                                 "name": "stdout", |  | ||||||
|                                 "max": 4096 |  | ||||||
|                             }, |  | ||||||
|                             "stderr": { |  | ||||||
|                                 "name": "stderr", |  | ||||||
|                                 "max": 4096 |  | ||||||
|                             }, |  | ||||||
|                             "cpuLimit": 4000000000000, |  | ||||||
|                             "realCpuLimit": 0, |  | ||||||
|                             "clockLimit": 8000000000000, |  | ||||||
|                             "memoryLimit": 838860800, |  | ||||||
|                             "stackLimit": 0, |  | ||||||
|                             "procLimit": 50, |  | ||||||
|                             "cpuRateLimit": 0, |  | ||||||
|                             "cpuSetLimit": "", |  | ||||||
|                             "copyIn": {}, |  | ||||||
|                             "copyInCached": {}, |  | ||||||
|                             "copyInDir": ".", |  | ||||||
|                             "copyOut": [ |  | ||||||
|                                 "stdout", |  | ||||||
|                                 "stderr" |  | ||||||
|                             ], |  | ||||||
|                             "copyOutCached": [], |  | ||||||
|                             "copyOutMax": 0, |  | ||||||
|                             "copyOutDir": "", |  | ||||||
|                             "tty": false, |  | ||||||
|                             "strictMemoryLimit": false, |  | ||||||
|                             "dataSegmentLimit": false, |  | ||||||
|                             "addressSpaceLimit": false |  | ||||||
|                         }, |  | ||||||
|                         "cases": [ |  | ||||||
|                             { |  | ||||||
|                                 "args": [ |  | ||||||
|                                     "/usr/local/bin/repo-health-checker", |  | ||||||
|                                     "-root=.", |  | ||||||
|                                     "-repoSize=10", |  | ||||||
|                                     "-checkFileSumList=-checkFileNameList=" |  | ||||||
|                                 ], |  | ||||||
|                                 "env": [ |  | ||||||
|                                     "PATH=/usr/bin:/bin:/usr/local/bin" |  | ||||||
|                                 ], |  | ||||||
|                                 "cpuLimit": 4000000000000, |  | ||||||
|                                 "clockLimit": 8000000000000, |  | ||||||
|                                 "memoryLimit": 838860800, |  | ||||||
|                                 "procLimit": 50, |  | ||||||
|                                 "copyOut": [ |  | ||||||
|                                     "stdout", |  | ||||||
|                                     "stderr" |  | ||||||
|                                 ] |  | ||||||
|                             }, |  | ||||||
|                             { |  | ||||||
|                                 "args": [ |  | ||||||
|                                     "/usr/local/bin/joint-teapot", |  | ||||||
|                                     "joj3-check-env", |  | ||||||
|                                     "/home/tt/.config/teapot/teapot.env", |  | ||||||
|                                     "--grading-repo-name", |  | ||||||
|                                     "ece280-joj", |  | ||||||
|                                     "--group-config", |  | ||||||
|                                     "=100:24" |  | ||||||
|                                 ], |  | ||||||
|                                 "env": [ |  | ||||||
|                                     "LOG_FILE_PATH=/home/tt/.cache/joint-teapot-debug.log" |  | ||||||
|                                 ], |  | ||||||
|                                 "cpuLimit": 4000000000000, |  | ||||||
|                                 "clockLimit": 8000000000000, |  | ||||||
|                                 "memoryLimit": 838860800, |  | ||||||
|                                 "procLimit": 50, |  | ||||||
|                                 "copyOut": [ |  | ||||||
|                                     "stdout", |  | ||||||
|                                     "stderr" |  | ||||||
|                                 ] |  | ||||||
|                             } |  | ||||||
|                         ] |  | ||||||
|                     } |  | ||||||
|                 }, |  | ||||||
|                 "parsers": [ |  | ||||||
|                     { |  | ||||||
|                         "name": "healthcheck", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 1 |  | ||||||
|                         } |  | ||||||
|                     }, |  | ||||||
|                     { |  | ||||||
|                         "name": "debug", |  | ||||||
|                         "with": { |  | ||||||
|                             "score": 0 |  | ||||||
|                         } |  | ||||||
|                     } |  | ||||||
|                 ] |  | ||||||
|             }, |  | ||||||
|             { |             { | ||||||
|                 "name": "[cq] Filelength", |                 "name": "[cq] Filelength", | ||||||
|                 "group": "cq", |                 "group": "cq", | ||||||
|  |  | ||||||
|  | @ -18,6 +18,6 @@ def read_convert_joj1_files(case_name: str) -> Tuple[joj1.Config, Dict[str, Any] | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def load_case(case_name: str) -> None: | def load_case(case_name: str) -> None: | ||||||
|     joj1, expected_result = read_convert_joj1_files(case_name) |     joj1_, expected_result = read_convert_joj1_files(case_name) | ||||||
|     result = convert_joj1(joj1).model_dump(by_alias=True, exclude_none=True) |     result = convert_joj1(joj1_).model_dump(by_alias=True, exclude_none=True) | ||||||
|     assert result == expected_result |     assert result == expected_result | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user