mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-09 18:28:15 +01:00
fix(harness): retry an inactive start hook without failing refresh, and never re-enable a user disable (GST-718)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
49c62b3f7a
commit
ef00f3ad88
6 files changed
+79
-19
No files matched your search
@@ -518,7 +518,8 @@ $_RF_TARGETS
|
||||
EOF
|
||||
grep -q ' failed ' "$_RF_SUMMARY" && _RF_FAILED=1
|
||||
if [ "$HARNESS_AUTO" -eq 1 ] && [ -d "$GSTACK_STATE_ROOT/harness" ]; then
|
||||
bun --no-env-file --config="${GSTACK_BUN_CONFIG:-/dev/null}" "$SOURCE_GSTACK_DIR/bin/gstack-harness" refresh || _RF_FAILED=1
|
||||
# Exit 4: every registration refreshed; a start hook this run turned on is not active (printed above).
|
||||
bun --no-env-file --config="${GSTACK_BUN_CONFIG:-/dev/null}" "$SOURCE_GSTACK_DIR/bin/gstack-harness" refresh || [ "$?" -eq 4 ] || _RF_FAILED=1
|
||||
fi
|
||||
echo ""
|
||||
if [ "$_RF_FAILED" -eq 1 ]; then
|
||||
|
||||
Reference in new issue
Block a user