archethic-foundation / archethic-foundation/archethic-node

Improve release.sh script

Open
#1,255 0 comments 0 reactions 0 assignees View on GitHub
enhancements release
Dominant language
Elixir
Stars
82
Forks
24
PR merge metrics
No merged PRs in 30d

Description

### Is your feature request related to a problem?

When we release for a first time, we create a tar.gz archive that we place in the release folder, and when we run the upgrade, erlang untar this archive and run the upgrade.

But if the upgrade fail, and we fix the issue in the same version, when we create the new release and try to upgrade, erlang say that the release is already unpacked and so the new fix isn't applied.

### Describe the solution you'd like

To fix this in the release script, when we put the archive in the release folder, if the release seems already unpacked, then we can direclty untar the archive, so the next upgrade will take the same version with the hotfix

### Additional context

_No response_

### Epic

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by inspecting release.sh and the release archive and upgrade flow described in the issue. Reproduce the case where a failed upgrade leaves the release unpacked, then verify that creating a replacement archive for the same version allows the next upgrade to apply the hotfix.

Written by the indexing model from the issue text.

Assessment

Tech stack
erlang, shell
Domain
release
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.