fix: preserve bound project paths through progress and health checkpoints
Core regression / Python core and release configuration (push) Successful in 33s
Core regression / JavaScript syntax (push) Successful in 3s
Core regression / Python core and release configuration (pull_request) Successful in 31s
Core regression / JavaScript syntax (pull_request) Successful in 3s
Core regression / Python core and release configuration (push) Successful in 33s
Core regression / JavaScript syntax (push) Successful in 3s
Core regression / Python core and release configuration (pull_request) Successful in 31s
Core regression / JavaScript syntax (pull_request) Successful in 3s
This commit is contained in:
1 parent
960c66b196
commit
e78cdd3c97
4 files changed
+59
-3
No files matched your search
@@ -405,8 +405,15 @@ class ExecutionJournal:
|
||||
if healths:
|
||||
from pathlib import Path
|
||||
from .project_session_health import verified_source_checkpoint, health_reference
|
||||
project = next((project.path for project in self.store.list_projects(attempt.task_id)
|
||||
if str(canonical_path(project.path)).casefold() == command['project_path']), None)
|
||||
if project is None:
|
||||
raise TaskCenterError('quick_run_uncertain', '已核验源文件检查点缺少绑定的原工程路径。')
|
||||
# Folded journal identities are comparison keys. Filesystem
|
||||
# reads must retain the bound project's actual spelling.
|
||||
source_row = dict(command, task_id=attempt.task_id, job_id=attempt.job_id, project_path=str(project))
|
||||
source_checkpoint = verified_source_checkpoint(Path(self.store.path).parent / 'task-evidence' / attempt.task_id,
|
||||
dict(command, task_id=attempt.task_id, job_id=attempt.job_id), attempt, proof,
|
||||
source_row, attempt, proof,
|
||||
[health_reference(value) for value in healths], excluded_root=healths[0]['source_excluded_root'],
|
||||
native_source=proof.get('verified_source_health'))
|
||||
if source_checkpoint:
|
||||
|
||||
@@ -1389,7 +1389,7 @@ class TaskCenterService:
|
||||
)
|
||||
if self._supervised:
|
||||
return progress # Only the batch process persists live execution state.
|
||||
by_path = {os.path.normcase(os.path.abspath(str(project.path))): project.project_id for project in projects}
|
||||
by_path = {_path_key(project.path): project.project_id for project in projects}
|
||||
project_by_id = {project.project_id: project for project in projects}
|
||||
summary_by_id = {
|
||||
by_path[_path_key(path)]: summary
|
||||
@@ -1407,7 +1407,7 @@ class TaskCenterService:
|
||||
completed_project_ids = tuple(
|
||||
by_path[path_key]
|
||||
for path in progress.completed_project_paths
|
||||
if (path_key := os.path.normcase(os.path.abspath(str(path)))) in by_path
|
||||
if (path_key := _path_key(path)) in by_path
|
||||
and by_path[path_key] not in failed_project_ids
|
||||
)
|
||||
changed_project_ids = tuple(
|
||||
|
||||
Reference in new issue
Block a user