debug(ci/harness-replays): add timeout + verbose to fetch step
Some checks failed
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 20s
Harness Replays / Harness Replays (pull_request) CI bypass: infra#241
CI / Detect changes (pull_request) Successful in 57s
E2E API Smoke Test / detect-changes (pull_request) Successful in 51s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 55s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 11s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 38s
Harness Replays / detect-changes (pull_request) bypass
Secret scan / Scan diff for credential-shaped strings (pull_request) bypass
sop-tier-check / tier-check (pull_request) Successful in 12s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 27s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Successful in 44s
E2E Staging SaaS (full lifecycle) / E2E Staging SaaS (pull_request) Failing after 5m45s
CI / Platform (Go) (pull_request) Successful in 17s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 26s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 12s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 3m39s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Failing after 5m18s
CI / Python Lint & Test (pull_request) Failing after 8m21s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 9m8s
CI / Canvas (Next.js) (pull_request) Failing after 11m43s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
Some checks failed
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 20s
Harness Replays / Harness Replays (pull_request) CI bypass: infra#241
CI / Detect changes (pull_request) Successful in 57s
E2E API Smoke Test / detect-changes (pull_request) Successful in 51s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 55s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 11s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 38s
Harness Replays / detect-changes (pull_request) bypass
Secret scan / Scan diff for credential-shaped strings (pull_request) bypass
sop-tier-check / tier-check (pull_request) Successful in 12s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 27s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Successful in 44s
E2E Staging SaaS (full lifecycle) / E2E Staging SaaS (pull_request) Failing after 5m45s
CI / Platform (Go) (pull_request) Successful in 17s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 26s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 12s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 3m39s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Failing after 5m18s
CI / Python Lint & Test (pull_request) Failing after 8m21s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 9m8s
CI / Canvas (Next.js) (pull_request) Failing after 11m43s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
Adds explicit 55s timeout and verbose output to the git fetch step so the failure is diagnosed in CI logs rather than silent 15s timeout. 55s is well within the 60-min job timeout; enough for cold TCP handshake + one git pack transfer on a local network. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
ff5186dbc3
commit
4ed3dbdfb7
@ -72,15 +72,19 @@ jobs:
|
||||
run: |
|
||||
# With the default fetch-depth: 1, actions/checkout only fetches the
|
||||
# PR head commit. The base commit is NOT in the local history, so
|
||||
# `git diff "$BASE" "$GITHUB_SHA"` fails. Fetch the base branch tip
|
||||
# (which is github.event.pull_request.base.sha) at depth 1 — one
|
||||
# cheap round-trip, enough for the diff to work.
|
||||
# `git diff "$BASE" "$GITHUB_SHA"` fails. Fetch the base branch at
|
||||
# depth 1 — the base commit is the immediate parent of the PR head
|
||||
# on the base branch, so depth=1 is sufficient.
|
||||
#
|
||||
# github.event.pull_request.base.ref = "main" (confirmed via API).
|
||||
# git fetch origin main --depth=1 fetches the main branch tip + its
|
||||
# immediate parent (the base commit we need). This is faster and more
|
||||
# reliable than fetch-depth:0 (which times out on the 75 MB repo).
|
||||
git fetch origin "${{ github.event.pull_request.base.ref }}" --depth=1
|
||||
# Timeout: 55s. The fetch should complete in <10s on a local network;
|
||||
# 55s gives headroom for cold TCP handshake + one git pack transfer.
|
||||
# Gitea Actions overall job timeout is 60 min, so 55s is safe.
|
||||
timeout 55 git fetch --verbose origin "${{ github.event.pull_request.base.ref }}" --depth=1 || {
|
||||
echo "::error::git fetch origin ${{ github.event.pull_request.base.ref }} --depth=1 timed out after 55s"
|
||||
echo "::error::The base branch tip may not be available in the local history."
|
||||
echo "::error::This causes git diff to fail and detect-changes to report failure."
|
||||
exit 1
|
||||
}
|
||||
- id: decide
|
||||
run: |
|
||||
# workflow_dispatch: always run (manual trigger)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user