upgrade --patch/--minor/--major #172

Closed
opened 2021-09-17 05:44:50 +00:00 by decentral1se · 6 comments
Owner

Describe the problem to be solved

upgrade can only be manually ran.

Describe the solution you would like

Add flags to support non-interactive automation.

## Describe the problem to be solved `upgrade` can only be manually ran. ## Describe the solution you would like Add flags to support non-interactive automation.
decentral1se added this to the Versioning and deploy stability milestone 2021-09-17 05:44:50 +00:00
decentral1se added the
enhancement
abra
labels 2021-09-17 05:44:50 +00:00
decentral1se added this to the Beta release (software) project 2021-09-17 05:44:50 +00:00
knoflook self-assigned this 2021-09-24 08:54:03 +00:00
knoflook removed their assignment 2021-09-27 09:27:10 +00:00
Owner

Design question:
current version: 1.4.1
newest avail. version: 1.5.0

abra recipe upgrade --major thisapp

should it upgrade to 1.5.0? I'd say yes but I'd love some input on that.

Design question: current version: 1.4.1 newest avail. version: 1.5.0 `abra recipe upgrade --major thisapp` should it upgrade to 1.5.0? I'd say yes but I'd love some input on that.
knoflook self-assigned this 2021-10-01 18:01:37 +00:00
Owner

once coop-cloud/tagcmp#3 gets merged I'll open a PR to close this issue! In the meantime you can check it out here: https://git.coopcloud.tech/coop-cloud/abra/compare/main...knoflook:recipe-upgrade

once https://git.coopcloud.tech/coop-cloud/tagcmp/pulls/3 gets merged I'll open a PR to close this issue! In the meantime you can check it out here: https://git.coopcloud.tech/coop-cloud/abra/compare/main...knoflook:recipe-upgrade
Author
Owner

should it upgrade to 1.5.0? I'd say yes but I'd love some input on that.

I would say rather bail out? In this case, there is no major version available (it should be 2.0.0 if you pass --major, right?) and the automation should rather try to run --minor. If I'm reading this right...

once coop-cloud/tagcmp#3 gets merged

will review now 💯

> should it upgrade to 1.5.0? I'd say yes but I'd love some input on that. I would say rather bail out? In this case, there is no major version available (it should be `2.0.0` if you pass `--major`, right?) and the automation should rather try to run `--minor`. If I'm reading this right... > once https://git.coopcloud.tech/coop-cloud/tagcmp/pulls/3 gets merged will review now 💯
Owner

(it should be 2.0.0 if you pass --major, right?)

this makes sense. I see two approaches to this though:

  1. --major/minor/patch specifies the type of upgrade you want to do
  2. --major/minor/parch specifies the most serious type of upgrade you want to do

the first is good because it makes more semantical sense, but when you're upgrading an app you might need to type the command 2 times (to correct for a lack of major upgrade in this case).
My thinking was that if you are ready to do a major version upgrade you're also ready to do a minor version upgrade, so we could just throw a warning there (that the automation can put into its logs). That way we avoid having to invoke the command 2 times manually or having to write error checking on the automation side (it's still possible for an automation script to bail out if it sees a warning, right?)

> (it should be 2.0.0 if you pass --major, right?) this makes sense. I see two approaches to this though: 1. --major/minor/patch specifies the type of upgrade you want to do 2. --major/minor/parch specifies the **most serious** type of upgrade you want to do the first is good because it makes more semantical sense, but when you're upgrading an app you might need to type the command 2 times (to correct for a lack of major upgrade in this case). My thinking was that if you are ready to do a major version upgrade you're also ready to do a minor version upgrade, so we could just throw a warning there (that the automation can put into its logs). That way we avoid having to invoke the command 2 times manually or having to write error checking on the automation side (it's still possible for an automation script to bail out if it sees a warning, right?)
Author
Owner

Yep this all sounds wise 🚀

Yep this all sounds wise 🚀
Owner

aight i'll re-write this on tuesday/wednesday then!

aight i'll re-write this on tuesday/wednesday then!
Sign in to join this conversation.
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#172
No description provided.