Skip to content

feat: update app upgrade logic#13032

Merged
wanghe-fit2cloud merged 1 commit into
dev-v2from
pr@dev-v2@common
Jun 12, 2026
Merged

feat: update app upgrade logic#13032
wanghe-fit2cloud merged 1 commit into
dev-v2from
pr@dev-v2@common

Conversation

@zhengkunwang223

Copy link
Copy Markdown
Member

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f5e5674c91

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

install.Version = detail.Version
install.AppDetailId = req.DetailID

if req.PullImage {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pull images before mutating app files

When req.PullImage is true and the registry pull fails here, this block now runs after copyAppDetailMissing and the scripts/build replacements above, but before compose.Down. If the user upgraded without a backup, rollBackApp is a no-op, so the task is marked failed while the install directory has already been partially advanced to the target version, leaving the still-running old app with new support files/scripts and making a retry or rollback depend on manual cleanup. Keep the pull after computing the new compose, but before any filesystem mutations.

Useful? React with 👍 / 👎.

@wanghe-fit2cloud wanghe-fit2cloud merged commit a49b9b1 into dev-v2 Jun 12, 2026
4 checks passed
@wanghe-fit2cloud wanghe-fit2cloud deleted the pr@dev-v2@common branch June 12, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants