perf: optimize safe-outputs checkout and file-budget settings in all 14 news agentic workflows#2845
Conversation
…ster safe-outputs The prerequisite step already fetches GITHUB_SHA on demand for bundle-apply, making full-history clones unnecessary. This reduces safe-outputs checkout from ~14 min to seconds. Verified working: actions/runs/26705323600/job/78707294558 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
🏷️ Automatic Labeling SummaryThis PR has been automatically labeled based on the files changed and PR metadata. Applied Labels: documentation,workflow,ci-cd,size-m,news,agentic-workflow Label Categories
For more information, see |
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
|
@copilot also update all agentic workflows to use max-patch-size: 10240 |
Update safe-outputs max-patch-files: 100 → 200 in all news-*.md workflow frontmatter and update matching body-text guards and prompt modules: - 14 news-*.md: max-patch-files: 100 → 200 - news-propositions.md, news-year-ahead.md: HARD FILE LIMIT (100 → 200), staged > 90 → > 180 thresholds - news-translate.md: all 100-file cap references → 200 - .github/prompts/07-commit-and-pr.md: 100-file guard → 200-file guard, 90-file threshold → 180, table column / 90 → / 180 - .github/prompts/03-data-download.md: hard-caps at 100 → 200 files Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
... Done in commit |
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
Safe-outputs checkout was cloning full git history (~14 min) unnecessarily, and the file-budget cap was set lower than needed. The prerequisite step already fetches
GITHUB_SHAon demand for bundle-apply, making shallow clones sufficient.Changes
checkout: fetch-depth: 0→fetch-depth: 1in all 14news-*.mdworkflow source filesmax-patch-files: 100→max-patch-files: 200in all 14news-*.mdworkflow frontmatter (max-patch-size: 10240unchanged)news-propositions.md,news-year-ahead.md,news-translate.md(HARD FILE LIMIT 100→200, staged threshold 90→180)07-commit-and-pr.mdand03-data-download.mdwith new 200-file limits and 180-file thresholdsBefore/After
Verified
compile-agentic-workflows.ymlunchanged (no fetch-depth patching logic exists)