From c4b3c61325f70769992b6e4a9fbb43ef596b2f4a Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Tue, 12 Nov 2024 15:40:12 +0100 Subject: [PATCH] actions: fix: wait for the action logs to show up The Forgejo instance completed the echo test successfully, there must be a log at some point. But since Forgejo is still running, it may not had time to write the logs just yet. Retry instead of giving up immediately. --- actions/feature-logs-compression/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/feature-logs-compression/run.sh b/actions/feature-logs-compression/run.sh index 174a24d..7502fbd 100755 --- a/actions/feature-logs-compression/run.sh +++ b/actions/feature-logs-compression/run.sh @@ -5,7 +5,7 @@ set -e source $FEATURE_DIR/../../lib/lib.sh source $FEATURE_DIR/../../forgejo/fixtures.sh -if ! fixture_get_one_path local data/actions_log/root/example-echo | grep --quiet log.zst; then +if ! retry bash -c "find $DIR/forgejo-work-path/data/actions_log/root/example-echo | grep --quiet log.zst"; then ( cd $DIR/forgejo-work-path find data