abra 0.10 app deploy output is less informative #550

Open
opened 2025-04-24 15:03:57 +00:00 by fauno · 9 comments
Member

previously abra app deploy listed the secrets and configs it was creating or reusing, but now it only shows progress of container deployment. i found the previous output useful to quickly check if the correct version of things was being deployed, specially when doing chaotic stuff.

unsure now if i should get used to it or claim for it to come back :P

coop-cloud/hedgedoc#17 (comment)

previously `abra app deploy` listed the secrets and configs it was creating or reusing, but now it only shows progress of container deployment. i found the previous output useful to quickly check if the correct version of things was being deployed, specially when doing chaotic stuff. unsure now if i should get used to it or claim for it to come back :P https://git.coopcloud.tech/coop-cloud/hedgedoc/pulls/17#issuecomment-24102
Member

There is some discussion already to add this stuff back. What do you think about only showing this information when it changed? See #537 (comment)

There is some discussion already to add this stuff back. What do you think about only showing this information when it changed? See https://git.coopcloud.tech/toolshed/abra/issues/537#issuecomment-23638
Author
Member

showing it when it changes sounds good!

showing it when it changes sounds good!
Owner

Yeh apologies, I'm kinda freestyling the deploy output and it's still not great IMHO.

All those messages from before are now moved to DEBUG logging messages, so can easily be brought back after "initialising deploy" or whatever it says now. The only issue with "when it changed" is that it only shows when it changes on < v0.10.x? E.g. create/update. So, do we mean that we ignore an "update" (you already know it was created?).

Yeh apologies, I'm kinda freestyling the deploy output and it's still not great IMHO. All those messages from before are now moved to `DEBUG` logging messages, so can easily be brought back after "initialising deploy" or whatever it says now. The only issue with "when it changed" is that it only shows when it changes on < `v0.10.x`? E.g. create/update. So, do we mean that we ignore an "update" (you already know it was created?).
decentral1se added this to the Abra "next" project 2025-04-24 19:35:12 +00:00
decentral1se added the
bug
label 2025-04-24 19:35:19 +00:00
Owner

Merging these two in here:

  • secret versions: #526
  • version of services diff (before deploy) #537

Some stuff is for "before deploy" (overview?) and others for "post deploy" (but we have UI for that yet besides logs).

Merging these two in here: * secret versions: https://git.coopcloud.tech/toolshed/abra/issues/526 * version of services diff (before deploy) https://git.coopcloud.tech/toolshed/abra/issues/537 Some stuff is for "before deploy" (overview?) and others for "post deploy" (but we have UI for that yet besides logs).
decentral1se moved this to Backlog in Abra "next" on 2025-05-11 08:24:52 +00:00
Owner

Related: #556

Related: https://git.coopcloud.tech/toolshed/abra/issues/556
3wordchant self-assigned this 2025-06-30 15:00:18 +00:00
decentral1se added the
red abya yala
label 2025-07-08 10:03:55 +00:00
Owner

An attempt at UI design

Original:

➜ abra app deploy foo.bar.example.com
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃                NEW DEPLOY OVERVIEW               ┃
┃                                                  ┃
┃ DOMAIN                foo.bar.example.com        ┃
┃ RECIPE                custom-php                 ┃
┃ SERVER                bar.example.com            ┃
┃ CONFIG                compose.yml                ┃
┃                                                  ┃
┃ CURRENT DEPLOYMENT    N/A                        ┃
┃ ENV VERSION           2.0.0+8.4.3-fpm-alpine3.20 ┃
┃ NEW DEPLOYMENT        2.0.0+8.4.3-fpm-alpine3.20 ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

Secrets

SECRETS    db_password: v1
           db_root_password: v2

Secrets

CONFIGS    entrypoint: v1 → v2

(showing incipient upgrade if possible, otherwise from post-deploy log messages)

Images

IMAGES   app: php:7.4-fpm-alpine3.13 → php:8.4.3-fpm-alpine3.20
         db: mariadb:10.6 (unchanged)
         frontend: nginx:1.20-alpine (unchanged)

But: for long image tags like php:7.4-fpm-alpine3.13 this could make the display Very Wide. Should we break it onto separate lines for upgrades, rather? Or is it rare enough that this is an OK default?

_An attempt at UI design_ Original: ``` ➜ abra app deploy foo.bar.example.com ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ NEW DEPLOY OVERVIEW ┃ ┃ ┃ ┃ DOMAIN foo.bar.example.com ┃ ┃ RECIPE custom-php ┃ ┃ SERVER bar.example.com ┃ ┃ CONFIG compose.yml ┃ ┃ ┃ ┃ CURRENT DEPLOYMENT N/A ┃ ┃ ENV VERSION 2.0.0+8.4.3-fpm-alpine3.20 ┃ ┃ NEW DEPLOYMENT 2.0.0+8.4.3-fpm-alpine3.20 ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ ``` ## Secrets ``` SECRETS db_password: v1 db_root_password: v2 ``` ## Secrets ``` CONFIGS entrypoint: v1 → v2 ``` (showing incipient upgrade if possible, otherwise from post-deploy log messages) ## Images ``` IMAGES app: php:7.4-fpm-alpine3.13 → php:8.4.3-fpm-alpine3.20 db: mariadb:10.6 (unchanged) frontend: nginx:1.20-alpine (unchanged) ``` But: for long image tags like `php:7.4-fpm-alpine3.13` this could make the display Very Wide. Should we break it onto separate lines for upgrades, rather? Or is it rare enough that this is an OK default?
Author
Member

i like how it shows what's changing!

for logs, i always go to tap since it shows ok / not ok and it's easy to read. maybe something like that, with custom prefixes? what abra version had the INFO/WARN/etc prefixes? i'm not sure i've seen them lately, but i've only been deploying upgrades

i like how it shows what's changing! for logs, i always go to [tap](https://testanything.org/) since it shows ok / not ok and it's easy to read. maybe something like that, with custom prefixes? what abra version had the INFO/WARN/etc prefixes? i'm not sure i've seen them lately, but i've only been deploying upgrades
Owner

what abra version had the INFO/WARN/etc prefixes? i'm not sure i've seen them lately, but i've only been deploying upgrades

I think current main abra (still?) has those prefixes for abra's own logs:

DEBU <cli/run.go:65> abra version dev, commit a32e30374f402fc00714784b5ee02f845ff27411
...
FATA <recipe/git.go:43> unable to fetch tags in /home/user/.abra/recipes/custom-html: ssh: handshake failed: ssh: disconnect, reason 2: too many authentication failures

For Docker logs (to display after "INFO initialising deployment", I'm not aware of the Docker daemon giving us log-level info; if there is a way of getting it then 💯 it would be great to add those same prefix badges.


Anyway, two ❤️ on the proposed UI I will aim to implement it this week.

> what abra version had the INFO/WARN/etc prefixes? i'm not sure i've seen them lately, but i've only been deploying upgrades I think current `main` abra (still?) has those prefixes for abra's own logs: ``` DEBU <cli/run.go:65> abra version dev, commit a32e30374f402fc00714784b5ee02f845ff27411 ... FATA <recipe/git.go:43> unable to fetch tags in /home/user/.abra/recipes/custom-html: ssh: handshake failed: ssh: disconnect, reason 2: too many authentication failures ``` For Docker logs (to display after "INFO initialising deployment", I'm not aware of the Docker daemon giving us log-level info; if there is a way of getting it then 💯 it would be great to add those same prefix badges. --- Anyway, two ❤️ on [the proposed UI](https://git.coopcloud.tech/toolshed/abra/issues/550#issuecomment-25535) I will aim to implement it this week.
Owner

For Docker logs (to display after "INFO initialising deployment", I'm not aware of the Docker daemon giving us log-level info; if there is a way of getting it then 💯 it would be great to add those same prefix badges.

@3wordchant check out pkg/ui/deploy.go for the gory details! we're receiving all messages from the runtime and decoding and choosing / throwing away some to show on the abra side. i've tried to make more sense of that but it's pretty chaotic... throw in a debug statement somewhere and you'll get a taste for it! Loving the UI developments here 🙏

> For Docker logs (to display after "INFO initialising deployment", I'm not aware of the Docker daemon giving us log-level info; if there is a way of getting it then 💯 it would be great to add those same prefix badges. @3wordchant check out `pkg/ui/deploy.go` for the gory details! we're receiving all messages from the runtime and decoding and choosing / throwing away some to show on the `abra` side. i've tried to make more sense of that but it's pretty chaotic... throw in a debug statement somewhere and you'll get a taste for it! Loving the UI developments here 🙏
decentral1se moved this to In Progress in Abra "next" on 2025-08-12 05:22:16 +00:00
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#550
No description provided.