Repository navigation
Bump max-ai-credits to 2000 for perf-improver and code-simplifier - #9052
Merged
Amaury Levé (Evangelink) merged 1 commit intoJun 11, 2026
Merged
Conversation
Both agentic workflows recently exceeded the default 1000 AI credits limit by a small margin (3.42 and 6.48), causing engine failures (issues #9046, #9048). Raise the per-workflow budget to 2000 to give them headroom without affecting other workflows. Fixes #9046 Fixes #9048 Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts two GitHub agentic workflows in microsoft/testfx (Perf Improver and Code Simplifier) to avoid mid-run termination due to the default max-ai-credits budget being slightly exceeded.
Changes:
- Set
max-ai-credits: 2000in.github/workflows/perf-improver.mdand.github/workflows/code-simplifier.md. - Regenerated the corresponding
*.lock.ymlfiles so the compiled firewall config and emittedGH_AW_MAX_AI_CREDITSreflect the new limit.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/perf-improver.md | Adds max-ai-credits: 2000 to give the Perf Improver workflow more headroom. |
| .github/workflows/perf-improver.lock.yml | Regenerated compiled workflow reflecting maxAiCredits: 2000 and updated metadata hash. |
| .github/workflows/code-simplifier.md | Adds max-ai-credits: 2000 to prevent Code Simplifier from hitting the default budget. |
| .github/workflows/code-simplifier.lock.yml | Regenerated compiled workflow reflecting maxAiCredits: 2000 and updated metadata hash. |
Copilot's findings
- Files reviewed: 4/4 changed files
- Comments generated: 0
Amaury Levé (Evangelink)
deleted the
dev/amauryleve/bump-ai-credits-perf-codesimp
branch
June 11, 2026 19:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Both agentic workflows recently exceeded the default
1000AI credits limit by a small margin (+3.42for code-simplifier,+6.48for perf-improver), causing thecopilotengine to terminate mid-run.Raise the per-workflow
max-ai-creditsto2000so they have enough headroom to complete normally. The change is scoped to these two workflows; other agentic workflows continue to use the repo default (1000).Recompiled both
.lock.ymlfiles with gh aw compile --strict.Fixes #9046
Fixes #9048