Retry Windows ARM full CI archive

This commit is contained in:
starr-openai
2026-05-29 11:57:36 -07:00
parent 765f6639e2
commit 663100723b
3 changed files with 37 additions and 23 deletions
@@ -51,6 +51,10 @@ on:
required: false
default: false
type: boolean
archive_timeout_minutes:
required: false
default: 60
type: number
# Caller workflow-level env does not flow through workflow_call, so keep the
# Cargo git transport hardening on the archive and shard jobs directly here.
@@ -62,7 +66,7 @@ jobs:
name: Build nextest archive
runs-on: ${{ inputs.archive_runner_group != '' && fromJSON(format('{{"group":"{0}","labels":"{1}"}}', inputs.archive_runner_group, inputs.archive_runner_labels)) || inputs.archive_runner != '' && inputs.archive_runner || inputs.runner_group != '' && fromJSON(format('{{"group":"{0}","labels":"{1}"}}', inputs.runner_group, inputs.runner_labels)) || inputs.runner }}
continue-on-error: ${{ inputs.retry_archive }}
timeout-minutes: 60
timeout-minutes: ${{ inputs.archive_timeout_minutes }}
outputs:
completed: ${{ steps.archive_completed.outputs.completed }}
defaults:
@@ -303,7 +307,28 @@ jobs:
needs: archive
if: inputs.retry_archive && always() && needs.archive.outputs.completed != 'true'
runs-on: ${{ inputs.archive_runner_group != '' && fromJSON(format('{{"group":"{0}","labels":"{1}"}}', inputs.archive_runner_group, inputs.archive_runner_labels)) || inputs.archive_runner != '' && inputs.archive_runner || inputs.runner_group != '' && fromJSON(format('{{"group":"{0}","labels":"{1}"}}', inputs.runner_group, inputs.runner_labels)) || inputs.runner }}
timeout-minutes: 60
continue-on-error: true
timeout-minutes: ${{ inputs.archive_timeout_minutes }}
outputs:
completed: ${{ steps.archive_completed.outputs.completed }}
defaults:
run:
working-directory: codex-rs
env:
ARCHIVE_CACHE_RUNNER: ${{ inputs.archive_runner != '' && inputs.archive_runner || inputs.runner }}
USE_SCCACHE: ${{ inputs.use_sccache && 'true' || 'false' }}
CARGO_INCREMENTAL: "0"
SCCACHE_CACHE_SIZE: 10G
NEXTEST_ARCHIVE_FILE: nextest-${{ inputs.artifact_id }}.tar.zst
TEST_HELPERS_ARTIFACT: nextest-test-helpers-${{ inputs.artifact_id }}
steps: *archive_steps
archive_retry_2:
name: Retry build nextest archive 2
needs: [archive, archive_retry]
if: inputs.retry_archive && always() && needs.archive.outputs.completed != 'true' && needs.archive_retry.outputs.completed != 'true'
runs-on: ${{ inputs.archive_runner_group != '' && fromJSON(format('{{"group":"{0}","labels":"{1}"}}', inputs.archive_runner_group, inputs.archive_runner_labels)) || inputs.archive_runner != '' && inputs.archive_runner || inputs.runner_group != '' && fromJSON(format('{{"group":"{0}","labels":"{1}"}}', inputs.runner_group, inputs.runner_labels)) || inputs.runner }}
timeout-minutes: ${{ inputs.archive_timeout_minutes }}
outputs:
completed: ${{ steps.archive_completed.outputs.completed }}
defaults:
@@ -320,8 +345,8 @@ jobs:
shard:
name: Tests shard ${{ matrix.shard }}/4
needs: [archive, archive_retry]
if: always() && (needs.archive.outputs.completed == 'true' || needs.archive_retry.outputs.completed == 'true')
needs: [archive, archive_retry, archive_retry_2]
if: always() && (needs.archive.outputs.completed == 'true' || needs.archive_retry.outputs.completed == 'true' || needs.archive_retry_2.outputs.completed == 'true')
runs-on: ${{ inputs.runner_group != '' && fromJSON(format('{{"group":"{0}","labels":"{1}"}}', inputs.runner_group, inputs.runner_labels)) || inputs.runner }}
timeout-minutes: 60
defaults:
+3
View File
@@ -494,11 +494,13 @@ jobs:
runner: ubuntu-24.04-arm
runner_group: codex-runners
runner_labels: codex-linux-arm64
archive_runner: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
profile: ci-test
artifact_id: linux-arm64
use_sccache: true
retry_archive: true
archive_timeout_minutes: 120
secrets: inherit
tests_windows_x64:
@@ -529,6 +531,7 @@ jobs:
artifact_id: windows-arm64
test_threads: 8
use_sccache: true
retry_archive: true
secrets: inherit
# --- Gatherer job for the full post-merge workflow --------------------------