Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable distro upgrades procedure #123

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Enable distro upgrades procedure #123

merged 2 commits into from
Sep 30, 2024

Conversation

igorpecovnik
Copy link
Member

@igorpecovnik igorpecovnik commented Sep 27, 2024

Description

Implement functionality for upgrading to latest distribution release. It only provides options, defined by build framework.

When more options are possible, it prompts:

image

It works the same on Ubuntu and Debian. Units tests are provided, but this still doesn't mean upgrades will be successful on users side. Feature prompts user for danger.

Issue reference: armbian/build#7303

Implementation Details

Function returns false or true of second parameter "verify" is added, otherwise it does the job. It only provides option to latest possible. If we upgrade from Focal and want stable upgrade, it will upgrade to Noble. If we upgrade bullseye to unstable, it will upgrade to testing.

Testing Procedure

  • Manual tests
  • Unit tests are enabled

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have ensured that my changes do not introduce new warnings or errors
  • No new external dependencies are included
  • Changes have been tested and verified
  • I have included necessary metadata in the code, including associative arrays

@igorpecovnik igorpecovnik added 11 Milestone: Fourth quarter release Work in progress Unfinished / work in progress labels Sep 27, 2024
@github-actions github-actions bot added GitHub Actions GitHub Actions code GitHub GitHub-related changes like labels, templates, ... Scripts size/medium PR with more then 50 and less then 250 lines labels Sep 27, 2024
@igorpecovnik igorpecovnik force-pushed the distro-upgrade branch 15 times, most recently from 878d932 to 67ae938 Compare September 28, 2024 06:38
@github-actions github-actions bot added the Documentation Documentation changes or additions label Sep 28, 2024
@igorpecovnik igorpecovnik force-pushed the distro-upgrade branch 7 times, most recently from 072d936 to bd5da2c Compare September 28, 2024 07:48
@igorpecovnik igorpecovnik force-pushed the distro-upgrade branch 10 times, most recently from 3ff47bd to 0015dfb Compare September 28, 2024 19:01
@igorpecovnik igorpecovnik added Needs review Seeking for review and removed Work in progress Unfinished / work in progress labels Sep 28, 2024
@igorpecovnik igorpecovnik merged commit b379f80 into main Sep 30, 2024
12 of 13 checks passed
@igorpecovnik igorpecovnik deleted the distro-upgrade branch November 5, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
11 Milestone: Fourth quarter release Documentation Documentation changes or additions GitHub Actions GitHub Actions code GitHub GitHub-related changes like labels, templates, ... Needs review Seeking for review size/medium PR with more then 50 and less then 250 lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant