Skip to content

fix(cdn): fail upgrade when compose startup fails#67

Closed
Twest2 wants to merge 1 commit into
coollabsio:mainfrom
Twest2:fix/60-upgrade-fails-on-compose-error
Closed

fix(cdn): fail upgrade when compose startup fails#67
Twest2 wants to merge 1 commit into
coollabsio:mainfrom
Twest2:fix/60-upgrade-fails-on-compose-error

Conversation

@Twest2
Copy link
Copy Markdown

@Twest2 Twest2 commented Apr 24, 2026

Fixes #60.

Summary

This change makes the upgrade scripts fail closed if the detached docker compose up step returns a non-zero exit code.

Changes

  • Wrap the compose startup command in an explicit success check.
  • Write an error|Docker compose up failed status when startup fails.
  • Stop the background upgrade flow before step 6 success is recorded.

Validation

  • Ran the fake-Docker repro from the issue description against both scripts/upgrade.sh and scripts/nightly/upgrade.sh.
  • Confirmed both scripts now write STATUS=error|Docker compose up failed.

@Twest2 Twest2 changed the title fix(cdn): fail upgrade when compose startup fails (#60) fix(cdn): fail upgrade when compose startup fails Apr 24, 2026
@andrasbacsai
Copy link
Copy Markdown
Member

Thank you but we don't need these changes.

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.

upgrade.sh marks upgrade complete even when docker compose up fails

2 participants