Skip to content

Write HTML. Render video. Built for agents.

ci: a stalled history fetch in change detection is retried instead of failing the run (#5615)

Miguel Ángelcd87cf111069
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 82a4325316..8a4730b12b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -39,9 +39,18 @@ jobs:
test-reachability:
name: Test reachability
runs-on: ubuntu-latest
- timeout-minutes: 2
+ timeout-minutes: 4
steps:
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ # A history fetch now and then stalls until the job's limit; a second fetch gets through.
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 1
+ continue-on-error: true
+ with:
+ fetch-depth: 0
+ - if: steps.checkout.outcome != 'success'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 1
with:
fetch-depth: 0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
@@ -64,7 +73,7 @@ jobs:
changes:
name: Detect changes
runs-on: ubuntu-latest
- timeout-minutes: 2
+ timeout-minutes: 4
permissions:
actions: read
contents: read
@@ -84,7 +93,16 @@ jobs:
# Force git-based change detection instead of the pull_request REST API.
# The API path can fail the whole workflow on transient listFiles
# timeouts before any real CI work starts.
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ # A history fetch now and then stalls until the job's limit; a second fetch gets through.
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 1
+ continue-on-error: true
+ with:
+ fetch-depth: 0
+ - if: steps.checkout.outcome != 'success'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 1
with:
fetch-depth: 0
- name: Check whether this commit already passed before a title or body edit
diff --git a/.github/workflows/player-perf.yml b/.github/workflows/player-perf.yml
index 5d6d73fa24..d40ab97736 100644
--- a/.github/workflows/player-perf.yml
+++ b/.github/workflows/player-perf.yml
@@ -21,13 +21,22 @@ jobs:
changes:
name: Detect changes
runs-on: ubuntu-latest
- timeout-minutes: 2
+ timeout-minutes: 4
outputs:
perf: ${{ steps.filter.outputs.perf }}
steps:
# Force git-based change detection instead of the pull_request REST API.
# The API path can fail the perf workflow on transient listFiles timeouts.
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ # A history fetch now and then stalls until the job's limit; a second fetch gets through.
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 1
+ continue-on-error: true
+ with:
+ fetch-depth: 0
+ - if: steps.checkout.outcome != 'success'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 1
with:
fetch-depth: 0
# HEAD is the PR merge ref; its first parent is the current base tip, unlike the payload's
diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml
index 7401a42c58..9d030f126e 100644
--- a/.github/workflows/regression.yml
+++ b/.github/workflows/regression.yml
@@ -39,7 +39,7 @@ jobs:
changes:
name: Detect changes
runs-on: ubuntu-latest
- timeout-minutes: 2
+ timeout-minutes: 4
permissions:
actions: read
contents: read
@@ -50,7 +50,16 @@ jobs:
# Force git-based change detection instead of the pull_request REST API.
# The API path can fail the whole workflow on transient listFiles
# timeouts before any regression shard even starts.
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ # A history fetch now and then stalls until the job's limit; a second fetch gets through.
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 1
+ continue-on-error: true
+ with:
+ fetch-depth: 0
+ - if: steps.checkout.outcome != 'success'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 1
with:
fetch-depth: 0
- name: Check whether this commit already passed before a title or body edit
diff --git a/.github/workflows/windows-render.yml b/.github/workflows/windows-render.yml
index d214a7458a..c271a0960c 100644
--- a/.github/workflows/windows-render.yml
+++ b/.github/workflows/windows-render.yml
@@ -43,7 +43,7 @@ jobs:
changes:
name: Detect changes
runs-on: ubuntu-latest
- timeout-minutes: 2
+ timeout-minutes: 4
permissions:
actions: read
contents: read
@@ -53,7 +53,16 @@ jobs:
# Force git-based change detection instead of the pull_request REST API.
# The API path can fail the workflow on transient listFiles timeouts
# before the Windows render jobs even start.
- - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ # A history fetch now and then stalls until the job's limit; a second fetch gets through.
+ - id: checkout
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 1
+ continue-on-error: true
+ with:
+ fetch-depth: 0
+ - if: steps.checkout.outcome != 'success'
+ uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
+ timeout-minutes: 1
with:
fetch-depth: 0
- name: Check whether this commit already passed before a title or body edit