abra app ps checks out wrong version #629

Closed
opened 2024-07-23 08:34:03 +00:00 by simon · 3 comments

Following my workflow described here: #628

When I stage and commit my local changes in this branch, I'm able to execute abra app ps.

But:

  • abra checks out revision a45b5e15
  • output is
sth@DESKTOP-PH8ENDF:~$ abra app ps -d todo.dev.local-it.cloud
 DEBUG  <app/app.go:284> collecting metadata from 15 servers: [***]
 DEBUG  <envfile/envfile.go:34> read map[COMPOSE_FILE:compose.yml:compose.oauth.yml:compose.smtp.yml [***]
 DEBUG  <app/app.go:238> read env map[COMPOSE_FILE:compose.yml:compose.oauth.yml:compose.smtp.yml [***]
 DEBUG  <app/app.go:39> retrieved {todo.dev.local-it.cloud {vikunja a45b5e15 /home/sth/.abra/recipes/vikunja https://git.coopcloud.tech/coop-cloud/vikunja.git ssh://git@git.coopcloud.tech:2222/coop-cloud/vikunja.git /home/sth/.abra/recipes/vikunja/compose.yml /home/sth/.abra/recipes/vikunja/README.md /home/sth/.abra/recipes/vikunja/.env.sample /home/sth/.abra/recipes/vikunja/abra.sh} todo.dev.local-it.cloud map[COMPOSE_FILE:compose.yml:compose.oauth.yml:compose.smtp.yml [***]
 DEBUG  <internal/validate.go:98> validated todo.dev.local-it.cloud as app argument
 DEBUG  <git/read.go:123> no /home/sth/.gitignore exists, skipping reading gitignore paths
 DEBUG  <git/read.go:45> discovered clean git status in /home/sth/.abra/recipes/vikunja
 DEBUG  <git/branch.go:97> successfully checked out refs/heads/main in /home/sth/.abra/recipes/vikunja
 DEBUG  <recipe/git.go:228> fetched latest git changes for vikunja
 DEBUG  <recipe/git.go:37> ensuring version a45b5e15
 DEBUG  <recipe/git.go:100> read 0.1.0+0.19.1, 0.2.0+0.20.0, 0.2.1+0.20.1, 0.2.2+0.20.3, 0.2.3+0.20.3, 0.2.4+0.20.5, 0.3.0+0.21.0, 0.4.0+0.22.1 as tags for recipe vikunja
 DEBUG  <recipe/git.go:105> attempting to checkout 'a45b5e15' as chaos commit
 DEBUG  <recipe/git.go:127> successfully checked vikunja out to  in /home/sth/.abra/recipes/vikunja
 DEBUG  <client/client.go:88> created client for dev.local-it.cloud
 DEBUG  <commandconn/commandconn.go:49> commandconn: starting ssh with [-l root -p 22 -- dev.local-it.cloud docker system dial-stdio]
 DEBUG  <stack/stack.go:155> todo_dev_local-it_cloud has been detected as deployed: {true 1.0.0+0.24.0 true 9aae7e1a + unstaged changes}
 DEBUG  <client/client.go:88> created client for dev.local-it.cloud
 DEBUG  <commandconn/commandconn.go:49> commandconn: starting ssh with [-l root -p 22 -- dev.local-it.cloud docker system dial-stdio]
 DEBUG  <app/app.go:474> retrieved app statuses: map[[***] todo_dev_local-it_cloud:map[autoUpdate:true chaos:true chaosVersion:9aae7e1a + unstaged changes status:deployed version:1.0.0+0.24.0][***]]
 DEBUG  <git/read.go:123> no /home/sth/.gitignore exists, skipping reading gitignore paths
 DEBUG  <git/read.go:45> discovered clean git status in /home/sth/.abra/recipes/vikunja
 DEBUG  <recipe/compose.go:56> COMPOSE_FILE detected (compose.yml:compose.oauth.yml:compose.smtp.yml), loading compose.yml, compose.oauth.yml, compose.smtp.yml
 DEBUG  <recipe/compose.go:57> retrieved /home/sth/.abra/recipes/vikunja/compose.yml, /home/sth/.abra/recipes/vikunja/compose.oauth.yml, /home/sth/.abra/recipes/vikunja/compose.smtp.yml configs for vikunja
 DEBUG  <app/app.go:488> retrieved /home/sth/.abra/recipes/vikunja/compose.yml for todo.dev.local-it.cloud
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃SERVICE        ┃IMAGE               ┃CREATED              ┃STATUS                      ┃STATE         ┃PORTS          ┃
┣━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━┫
┃api            ┃unknown             ┃unknown              ┃unknown                     ┃unknown       ┃unknown        ┃
┃app            ┃unknown             ┃unknown              ┃unknown                     ┃unknown       ┃unknown        ┃
┃db             ┃postgres:13         ┃21 hours ago         ┃Up 21 hours (healthy)       ┃running       ┃5432/tcp       ┃
┃redis          ┃redis:latest        ┃16 minutes ago       ┃Up 16 minutes               ┃running       ┃6379/tcp       ┃
┗━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┛
 INFO  <app/ps.go:179> VERSION: 1.0.0+0.24.0 CHAOS: a45b5e15

Also, the api service shouldn't show up anymore and the Chaos Version is expected to be 9aae7e1a + unstaged instead of a45b5e15

Following my workflow described here: #628 When I stage and commit my local changes in [this](https://git.coopcloud.tech/coop-cloud/vikunja/src/branch/merge-frontend-and-api) branch, I'm able to execute `abra app ps`. But: * abra checks out revision a45b5e15 * output is ``` sth@DESKTOP-PH8ENDF:~$ abra app ps -d todo.dev.local-it.cloud DEBUG <app/app.go:284> collecting metadata from 15 servers: [***] DEBUG <envfile/envfile.go:34> read map[COMPOSE_FILE:compose.yml:compose.oauth.yml:compose.smtp.yml [***] DEBUG <app/app.go:238> read env map[COMPOSE_FILE:compose.yml:compose.oauth.yml:compose.smtp.yml [***] DEBUG <app/app.go:39> retrieved {todo.dev.local-it.cloud {vikunja a45b5e15 /home/sth/.abra/recipes/vikunja https://git.coopcloud.tech/coop-cloud/vikunja.git ssh://git@git.coopcloud.tech:2222/coop-cloud/vikunja.git /home/sth/.abra/recipes/vikunja/compose.yml /home/sth/.abra/recipes/vikunja/README.md /home/sth/.abra/recipes/vikunja/.env.sample /home/sth/.abra/recipes/vikunja/abra.sh} todo.dev.local-it.cloud map[COMPOSE_FILE:compose.yml:compose.oauth.yml:compose.smtp.yml [***] DEBUG <internal/validate.go:98> validated todo.dev.local-it.cloud as app argument DEBUG <git/read.go:123> no /home/sth/.gitignore exists, skipping reading gitignore paths DEBUG <git/read.go:45> discovered clean git status in /home/sth/.abra/recipes/vikunja DEBUG <git/branch.go:97> successfully checked out refs/heads/main in /home/sth/.abra/recipes/vikunja DEBUG <recipe/git.go:228> fetched latest git changes for vikunja DEBUG <recipe/git.go:37> ensuring version a45b5e15 DEBUG <recipe/git.go:100> read 0.1.0+0.19.1, 0.2.0+0.20.0, 0.2.1+0.20.1, 0.2.2+0.20.3, 0.2.3+0.20.3, 0.2.4+0.20.5, 0.3.0+0.21.0, 0.4.0+0.22.1 as tags for recipe vikunja DEBUG <recipe/git.go:105> attempting to checkout 'a45b5e15' as chaos commit DEBUG <recipe/git.go:127> successfully checked vikunja out to in /home/sth/.abra/recipes/vikunja DEBUG <client/client.go:88> created client for dev.local-it.cloud DEBUG <commandconn/commandconn.go:49> commandconn: starting ssh with [-l root -p 22 -- dev.local-it.cloud docker system dial-stdio] DEBUG <stack/stack.go:155> todo_dev_local-it_cloud has been detected as deployed: {true 1.0.0+0.24.0 true 9aae7e1a + unstaged changes} DEBUG <client/client.go:88> created client for dev.local-it.cloud DEBUG <commandconn/commandconn.go:49> commandconn: starting ssh with [-l root -p 22 -- dev.local-it.cloud docker system dial-stdio] DEBUG <app/app.go:474> retrieved app statuses: map[[***] todo_dev_local-it_cloud:map[autoUpdate:true chaos:true chaosVersion:9aae7e1a + unstaged changes status:deployed version:1.0.0+0.24.0][***]] DEBUG <git/read.go:123> no /home/sth/.gitignore exists, skipping reading gitignore paths DEBUG <git/read.go:45> discovered clean git status in /home/sth/.abra/recipes/vikunja DEBUG <recipe/compose.go:56> COMPOSE_FILE detected (compose.yml:compose.oauth.yml:compose.smtp.yml), loading compose.yml, compose.oauth.yml, compose.smtp.yml DEBUG <recipe/compose.go:57> retrieved /home/sth/.abra/recipes/vikunja/compose.yml, /home/sth/.abra/recipes/vikunja/compose.oauth.yml, /home/sth/.abra/recipes/vikunja/compose.smtp.yml configs for vikunja DEBUG <app/app.go:488> retrieved /home/sth/.abra/recipes/vikunja/compose.yml for todo.dev.local-it.cloud ┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓ ┃SERVICE ┃IMAGE ┃CREATED ┃STATUS ┃STATE ┃PORTS ┃ ┣━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━┫ ┃api ┃unknown ┃unknown ┃unknown ┃unknown ┃unknown ┃ ┃app ┃unknown ┃unknown ┃unknown ┃unknown ┃unknown ┃ ┃db ┃postgres:13 ┃21 hours ago ┃Up 21 hours (healthy) ┃running ┃5432/tcp ┃ ┃redis ┃redis:latest ┃16 minutes ago ┃Up 16 minutes ┃running ┃6379/tcp ┃ ┗━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━┛ INFO <app/ps.go:179> VERSION: 1.0.0+0.24.0 CHAOS: a45b5e15 ``` Also, the api service shouldn't show up anymore and the Chaos Version is expected to be `9aae7e1a + unstaged` instead of `a45b5e15`
simon added the
bug
label 2024-07-23 08:34:03 +00:00
Owner

Yeh, that does definitely seem like a separate bug 🫢

...
DEBUG  <recipe/git.go:37> ensuring version a45b5e15
...
DEBUG  <app/app.go:474> retrieved app statuses: map[[***] todo_dev_local-it_cloud:map[autoUpdate:true chaos:true chaosVersion:9aae7e1a + unstaged changes status:deployed version:1.0.0+0.24.0][***]]
...
Yeh, that does definitely seem like a separate bug 🫢 ``` ... DEBUG <recipe/git.go:37> ensuring version a45b5e15 ... DEBUG <app/app.go:474> retrieved app statuses: map[[***] todo_dev_local-it_cloud:map[autoUpdate:true chaos:true chaosVersion:9aae7e1a + unstaged changes status:deployed version:1.0.0+0.24.0][***]] ... ```
decentral1se added the
abra
label 2024-07-23 08:38:29 +00:00
Owner

Also, the api service shouldn't show up anymore

Also should be resolved by plan in coop-cloud/organising#628 (comment) 🤓

> Also, the api service shouldn't show up anymore Also should be resolved by plan in https://git.coopcloud.tech/coop-cloud/organising/issues/628#issuecomment-21201 🤓
Owner

Confirmed fixed.

Confirmed fixed.
Sign in to join this conversation.
No Milestone
No project
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: toolshed/organising#629
No description provided.