diff --git a/.github/actions/ensure-base-commit/action.yml b/.github/actions/ensure-base-commit/action.yml index b2c4322aa84..0f87bce112d 100644 --- a/.github/actions/ensure-base-commit/action.yml +++ b/.github/actions/ensure-base-commit/action.yml @@ -30,7 +30,9 @@ runs: for deepen_by in 25 100 300; do echo "Base commit missing; deepening $FETCH_REF by $deepen_by." - git fetch --no-tags --deepen="$deepen_by" origin "$FETCH_REF" || true + if ! git fetch --no-tags --deepen="$deepen_by" origin "$FETCH_REF"; then + echo "::warning title=ensure-base-commit fetch failed::Failed to deepen $FETCH_REF by $deepen_by while looking for $BASE_SHA" + fi if git rev-parse --verify "$BASE_SHA^{commit}" >/dev/null 2>&1; then echo "Resolved base commit after deepening: $BASE_SHA" exit 0 @@ -38,7 +40,9 @@ runs: done echo "Base commit still missing; fetching full history for $FETCH_REF." - git fetch --no-tags origin "$FETCH_REF" || true + if ! git fetch --no-tags origin "$FETCH_REF"; then + echo "::warning title=ensure-base-commit fetch failed::Failed to fetch full history for $FETCH_REF while looking for $BASE_SHA" + fi if git rev-parse --verify "$BASE_SHA^{commit}" >/dev/null 2>&1; then echo "Resolved base commit after full ref fetch: $BASE_SHA" exit 0 diff --git a/scripts/e2e/onboard-docker.sh b/scripts/e2e/onboard-docker.sh index 70cbd6f0c51..fa4b85ed9af 100755 --- a/scripts/e2e/onboard-docker.sh +++ b/scripts/e2e/onboard-docker.sh @@ -247,7 +247,7 @@ TRASH select_skip_hooks() { # Hooks multiselect: pick "Skip for now". - wait_for_log "Enable hooks?" 60 true || true + wait_for_log "Enable hooks?" 60 send $'"'"' \r'"'"' 0.6 } @@ -261,15 +261,15 @@ TRASH send_reset_config_only() { # Risk acknowledgement (default is "No"). - wait_for_log "Continue?" 40 true || true + wait_for_log "Continue?" 40 send $'"'"'y\r'"'"' 0.8 # Select reset flow for existing config. - wait_for_log "Config handling" 40 true || true + wait_for_log "Config handling" 40 send $'"'"'\e[B'"'"' 0.3 send $'"'"'\e[B'"'"' 0.3 send $'"'"'\r'"'"' 0.4 # Reset scope -> Config only (default). - wait_for_log "Reset scope" 40 true || true + wait_for_log "Reset scope" 40 send $'"'"'\r'"'"' 0.4 select_skip_hooks }