fix(ci): reconcile ECS runner updater on workflow changes (#8373)

This commit is contained in:
易良 2026-08-02 17:25:17 +08:00 committed by GitHub
parent 4e7bab8450
commit c0196b4226
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View file

@ -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:

View file

@ -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.