Skip to content

Commit 21fc2b0

Browse files
fix(ci): Windows release builds wait for a queued Linux job [skip ci]
The Windows job gave up when `Build Linux <arch>` was missing from the run for 5 minutes, treating that as a renamed job. Since the validate job was added, the build is unlisted until validate finishes, so a busy hosted queue failed a healthy release (run 41752989226). Treat absence as still waiting, bounded by the step timeout. Raise that to 180 minutes, since that run needed about 50 and exceeded the old 40. [skip ci] so this push does not cancel the in-progress release re-run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a392bea commit 21fc2b0

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

‎.github/workflows/release-desktop.yml‎

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
runs-on: ${{ inputs.runner }}
171171
# Windows waits for the Linux CLI archive inside its own budget (see
172172
# "Wait for Linux CLI archive"), so it gets that wait on top of the usual 30.
173-
timeout-minutes: ${{ inputs.platform == 'win' && 70 || 30 }}
173+
timeout-minutes: ${{ inputs.platform == 'win' && 210 || 30 }}
174174
env:
175175
T3CODE_CLERK_PUBLISHABLE_KEY: ${{ inputs.clerk_publishable_key }}
176176
T3CODE_CLERK_JWT_TEMPLATE: ${{ inputs.clerk_jwt_template }}
@@ -550,7 +550,7 @@ jobs:
550550
- name: Wait for Linux CLI archive
551551
if: inputs.platform == 'win'
552552
shell: pwsh
553-
timeout-minutes: 40
553+
timeout-minutes: 180
554554
env:
555555
GITHUB_TOKEN: ${{ github.token }}
556556
ARTIFACT: cli-linux-${{ inputs.arch }}
@@ -561,25 +561,17 @@ jobs:
561561
function Test-Archive {
562562
(Invoke-RestMethod -Headers $headers -Uri "$run/artifacts?name=$env:ARTIFACT").total_count -gt 0
563563
}
564-
$missingSince = $null
565564
while ($true) {
566565
try {
567566
if (Test-Archive) {
568567
Write-Host "$env:ARTIFACT is ready."
569568
exit 0
570569
}
571570
$jobs = Invoke-RestMethod -Headers $headers -Uri "$run/attempts/$env:GITHUB_RUN_ATTEMPT/jobs?per_page=100"
571+
# The Linux build is unlisted until its validate job finishes, which
572+
# can take any time on a busy hosted queue, so absence is not failure.
572573
$linux = $jobs.jobs | Where-Object { $_.name.EndsWith($env:LINUX_JOB) } | Select-Object -First 1
573-
if (-not $linux) {
574-
# Both jobs start together, so a Linux job still missing after a
575-
# few minutes means a renamed or skipped job, not a slow one.
576-
if (-not $missingSince) {
577-
$missingSince = Get-Date
578-
} elseif (((Get-Date) - $missingSince).TotalMinutes -ge 5) {
579-
Write-Host "::error::No job named '$env:LINUX_JOB' in this run, so $env:ARTIFACT will not arrive."
580-
exit 1
581-
}
582-
} elseif ($linux.conclusion) {
574+
if ($linux -and $linux.conclusion) {
583575
# The upload may have landed between the two requests above.
584576
if (Test-Archive) {
585577
Write-Host "$env:ARTIFACT is ready."

0 commit comments

Comments
 (0)