From c0196b422665aa000e9643555331baff8aef29da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=93=E8=89=AF?= <1204183885@qq.com> Date: Sun, 2 Aug 2026 17:25:17 +0800 Subject: [PATCH] fix(ci): reconcile ECS runner updater on workflow changes (#8373) --- .github/workflows/update-ecs-runner-qwen.yml | 3 +++ scripts/tests/update-ecs-runner-qwen-workflow.test.js | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/update-ecs-runner-qwen.yml b/.github/workflows/update-ecs-runner-qwen.yml index 9f61067090..79ac566e71 100644 --- a/.github/workflows/update-ecs-runner-qwen.yml +++ b/.github/workflows/update-ecs-runner-qwen.yml @@ -1,6 +1,9 @@ name: 'Update ECS Runner Qwen' on: + push: + branches: ['main'] + paths: ['.github/workflows/update-ecs-runner-qwen.yml'] workflow_dispatch: inputs: version: diff --git a/scripts/tests/update-ecs-runner-qwen-workflow.test.js b/scripts/tests/update-ecs-runner-qwen-workflow.test.js index 80e3b854fc..e4c0e41772 100644 --- a/scripts/tests/update-ecs-runner-qwen-workflow.test.js +++ b/scripts/tests/update-ecs-runner-qwen-workflow.test.js @@ -18,6 +18,12 @@ describe('ECS runner qwen update workflow', () => { expect(workflow).toContain('sudo env -u NPM_CONFIG_PREFIX npm install -g'); }); + it('runs only when this workflow changes on main', () => { + expect(workflow).toContain( + " push:\n branches: ['main']\n paths: ['.github/workflows/update-ecs-runner-qwen.yml']", + ); + }); + it('annotates a retry and a terminal failure distinctly', () => { // The final attempt must not log a "retrying" warning that never // retries; a sustained failure ends with an explicit exhausted error.