Skip to content

Bump max-ai-credits to 2000 for perf-improver and code-simplifier - #9052

Merged
Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/bump-ai-credits-perf-codesimp
Jun 11, 2026
Merged

Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/bump-ai-credits-perf-codesimp

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Both agentic workflows recently exceeded the default 1000 AI credits limit by a small margin (+3.42 for code-simplifier, +6.48 for perf-improver), causing the copilot engine to terminate mid-run.

Raise the per-workflow max-ai-credits to 2000 so 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.yml files with gh aw compile --strict.

Fixes #9046
Fixes #9048

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]>
Copilot AI review requested due to automatic review settings June 11, 2026 19:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: 2000 in .github/workflows/perf-improver.md and .github/workflows/code-simplifier.md.
  • Regenerated the corresponding *.lock.yml files so the compiled firewall config and emitted GH_AW_MAX_AI_CREDITS reflect 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

@Evangelink
Amaury Levé (Evangelink) merged commit ebb1724 into main Jun 11, 2026
23 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the dev/amauryleve/bump-ai-credits-perf-codesimp branch June 11, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Perf Improver failed [aw] Code Simplifier failed

2 participants