Reduce CI/CD gaps assessment run cost to avoid AI-credit guardrail trips#4943
Conversation
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
There was a problem hiding this comment.
Pull request overview
This pull request reduces the AI token/turn spend of the CI/CD Pipelines and Integration Tests Gap Assessment agentic workflow to avoid hitting the per-run max-ai-credits guardrail during scheduled runs, and adds a regression test to prevent accidental cost-profile drift.
Changes:
- Pinned the workflow’s cost profile by setting
max-turns: 4andengine.model: claude-haiku-4.5in the source workflow. - Recompiled the locked workflow so the runtime environment reflects the pinned model and turn cap.
- Added a Jest regression test to assert the source + lock workflows preserve the intended model/turn settings.
Show a summary per file
| File | Description |
|---|---|
scripts/ci/ci-cd-gaps-assessment-workflow.test.ts |
Adds CI assertions that the source and lock workflow files retain the intended model and max-turns settings. |
.github/workflows/ci-cd-gaps-assessment.md |
Pins the workflow to a lower-cost Copilot model and limits turn count to reduce per-run AI-credit usage. |
.github/workflows/ci-cd-gaps-assessment.lock.yml |
Updates the compiled workflow to hard-code the pinned model and turn budget in runtime/env and metadata. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 0
🔐 Smoke Test: Copilot PAT Auth — PASS
Overall: PASS — Auth mode: PAT (COPILOT_GITHUB_TOKEN) cc
|
|
Reduce CI/CD gaps assessment run cost to avoid AI-credit guardrail trips Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
Smoke Test: Copilot BYOK (Direct Mode) ✅ PASSTest Results:
Configuration: Direct BYOK mode (COPILOT_PROVIDER_API_KEY) via api-proxy sidecar. Agent receives placeholder credential; real key held by sidecar. All inference requests routed through secure api-proxy → Squid → api.githubcopilot.com. Network isolation, filesystem access, and BYOK authentication path all verified.
|
🔬 Smoke Test Results — PASS
Overall: PASS PR: Reduce CI/CD gaps assessment run cost to avoid AI-credit guardrail trips
|
Smoke Test: GitHub Actions Services Connectivity
Overall: FAIL — Service containers appear not to be running or are not accessible from this runner.
|
Gemini Smoke Test Results
Overall Status: FAIL Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "localhost"See Network Configuration for more information.
|
|
Smoke Test Results:
Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) Overall: PASS
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
|
Smoke Test Results:
Running in direct BYOK mode (AWF_AUTH_TYPE=github-oidc + AWF_AUTH_AZURE_* + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) authenticated via Microsoft Entra Overall: PASS
|
The CI/CD Pipelines and Integration Tests Gap Assessment workflow was intermittently exhausting its per-run AI-credit budget (
max-ai-credits), causing scheduled runs to terminate as rate-limit failures. This change reduces model/turn spend for that workflow and codifies the budget-oriented configuration in CI assertions.Workflow cost controls
.github/workflows/ci-cd-gaps-assessment.mdto pin a lower-cost execution profile:engine.model: claude-haiku-4.5max-turns: 4Compiled workflow alignment
.github/workflows/ci-cd-gaps-assessment.lock.ymlso runtime settings reflect the source workflow changes (model + turn cap).Regression guardrail
scripts/ci/ci-cd-gaps-assessment-workflow.test.tsto enforce that both source and lock files keep the intended cost profile.