Skip to content

[其他] 源码自动更新直接修改当前运行目录,缺少 staging、启动验证与自动回滚 #2629

Description

@kawayiYokami

问题类型

Bug

问题范围

其他

代码版本

当前 main 代码审查;现场启动器为 v2.4.6。

问题描述

GitService.fetch_latest_code() 在当前工作目录 fetch、checkout、同步源码。新代码、依赖、文件占用或进程中断任一失败边界,都可能让最后可运行版本不再完整;当前没有版本化 staging、健康检查和切换失败回滚。

期望行为

将更新下载到独立版本目录,完成代码与运行时校验并启动验证后再原子切换;新版本不能启动时自动回到最后验证可运行版本。

相关代码

src/one_dragon/envs/git_service.py:fetch_latest_code()_fetch_and_checkout_latest_branch()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions