You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if grep -Fq 'dependency failed to start: container awf-squid is unhealthy' "$awf_attempt_log" \
434
+
&& [[ $awf_bootstrap_retry_attempt -lt $awf_bootstrap_retry_max ]]; then
435
+
echo "[WARN] AWF bootstrap: awf-squid healthcheck failure on attempt $awf_bootstrap_retry_attempt/$awf_bootstrap_retry_max — retrying in 10s" | tee -a %s
436
+
rm -f "$awf_attempt_log"
437
+
sleep 10
438
+
continue
439
+
fi
440
+
if grep -Fq 'dependency failed to start: container awf-squid is unhealthy' "$awf_attempt_log"; then
441
+
echo "[ERROR] AWF bootstrap: awf-squid healthcheck failure after all attempts — capturing squid container logs" | tee -a %s
442
+
docker logs awf-squid 2>&1 | tail -200 | sed 's/^/[awf-squid] /' | tee -a %s || true
443
+
fi
444
+
rm -f "$awf_attempt_log"
445
+
exit "$awf_exit"
446
+
done`,
447
+
awfCommand,
448
+
expandableArgs,
449
+
toolCacheMountRef,
450
+
arcDindPrefixArgsRef,
451
+
shellJoinArgs(awfArgs),
452
+
shellWrappedCommand,
453
+
escapedLog,
454
+
escapedLog,
455
+
escapedLog,
456
+
escapedLog,
457
+
)
458
+
}
459
+
402
460
// BuildAWFArgs constructs common AWF arguments from configuration.
403
461
// This extracts the shared AWF argument building logic from engine implementations.
-- /bin/bash -c 'set +o histexpand; GH_AW_TOOL_CACHE="${RUNNER_TOOL_CACHE:-/opt/hostedtoolcache}"; export PATH="$(find "$GH_AW_TOOL_CACHE" /opt/hostedtoolcache /home/runner/work/_tool -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || true)"; fi; if [ -z "$GH_AW_NODE_EXEC" ]; then echo "node runtime missing on this runner — check runtimes.node in workflow YAML" >&2; exit 127; fi; GH_AW_NPM_GLOBAL_ROOT="$(npm root -g 2>/dev/null || true)"; if [ -n "$GH_AW_NPM_GLOBAL_ROOT" ]; then export NODE_PATH="${GH_AW_NPM_GLOBAL_ROOT}${NODE_PATH:+:${NODE_PATH}}"; fi; "$GH_AW_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/claude_harness.cjs claude --print --no-chrome --allowed-tools '\''Bash,BashOutput,Edit,Edit(/tmp/*),Edit(/tmp/gh-aw/agent/*),ExitPlanMode,Glob,Grep,KillBash,LS,MultiEdit,MultiEdit(/tmp/*),MultiEdit(/tmp/gh-aw/agent/*),NotebookEdit,NotebookRead,Read,Read(/tmp/*),Read(/tmp/gh-aw/agent/*),Task,TodoWrite,Write,Write(/tmp/*),Write(/tmp/gh-aw/agent/*),mcp__github__download_workflow_run_artifact,mcp__github__get_code_scanning_alert,mcp__github__get_commit,mcp__github__get_dependabot_alert,mcp__github__get_discussion,mcp__github__get_discussion_comments,mcp__github__get_file_contents,mcp__github__get_job_logs,mcp__github__get_label,mcp__github__get_latest_release,mcp__github__get_me,mcp__github__get_notification_details,mcp__github__get_pull_request,mcp__github__get_pull_request_comments,mcp__github__get_pull_request_diff,mcp__github__get_pull_request_files,mcp__github__get_pull_request_review_comments,mcp__github__get_pull_request_reviews,mcp__github__get_pull_request_status,mcp__github__get_release_by_tag,mcp__github__get_secret_scanning_alert,mcp__github__get_tag,mcp__github__get_workflow_run,mcp__github__get_workflow_run_logs,mcp__github__get_workflow_run_usage,mcp__github__issue_read,mcp__github__list_branches,mcp__github__list_code_scanning_alerts,mcp__github__list_commits,mcp__github__list_dependabot_alerts,mcp__github__list_discussion_categories,mcp__github__list_discussions,mcp__github__list_issue_types,mcp__github__list_issues,mcp__github__list_label,mcp__github__list_notifications,mcp__github__list_pull_requests,mcp__github__list_releases,mcp__github__list_secret_scanning_alerts,mcp__github__list_starred_repositories,mcp__github__list_tags,mcp__github__list_workflow_jobs,mcp__github__list_workflow_run_artifacts,mcp__github__list_workflow_runs,mcp__github__list_workflows,mcp__github__pull_request_read,mcp__github__search_code,mcp__github__search_issues,mcp__github__search_orgs,mcp__github__search_pull_requests,mcp__github__search_repositories,mcp__github__search_users'\'' --debug-file /tmp/gh-aw/agent-stdio.log --verbose --permission-mode acceptEdits --output-format stream-json --mcp-config "${RUNNER_TEMP}/gh-aw/mcp-config/mcp-servers.json" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt${GH_AW_MODEL_DETECTION_CLAUDE:+ --model "$GH_AW_MODEL_DETECTION_CLAUDE"}' 2>&1 | tee "$awf_attempt_log" | tee -a /tmp/gh-aw/agent-stdio.log
573
+
awf_exit=${PIPESTATUS[0]}
574
+
set -e
575
+
if [[ $awf_exit -eq 0 ]]; then
576
+
rm -f "$awf_attempt_log"
577
+
break
578
+
fi
579
+
if grep -Fq 'dependency failed to start: container awf-squid is unhealthy' "$awf_attempt_log" \
580
+
&& [[ $awf_bootstrap_retry_attempt -lt $awf_bootstrap_retry_max ]]; then
581
+
echo "[WARN] AWF bootstrap: awf-squid healthcheck failure on attempt $awf_bootstrap_retry_attempt/$awf_bootstrap_retry_max — retrying in 10s" | tee -a /tmp/gh-aw/agent-stdio.log
582
+
rm -f "$awf_attempt_log"
583
+
sleep 10
584
+
continue
585
+
fi
586
+
if grep -Fq 'dependency failed to start: container awf-squid is unhealthy' "$awf_attempt_log"; then
587
+
echo "[ERROR] AWF bootstrap: awf-squid healthcheck failure after all attempts — capturing squid container logs" | tee -a /tmp/gh-aw/agent-stdio.log
588
+
docker logs awf-squid 2>&1 | tail -200 | sed 's/^/[awf-squid] /' | tee -a /tmp/gh-aw/agent-stdio.log || true
0 commit comments