Repository navigation
Count generated jobs in the daily AIC guardrail - #66298
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot consider using the job id instead of name if available. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The generated Evaluations job remains unmapped, allowing its usage to be omitted and cached.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Fixes daily AIC accounting for generated job display names and invalidates stale scan entries.
Changes:
- Normalizes
AgentandDetectionjob names. - Bumps cache coverage version and adds regression tests.
| File | Description |
|---|---|
actions/setup/js/daily_aic_component_coverage.cjs |
Normalizes billable job names. |
actions/setup/js/daily_aic_component_coverage.test.cjs |
Tests generated display names. |
actions/setup/js/daily_aic_cache_helpers.cjs |
Invalidates old coverage entries. |
actions/setup/js/daily_aic_scan.test.cjs |
Tests stale-zero reinspection. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
| const name = typeof job.name === "string" ? job.name.toLowerCase() : ""; | ||
| if (!Object.hasOwn(COMPONENT_FILES, name)) continue; |
There was a problem hiding this comment.
Already addressed in 8d273c1: the generated Evaluations name maps to evals, with regression coverage for the generated name. The job-ID preference was added in the same commit, and the changes are preserved after merging main in cbe472d.
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in 8d273c1. Component lookup now prefers |
|
@copilot address the following outstanding work in one pass:
Push the necessary fixes, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved. Use the pr-finisher skill and stop when only human review or CI remains; do not trigger CI. Sous-chef head: 8d273c1
|
…-guardrail-counts Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
|
@copilot address the following outstanding work in one pass:
Push the necessary fixes, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved. Use the pr-finisher skill and stop when only human review or CI remains; do not trigger CI. Sous-chef head: cbe472d
|
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
|
|
🎉 This pull request is included in a new release. Release: |

The daily AIC guardrail treated completed
AgentandDetectionjobs as having no billable usage because it matched only lowercase job names. It also reused the resulting zero-credit scan entries, allowing runs to start despite exceeding the daily limit.