Skip to content

fix: increase news-translate max-patch-size to 2048 KB#1085

Merged
pethers merged 2 commits intomainfrom
copilot/increase-max-patch-size
Mar 12, 2026
Merged

fix: increase news-translate max-patch-size to 2048 KB#1085
pethers merged 2 commits intomainfrom
copilot/increase-max-patch-size

Conversation

Copy link
Contributor

Copilot AI commented Mar 12, 2026

Translation workflow was rejected because the generated patch (1513 KB) exceeds the default 1024 KB limit. Translating articles into 12 languages routinely produces patches above 1 MB.

  • Added max-patch-size: 2048 under safe-outputs in news-translate.md
  • Recompiled news-translate.lock.yml via gh aw compile
safe-outputs:
  max-patch-size: 2048
  create-pull-request: {}

Note: max-patch-size is a top-level safe-outputs property, not nested under create-pull-request (despite what the error template suggests).

Original prompt

This section details on the original issue you should resolve

<issue_title>[aw] News: Translate Articles failed</issue_title>
<issue_description>### Workflow Failure

Workflow: News: Translate Articles
Branch: main
Run: https://github.com/Hack23/riksdagsmonitor/actions/runs/22999317918

📦 Patch Size Exceeded: The code push was rejected because the generated patch is too large.

Errors:

  • create_pull_request: Patch size (1513 KB) exceeds maximum allowed size (1024 KB)

To allow larger patches, increase max-patch-size in your workflow's front matter (value in KB):

safe-outputs:
  create-pull-request:
    max-patch-size: 2048  # Example: double the default limit (in KB, default: 1024)

Action Required

Option 1: Debug using any coding agent

Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):

Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md

The failed workflow run is at https://github.com/Hack23/riksdagsmonitor/actions/runs/22999317918

Option 2: Assign this issue to Copilot

Assign this issue to Copilot using the agentic-workflows sub-agent to automatically debug and fix the workflow failure.

Option 3: Manually invoke the agent

Debug this workflow failure using your favorite Agent CLI and the agentic-workflows prompt.

[!TIP]
To stop a workflow from creating failure issues, set report-failure-as-issue: false in its frontmatter:

safe-outputs:
  report-failure-as-issue: false

Generated from News: Translate Articles

  • expires on Mar 19, 2026, 11:54 AM UTC

Comments on the Issue (you are @copilot in this section)

Custom agent used: agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

The translation workflow generates translations for up to 12 languages,
which can produce patches larger than 1024 KB (observed: 1513 KB).
Increase the safe-outputs max-patch-size to 2048 KB to accommodate.

Fixes #194

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title [WIP] [aw] Update max patch size for workflow fix: increase news-translate max-patch-size to 2048 KB Mar 12, 2026
@pethers pethers marked this pull request as ready for review March 12, 2026 13:17
@pethers pethers merged commit 2b7a988 into main Mar 12, 2026
12 checks passed
@pethers pethers deleted the copilot/increase-max-patch-size branch March 12, 2026 13:18
@github-actions github-actions bot added documentation Documentation updates workflow GitHub Actions workflows ci-cd CI/CD pipeline changes news News articles and content generation agentic-workflow Agentic workflow changes size-s Small change (10-50 lines) labels Mar 12, 2026
@github-actions
Copy link
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentic-workflow Agentic workflow changes ci-cd CI/CD pipeline changes documentation Documentation updates news News articles and content generation size-s Small change (10-50 lines) workflow GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] News: Translate Articles failed

2 participants