Skip to content

Preserve installer recovery backups and own temporary downloads - #921

Closed
Gajesh2007 wants to merge 8 commits into
masterfrom
refactor/release-tooling
Closed

Gajesh2007 wants to merge 8 commits into
masterfrom
refactor/release-tooling

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Installer failure could lose the old installation: a relocated relative symlink was mistaken for a missing backup, partial app-link updates overwrote old flat binaries, and conditional invocation suppressed Bash failures from chmod/link setup. Prepare permissions, links, and preserved extra bin entries before touching live paths, then share a tracked app/bin replacement and reverse rollback. Failed restoration retains the old path in a private recovery directory and reports its location, including relative or dangling symlinks.

Downloads use a private temporary archive with exit cleanup. The coordinator embedded installer remains byte-for-byte identical. Artifact hash, signing, resource, capability and enrollment checks are unchanged. Build/test guidance and the release rollback runbook describe the resulting behavior.

Before:

flowchart LR
  D[Download into shared temporary archive] --> V[Stage and verify]
  V --> A[commit_staged_app or flat commit]
  A --> L[Replace live path then chmod and update links]
  L -->|Partial failure| F[Old bin entries overwritten or errors ignored]
  A -->|Rename failure| R[Restore only directory backup]
  R --> X[Relative symlink skipped or failed backup removed]
Loading

After:

flowchart LR
  D[Private archive with exit cleanup] --> V[Same verification]
  V --> P[Prepare permissions and links in staging]
  P --> E[preserve_extra_bin_entries]
  E --> C[commit_install_paths tracks app and bin moves]
  P -->|Failure| U[Live installation unchanged]
  E -->|Failure| U
  C -->|Success| S[New payload with unrelated bin entries preserved]
  C -->|Failure| R[Reverse completed moves via restore_install_path]
  R -->|Restored| F[Return failure with old app and bin restored]
  R -->|Restore fails| K[Retain recovery backup and print path]
Loading

Validation:

  • 11 offline Python fixture tests pass, including conditional invocation, chmod/link/copy failures, each commit rename, reverse-rollback failures, candidate removal failure, first install, symlink recovery, successful replacement, unrelated bin entries, and private download permissions/cleanup.
  • The expanded 5-method failure characterization failed in 19 subcases against the pre-fix script (including newly covered transaction seams); direct cases reproduce the symlink loss, partial-link overwrite, and ignored preparation errors.
  • Coordinator embedded installer and templating tests pass with Go race detection; shell syntax, byte parity, docs lint (278 pages), and whitespace checks pass. An independent source review found no blocker.
  • No real download, install, signing, enrollment, provider/model execution, or deployment was performed. The native signed-artifact fixture remains a separate platform check.

The full coordinator suite passes with the repository-pinned Go 1.25.0 (GOTOOLCHAIN=go1.25.0 go test ./coordinator/...). The automatic pre-push hook initially used local Go 1.27.1 and failed four JSON encoding assertions; the same failures reproduce on unchanged master and pass with the pinned toolchain. No Go source is changed by this PR.

Post-commit cleanup: once both live paths are replaced, an obsolete-backup removal failure warns with its path and retains a successful installation result. The new app and flat fixtures reproduce the old false failure and verify retained recovery content. All 11 offline tests pass (37.523s).

@vercel

vercel Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Sep 12, 2026 12:21am UTC
d-inference-console-ui-dev Ready Ready Preview Sep 12, 2026 12:21am UTC
d-inference-landing Ready Ready Preview Sep 12, 2026 12:21am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T00:24:16.253110Z 938c073 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: 101a97ad5b

ℹ️ 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".

Comment thread scripts/install.sh Resolved
Comment thread docs/developer/test.md Resolved
@Gajesh2007

Copy link
Copy Markdown
Member Author

@codex review

Comment thread scripts/test_installer_rollback.py Fixed

@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: 287b9830ec

ℹ️ 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".

Comment thread scripts/install.sh Resolved

@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: 25dece50d8

ℹ️ 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".

Comment thread scripts/install.sh Resolved
@Gajesh2007

Copy link
Copy Markdown
Member Author

Consolidated into #1096, the combined tooling, benchmark and E2E refactor PR. Your latest head 938c073d66fa3a41148c072b20bcae80e1beedc4 is preserved in aggregate 9d2160bb370e8a0dbf3810e61a5e48fe66345651, along with the relevant review fixes. Continue review and merge at #1096 (after provider #1094 and web #1095). Closing this duplicate merge path; the source branch and review history are retained.

@Gajesh2007 Gajesh2007 closed this Sep 16, 2026

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference-console-ui-dev — 938c073d Deployed Sep 12, 2026 by vercel[bot]
Preview – d-inference — 938c073d Deployed Sep 12, 2026 by vercel[bot]
Preview – d-inference-landing — 938c073d Deployed Sep 12, 2026 by vercel[bot]
benchmarks — 938c073d Deployed Sep 12, 2026 by Gajesh2007 via E2E Benchmarks #1011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant