Skip to content

Raise test-quarantine effective-token budget to 50M, halve run frequency - #67168

Merged
wtgodbe merged 1 commit into
dotnet:mainfrom
wtgodbe:infrastructure/quarantine-raise-token-cap
Jun 11, 2026
Merged

wtgodbe merged 1 commit into
dotnet:mainfrom
wtgodbe:infrastructure/quarantine-raise-token-cap

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Jun 11, 2026

Copy link
Copy Markdown
Member

Problem

The daily test-quarantine agentic workflow has been tripping the gh-aw default 25M effective-token (ET) cap mid-gathering, before producing any quarantine output. Even after moving Part 1 data gathering to a zero-cost pre-activation step (#67167), the agent loop still exceeds 25M during Part 2 (pass-rate analysis), dying with 429 Maximum effective tokens exceeded and creating no PRs/issues.

Changes

  • max-effective-tokens: 50M — new top-level frontmatter field (supported since gh-aw ADR-35286; precedence is frontmatter → GH_AW_DEFAULT_MAX_EFFECTIVE_TOKENS → 25M built-in). This raises the per-run AWF API-proxy budget so the agent can finish a full pass.
  • cron: "0 10 */2 * *" — schedule halved from daily to every 2 days, so the doubled per-run budget keeps monthly token spend roughly flat.

Notes

This is a pragmatic stopgap to get the workflow producing output again. A durable follow-up (precomputing Part 2 pass-rate data + trimming the injected Part 1 blob) will cut per-run cost back well under 25M, after which the cap can be lowered again.

The test-quarantine agent loop was tripping the 25M default effective-token
cap mid-gathering, before producing any quarantine output. Raise the per-run
budget to 50M via the max-effective-tokens frontmatter field, and halve the
schedule to every 2 days so monthly token spend stays roughly flat.

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings June 11, 2026 22:47
@wtgodbe
wtgodbe requested a review from a team as a code owner June 11, 2026 22:47
@github-actions github-actions Bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jun 11, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at.

@wtgodbe
wtgodbe merged commit f7ea67b into dotnet:main Jun 11, 2026
12 checks passed

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

Adjusts the test-quarantine agentic workflow to avoid hitting the gh-aw effective-token cap mid-run by increasing the per-run budget while reducing run cadence to keep overall spend approximately stable.

Changes:

  • Change the scheduled trigger from daily to every other day (cron: "0 10 */2 * *").
  • Add max-effective-tokens: 50M to raise the per-run AWF API-proxy effective-token budget.
  • Regenerate the compiled .lock.yml workflow to reflect the new schedule and token budget.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/test-quarantine.md Updates schedule cadence and adds a higher per-run effective-token budget in frontmatter.
.github/workflows/test-quarantine.lock.yml Updates the compiled workflow output to match the markdown workflow changes (schedule + token budget).

Comment on lines +738 to +741
# Per-run effective-token (ET) budget for AWF API-proxy enforcement. Raised from the
# 25M default because the agent loop was tripping the cap mid-gathering before producing
# any output. Run frequency is halved (every 2 days, see cron above) to keep monthly token
# spend roughly flat. See gh-aw ADR-35286 for the precedence rules.
on:
schedule:
- cron: "0 10 * * *"
- cron: "0 10 */2 * *"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants