Skip to content

fix(currency): unblock CVE fixes + guard agent-fix against stale commits - #6494

Open
Eren-Jeager123 wants to merge 1 commit into
mainfrom
fix/day0-currency-agent-fix-triggering
Open

fix(currency): unblock CVE fixes + guard agent-fix against stale commits#6494
Eren-Jeager123 wants to merge 1 commit into
mainfrom
fix/day0-currency-agent-fix-triggering

Conversation

@Eren-Jeager123

Copy link
Copy Markdown
Contributor

Problem

The Day0 currency Currency Fix Agent (_prcheck.currency-fix.yml) stopped fixing CVEs, and could push fixes on top of stale commits.

1. CVEs no longer get fixed

Commit 66c2d54a added /ecr-vulnerability-scan$/ to ignoredPatterns in Merge Conditions, making every ECR scan non-blocking. The Currency Fix Agent only triggers when Merge Conditions concludes failure, so:

CVE scan fails → Merge Conditions ignores it → concludes success → agent never runs → CVEs never fixed.

2. Agent acts on stale commits

workflow_run can fire for an older Merge Conditions run. The agent checks out the branch tip but reasons off the old run's logs, then pushes an [agent-fix] commit on top of whatever was pushed since — e.g. a manual human fix.

Changes

_prcheck.merge-conditions.yml — ECR scans stay non-blocking except vllm/*-ubuntu and sglang/*-ubuntu configs, which now block merge (exactly what the agent already tracks: PR - vLLM Ubuntu | PR - SGLang Ubuntu). The blockingScanPattern regex was validated against real check-run names — it blocks the three Ubuntu scans and still ignores amzn2023 / vllm-omni / huggingface-vllm / pytorch scans.

_prcheck.currency-fix.yml — Added a Guard step (runs before checkout, via GitHub API) that skips the job when:

  • Stale trigger: the failed run's head_sha no longer matches the branch tip — a newer run will handle the latest commit.
  • Branch gone: the ref no longer exists.
  • Manual override: the PR carries a stop-agent-fix label.

The Wait and Find failed workflows steps are gated on the guard; all downstream steps already key off has_failures, which stays empty when the guard skips, so the chain cascades off cleanly. Added pull-requests: read permission for the label lookup.

Manual override

Add the stop-agent-fix label to any auto-update PR to stop the agent from pushing commits to it. (Label created in the repo.)

Testing

  • Both workflow files validated as parseable YAML.
  • blockingScanPattern verified against real check-run names from a merged currency PR ([Auto-Update] vllm 0.26.0 #6446).

…t-fix against stale commits

Merge Conditions ignored all ecr-vulnerability-scan checks, so CVE failures
never triggered the Currency Fix Agent. Keep scans non-blocking except for
vllm/sglang *-ubuntu configs, which the agent already tracks.

Add a guard to the Currency Fix Agent that skips when the failed run's commit
is stale (branch moved on), the branch is gone, or the PR carries a
stop-agent-fix label — preventing fixes layered on top of newer human commits.
@Eren-Jeager123 Eren-Jeager123 added the stop-agent-fix Prevents the Currency Fix Agent from pushing commits to this PR label Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

authorized stop-agent-fix Prevents the Currency Fix Agent from pushing commits to this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant