feat: git hash arg for deploy #434

Merged
decentral1se merged 6 commits from git-hash-arg into main 2024-07-09 09:42:57 +00:00
Owner

See coop-cloud/organising#517.

I changed the design and actually don't allow git hashes on upgrade/rollback.

This is due to there being loooooads of logic which does comparisons, release notes, etc. for versions in those commands. It's hard to separate that all from this chaos commit path. Also, the UI is unclear: do I deploy/upgrade/rollback to deploy a chaos commit? And when is a chaos commit a rollback and not an upgrade in relation to a version?

This could technically be worked out but I think it's easier to just say "you're on your own" for chaos commits on deploy. And the UI surface for deploy is the "center for chaos". Then upgrade/rollback deals exclusively with recipe versions and deployments which remove "chaos".

Some additional cleaning commits re: docstrings. Stuff was out-of-date or duplicated elsewhere, so I made it more terse. Also additional tests for stuff when I was poking around in the upgrade/rollback code.

See https://git.coopcloud.tech/coop-cloud/organising/issues/517. I changed the design and actually *don't* allow git hashes on `upgrade`/`rollback`. This is due to there being *loooooads* of logic which does comparisons, release notes, etc. for versions in those commands. It's hard to separate that all from this chaos commit path. Also, the UI is unclear: do I `deploy`/`upgrade`/`rollback` to deploy a chaos commit? And when is a chaos commit a `rollback` and not an `upgrade` in relation to a `version`? This could technically be worked out but I think it's easier to just say "you're on your own" for chaos commits on `deploy`. And the UI surface for `deploy` is the "center for chaos". Then `upgrade`/`rollback` deals exclusively with recipe versions and deployments which remove "chaos". Some additional cleaning commits re: docstrings. Stuff was out-of-date or duplicated elsewhere, so I made it more terse. Also additional tests for stuff when I was poking around in the `upgrade`/`rollback` code.
decentral1se added 6 commits 2024-07-09 09:42:39 +00:00
decentral1se merged commit 7f910b4e5b into main 2024-07-09 09:42:57 +00:00
decentral1se deleted branch git-hash-arg 2024-07-09 09:42:58 +00:00
Member

Nice stuff! And I agree with the design decision

Nice stuff! And I agree with the design decision
Member

Finally 🚀 I really like this feature 🥳
But I'm not sure if it's a good idea if you're not able to upgrade to any arbitrary version. Especially to test a version before releasing it.

Finally 🚀 I really like this feature 🥳 But I'm not sure if it's a good idea if you're not able to `upgrade` to any arbitrary version. Especially to test a version before releasing it.
Member

Can you not test the new version using abra app deploy --chaos?

Can you not test the new version using abra app deploy --chaos?
Member

Can you not test the new version using abra app deploy --chaos?

Sorry you are right, I forgot that abra app deploy --chaos is mostly doing the same like abra app upgarde --chaos, as it also doing an in-place upgrade and I don't need to undeploy the app.

> Can you not test the new version using abra app deploy --chaos? Sorry you are right, I forgot that `abra app deploy --chaos` is mostly doing the same like `abra app upgarde --chaos`, as it also doing an in-place upgrade and I don't need to undeploy the app.
Author
Owner

Nice! afair abra app deploy <hash> will trigger a chaos deploy, no --chaos required 😌 And yes, the behaviour of upgrade/rollback is now finally changing from deploy. which is IMHO a good thing and less confusing. just we need to change our habits 🙃

Nice! afair `abra app deploy <hash>` will trigger a chaos deploy, no `--chaos` required 😌 And yes, the behaviour of `upgrade`/`rollback` is now finally changing from `deploy`. which is IMHO a good thing and less confusing. just we need to change our habits 🙃
Sign in to join this conversation.
No description provided.