From 3f77db62580782631c7878278ad003e8fbb67882 Mon Sep 17 00:00:00 2001 From: qwen-code-dev-bot Date: Thu, 3 Sep 2026 10:18:55 +0000 Subject: [PATCH] fix(release): stop cancelling a slow-but-live workspace test shard (#10891) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Release run 33713579913 failed its quality gate four times in four and a half hours and never published. Attempt 3 lost both workspace test shards to the job cap: each carries the annotation "The job has exceeded the maximum execution time of 45m0s" and their steps had run 43m05s and 43m15s, still live. The cap had become smaller than the work it bounds — in the same run a shard that passed spent 41m32s in its test step out of the ~42m the cap left after setup. The lane also retries every failed test twice (#10842), which adds time on top of an already slow shard. #10868 resized the CI unit lane's step cap for exactly that arithmetic, recording that a cap "has to clear the slowest honest run, not the healthy one"; the release shard cap kept its pre-retry value. 90 is about twice the measured worst honest step, leaves room for those retries, and matches the publish job's existing ceiling. The other three attempts failed on tests rather than the cap. Both causes were already fixed on main before this branch and are verified green here: ledger entries stamped at collection time (0e3094ebf6, whose own message names this run) and the exhaustive UTF-16 byte-estimate sweep (19182d08ab). Neither fix could reach attempts 2-4, because the lane validates the SHA prepare pinned when the run started. --- .github/workflows/release.yml | 8 +++++++- scripts/tests/release-workflow.test.js | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d44100d9db94..0105aa9e959d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -510,7 +510,13 @@ jobs: workspace_tests: name: 'Workspace Tests (${{ matrix.shard }}/3)' runs-on: '${{ (github.repository == ''QwenLM/qwen-code'' && vars.MAINTAINER_ECS_RUNNER_DISABLED != ''true'') && fromJSON(''["self-hosted", "linux", "x64", "ecs-qwen-hk4-host"]'') || fromJSON(''["ubuntu-latest"]'') }}' - timeout-minutes: 45 + # The cap has to clear the slowest honest shard, not the healthy one. + # In run 33713579913 a passing shard's test step took 41m32s of the + # ~42m the 45-minute cap left it, and attempt 3 was cancelled with both + # shards still live at that cap. --retry=2 re-runs every failed test on + # top; #10868 sized the CI unit lane's step cap for the same arithmetic. + # 90 clears the measured worst case plus its retries. + timeout-minutes: 90 needs: - 'prepare' - 'quality_build' diff --git a/scripts/tests/release-workflow.test.js b/scripts/tests/release-workflow.test.js index 37232e3e71fc..901c14ed3682 100644 --- a/scripts/tests/release-workflow.test.js +++ b/scripts/tests/release-workflow.test.js @@ -1334,7 +1334,10 @@ describe('release workflow', () => { quality_static: 30, quality_build: 45, quality_typecheck: 30, - workspace_tests: 45, + // Run 33713579913: a passing shard's test step took 41m32s of the + // ~42m a 45-minute cap left it, and attempt 3 was cancelled with + // both shards still live. 90 clears that plus --retry=2's re-runs. + workspace_tests: 90, quality_scripts: 30, quality: 5, integration_none: 120,