dev #10
|  | @ -1,4 +1,5 @@ | |||
| import shlex | ||||
| 
					
					jon-lee marked this conversation as resolved
					
				 | ||||
| import re | ||||
| 
					
					jon-lee marked this conversation as resolved
					
				 
				
					
						张泊明518370910136
						commented  Some  Some `with_.update` is still using raw dict, not model with `model_dump`. | ||||
| from typing import List, Tuple | ||||
| 
 | ||||
| from joj3_config_generator.models import result, task | ||||
|  | @ -9,12 +10,10 @@ def get_conf_stage( | |||
| ) -> result.StageDetail: | ||||
|     conf_stage = result.StageDetail( | ||||
|         name=task_stage.name if task_stage.name is not None else "", | ||||
|         # TODO: we may have cq in future | ||||
|         group=( | ||||
|             "joj" | ||||
|             if (task_stage.name is not None) | ||||
|             and (("joj" in task_stage.name) or ("run" in task_stage.name)) | ||||
|             else None | ||||
|             re.search(r'\[([^\[\]]+)\]', task_stage.name).group(1) | ||||
|             if (task_stage.name is not None and re.search(r'\[([^\[\]]+)\]', task_stage.name)) | ||||
|             else "" | ||||
| 
					
					jon-lee marked this conversation as resolved
					
						
						
							Outdated
						
					
				 
				
					
						李衍志523370910113
						commented  BTW, is this outdated? BTW, is this outdated? 
				
					
						张泊明518370910136
						commented  Never heard about this rule. Never heard about this rule. 
				
					
						李衍志523370910113
						commented  @manuel what would be the current intended rule for  @manuel what would be the current intended rule for `group`? 
				
					
						李衍志523370910113
						commented  seems current strategy is fine, resolved. seems current strategy is fine, resolved. | ||||
|         ), | ||||
|         executor=result.Executor( | ||||
|             name="sandbox", | ||||
|  | @ -62,7 +61,7 @@ def get_executorWithConfig( | |||
|                     result.CmdFile(src=f"/home/tt/.config/joj/{file}") | ||||
|                     if not file.endswith("main.cpp") | ||||
|                     else result.CmdFile( | ||||
| 
					
					jon-lee marked this conversation as resolved
					
						
						
							Outdated
						
					
				 
				
					
						张泊明518370910136
						commented  not necessary not necessary 
				
					
						李衍志523370910113
						commented  resolved. resolved. | ||||
|                         src=f"/home/tt/.config/joj/tests/homework/h7/e3/ex3-main.cpp" | ||||
|                         src=f"/home/tt/.config/joj/homework/h7/e3/ex3-main.cpp" | ||||
|                     ) | ||||
|                 ) | ||||
|                 for file in copy_in_files | ||||
|  | @ -188,7 +187,6 @@ def fix_dummy( | |||
|     dummy_parser = [ | ||||
|         "dummy", | ||||
|         "result-status", | ||||
| 
					
					jon-lee marked this conversation as resolved
					
						
						
							Outdated
						
					
				 
				
					
						张泊明518370910136
						commented  Pass  Pass `JOJ3_CONFIG_ROOT / task_conf.path.parent` as `base_dir` in parameters. 
				
					
						李衍志523370910113
						commented  resolved. resolved. | ||||
|         "cpplint", | ||||
|     ] | ||||
|     if task_stage.parsers is not None: | ||||
|         for parser in task_stage.parsers: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	
Path should not be relative to
JOJ3_CONFIG_ROOTin this file, should be relative totask.tomldirI reckon you said things is relative to
JOJ3_CONFIG_ROOTin JTC before. we have atask.typeintask.tomlto mend the pathconfig.pathis relative toJOJ3_CONFIG_ROOT.could you explain further? I m not quite sure my understanding is clear.
In
joj3_config_generator/models/task.py,Config.pathis relative toJOJ3_CONFIG_ROOT, sotask.tomlwill located atJOJ3_CONFIG_ROOT / task_conf.pathin JTC.