Stop push-context dispatch storms in Approach Validator and Daily Syntax Error Quality Check - #48825
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot investigate why this AW are triggered on "push" events. The only have label / slash commands should not not trigger on pushes. |
There was a problem hiding this comment.
Pull request overview
Attempts to prevent push-triggered workflow storms and reduce duplicate executions.
Changes:
- Adds push-context execution guards.
- Adds cancel-in-progress concurrency groups.
- Regenerates compiled workflows.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/daily-syntax-error-quality.md |
Adds execution gating and concurrency. |
.github/workflows/daily-syntax-error-quality.lock.yml |
Compiles the source changes. |
.github/workflows/approach-validator.md |
Adds execution gating and per-item concurrency. |
.github/workflows/approach-validator.lock.yml |
Compiles the source changes. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 4/4 changed files
- Comments generated: 3
- Review effort level: Medium
| if: > | ||
| needs.pre_activation.outputs.activated == 'true' && | ||
| fromJSON(github.event.inputs.aw_context || '{}').event_type != 'push' |
| concurrency: | ||
| group: "daily-syntax-error-quality-${{ github.ref }}" | ||
| cancel-in-progress: true |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Root cause: When copilot agent branches push commits that modify files in Bug in the previous fix: The condition Fix applied (commit
The |
|
🎉 This pull request is included in a new release. Release: |
A burst of unintended invocations exhausted daily AI-credit budgets for
approach-validatoranddaily-syntax-error-quality, causing repeated guardrail preflight failures. This change adds execution gating and stronger dedup semantics so push-context dispatches do not fan out into repeated runs.Root-cause containment (event-context guard)
ifguards in both workflow sources to reject dispatch payloads whereaw_context.event_type == 'push'.schedulefor daily syntax checks; issue/PR/comment-driven activation for approach validation).Storm dampening (concurrency dedup)
concurrencywithcancel-in-progress: truefor both workflows.Compiled workflow alignment
.lock.ymlfiles so runtime behavior matches source workflow changes.