From 304ac87cec771e5276f31dd9807c5ef1860c29ef Mon Sep 17 00:00:00 2001 From: Ammar Hussein Date: Wed, 14 Jan 2026 16:58:21 -0800 Subject: [PATCH 1/2] ensure repo is up to date before printing status --- cli/app/list.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cli/app/list.go b/cli/app/list.go index 2c4bf521..c9f1942d 100644 --- a/cli/app/list.go +++ b/cli/app/list.go @@ -113,6 +113,13 @@ Use "--status/-S" flag to query all servers for the live deployment status.`), totalAppsCount++ if status { + if err := app.Recipe.EnsureUpToDate(); err != nil { + log.Warnf( + "Failed to ensure repo is up to date for recipe: %s err: %s", + app.Recipe.Name, + err, + ) + } status := i18n.G("unknown") version := i18n.G("unknown") chaos := i18n.G("unknown") -- 2.49.0 From 182fc41c587d56cdabd8d5010705db6a622e687d Mon Sep 17 00:00:00 2001 From: Ammar Hussein Date: Fri, 16 Jan 2026 14:27:27 -0800 Subject: [PATCH 2/2] added integration test --- tests/integration/app_list.bats | 10 ++++++++++ tests/integration/helpers/git.bash | 7 ++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/tests/integration/app_list.bats b/tests/integration/app_list.bats index ab4e64f4..ae95d0d7 100644 --- a/tests/integration/app_list.bats +++ b/tests/integration/app_list.bats @@ -67,6 +67,16 @@ teardown(){ assert_output --partial "$TEST_SERVER" assert_output --partial "$TEST_APP_DOMAIN" assert_output --partial "deployed" + assert_output --partial "latest" + + _remove_tags + + run $ABRA app ls --status + assert_success + assert_output --partial "$TEST_SERVER" + assert_output --partial "$TEST_APP_DOMAIN" + assert_output --partial "deployed" + assert_output --partial "latest" } @test "filter by server" { diff --git a/tests/integration/helpers/git.bash b/tests/integration/helpers/git.bash index e88128dd..89f00156 100644 --- a/tests/integration/helpers/git.bash +++ b/tests/integration/helpers/git.bash @@ -17,7 +17,12 @@ _remove_tags(){ run bash -c 'git -C "$ABRA_DIR/recipes/$TEST_RECIPE" tag -l | wc -l' assert_success - assert_output '0' + # If this was done without the --regexp I get this error: + # -- output differs -- + # expected : 0 + # actual : 0 + # -- + assert_output --regexp '[[:space:]]0' } _reset_tags() { -- 2.49.0