Skip to content

Add dedicated error messages for max patch size failures in agent failure issues#20354

Merged
pelikhan merged 2 commits intomainfrom
copilot/add-dedicated-error-message
Mar 10, 2026
Merged

Add dedicated error messages for max patch size failures in agent failure issues#20354
pelikhan merged 2 commits intomainfrom
copilot/add-dedicated-error-message

Conversation

Copy link
Contributor

Copilot AI commented Mar 10, 2026

When a workflow fails due to patch size limits, the agent failure issue previously showed only a generic error with no actionable guidance. This adds dedicated sections with front matter examples to fix the issue.

What changed

  • push_repo_memory.cjs: Set patch_size_exceeded step output before setFailed() so the failure reason can be propagated downstream.

  • repo_memory.go + notify_comment.go: Expose patch_size_exceeded_{memoryID} as a job output and pass it as GH_AW_REPO_MEMORY_PATCH_SIZE_EXCEEDED_{memoryID} to the handle_agent_failure step.

  • handle_agent_failure.cjs:

    • buildCodePushFailureContext: new patchSizeErrors category — detects "Patch size ... exceeds" errors and renders a dedicated 📦 Patch Size Exceeded section instead of falling through to the generic "Code Push Failed" bucket.
    • New buildPushRepoMemoryFailureContext(): shows a dedicated 📦 Repo-Memory Patch Size Exceeded section when patch_size_exceeded is set; falls back to the existing generic message otherwise.

Example output in failure issue

For code push failures (create_pull_request, push_to_pull_request_branch):

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

For repo-memory failures:

repo-memory:
  - id: default
    max-patch-size: 51200  # Example: 5x the default limit (in bytes, default: 10240, max: 102400)

All 166 lock files regenerated via make recompile.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw GO111MODULE x_amd64/vet git rev-�� --show-toplevel x_amd64/vet /usr/bin/git -json GO111MODULE 64/pkg/tool/linu--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw GO111MODULE 64/bin/go git rev-�� --show-toplevel go /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw GO111MODULE ache/go/1.25.0/x--show-toplevel git 0/x6�� --show-toplevel go /usr/bin/git -json GO111MODULE ache/go/1.25.0/x--show-toplevel git (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha --show-toplevel EyM21KM_Xuxg /opt/hostedtoolcache/node/24.14.0/x64/bin/node /tmp/go-build224git -trimpath 64/bin/go node /tmp�� /tmp/TestHashStability_SameInputSameOutput2039788364/001/stability-test.md go /usr/bin/git -json GO111MODULE x_amd64/vet git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq k/_temp/uv-python-dir/bash "prettier" --wrigit git 64/bin/go git rev-�� --show-toplevel go /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha runs/20260310-122639-29678/test-628266311/.github/workflows /tmp/go-build2063075089/b100/vet.cfg /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet ck '**/*.cjs' '*git GO111MODULE 64/bin/go /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet -uns�� -unreachable=false /tmp/go-build2063075089/b254/vet.cfg 0/x64/bin/node -json GO111MODULE 64/bin/go 0/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha runs/20260310-123007-42013/test-2953778980/.github/workflows GO111MODULE /home/node_modules/.bin/sh GOINSECURE GOMOD GOMODCACHE sh -c -aw/git/ref/tags/v1.2.3 GOPROXY ache/node/24.14.0/x64/bin/node GOSUMDB GOWORK 64/bin/go /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/link (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha -json .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env -json GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel x_amd64/compile /usr/bin/git -json GO111MODULE x_amd64/vet git conf�� user.email test@example.com /usr/bin/git -json GO111MODULE x_amd64/vet /usr/bin/git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git MpDWJWFFv .cfg 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git edcfg GO111MODULE dAt,startedAt,up--show-toplevel git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha --show-toplevel -tests /tmp/go-build2063075089/b413/repoutil.test prettier --check 64/bin/go /tmp/go-build2063075089/b413/repoutil.test -tes�� -test.paniconexit0 -test.v=true (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha /tmp/gh-aw-test-runs/20260310-122639-29678/test-757316972/.github/workflows rev-parse /usr/bin/gh prettier --check 64/bin/go gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq /usr/bin/unpigz -mod=readonly -f 64/bin/go /usr/bin/unpigz (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha --show-toplevel 64/pkg/tool/linu/home/REDACTED/work/gh-aw/gh-aw/pkg/timeutil/format_test.go /usr/bin/git 757316972/.githugit .cfg 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git -json .cfg 64/pkg/tool/linu--show-toplevel git (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha T9M7/NRCgveuF336GOSUMDB GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE 1476789/b403/imp/tmp/go-build2063075089/b115/vet.cfg /hom�� che/go-build/14/144522c24eae70baGOINSECURE **/*.cjs 64/bin/go **/*.json --ignore-path ../../../.pretti-unreachable=false /opt/hostedtoolc/tmp/go-build2063075089/b309/vet.cfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha k/gh-aw/gh-aw/scripts/lint_errorGOINSECURE GOPROXY 64/bin/go GOSUMDB GOWORK 64/bin/go /opt/hostedtoolc/tmp/go-build2063075089/b257/vet.cfg -o rt -trimpath 64/bin/go -d internal/fuzz -lang=go1.25 go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha pkg/mod/github.com/charmbraceletGOINSECURE GOPROXY 64/bin/go GOSUMDB GOWORK 64/bin/go /opt/hostedtoolc/tmp/go-build2063075089/b198/vet.cfg -o /tmp/go-build2241476789/b390/_pkGOINSECURE -trimpath 64/bin/go -p github.com/githu-atomic -lang=go1.25 go (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha k/gh-aw/gh-aw/pkg/stringutil/ansi.go k/gh-aw/gh-aw/pkg/stringutil/identifiers.go /usr/bin/infocmp prettier --check 64/bin/go infocmp -1 xterm-color go /usr/bin/git GOPATH sh 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha /tmp/gh-aw-test-runs/20260310-123007-42013/test-3084565909/.github/workflows config /usr/bin/git remote.origin.urgit **/*.cjs 64/bin/go git init�� ../../../.prettiprettier sh e/git-remote-https "prettier" --wrigit git /prettier e/git-remote-https (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha /tmp/gh-aw-test-runs/20260310-122639-29678/test-82887517/.github/workflows rev-parse /tmp/go-build2063075089/b416/sliceutil.test prettier --check 64/bin/go /tmp/go-build2063075089/b416/sliceutil.test -tes�� -test.paniconexit0 -test.v=true /usr/bin/git -test.timeout=10git -test.run=^Test -test.short=true--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha ts.result node /usr/bin/git --write **/*.cjs 64/bin/go git init�� ../../../.prettiprettier sh /usr/bin/git "prettier" --wrigit git 64/bin/go git (http block)
  • https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha -json GO111MODULE ache/go/1.25.0/x64/pkg/tool/linu-lang=go1.25 GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/x64/pkg/tool/linu-dwarf=false -ato�� -bool -buildtags 3075089/b267/vet.cfg -errorsas -ifaceassert -nilfunc /opt/hostedtoolcache/go/1.25.0/x/tmp/go-build2063075089/b433/_testmain.go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha ck 'scripts/**/*.js' --ignore-path .prettierignore GO111MODULE epo.git GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE /home/REDACTED/.local/bin/node GOINSECURE GOMOD GOMODCACHE node (http block)
  • https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq .object.sha --show-toplevel go /usr/bin/git 3007-42013/test-git GO111MODULE cal/bin/sh git rev-�� --show-toplevel go /usr/bin/git p/TestGetNpmBinPgit GO111MODULE epo.git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq .object.sha /workflows/glossary-maintainer.lock.yml git modules/@npmcli/run-script/lib/node-gyp-bin/node l go /usr/bin/git infocmp er /setup/js/handle_agent_failure.cjs git n-dir/git tags/v6 go /usr/bin/git infocmp (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env ty-test.md GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE oFiles,IgnoredOtherFiles,CFiles,-nilfunc GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linuremote.origin.url (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 GO111MODULE 64/pkg/tool/linu-test.short=true GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linuTest User estl�� -json GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 GO111MODULE x_amd64/asm GOINSECURE GOMOD GOMODCACHE x_amd64/asm env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 GO111MODULE x_amd64/cgo GOINSECURE GOMOD GOMODCACHE x_amd64/cgo env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json .cfg 64/pkg/tool/linu-nolocalimports GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linu/tmp/go-build2063075089/b436/_testmain.go (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 GO111MODULE x_amd64/link GOINSECURE GOMOD GOMODCACHE x_amd64/link env (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE node /opt�� prettier --check 64/bin/go --ignore-path .prettierignore 64/bin/go go (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path "prettier" --wriGOINSECURE git 64/bin/go --show-toplevel hutil.test /usr/bin/git sh -c npx prettier --wGOSUMDB git /sh --show-toplevel ache/go/1.25.0/x-c /usr/bin/git golangci-lint (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb --jq .object.sha --show-toplevel go /usr/bin/git heck '**/*.cjs' git GO111MODULE 0/x64/bin/node git rev-�� --show-toplevel go /usr/bin/git ithub/workflows//usr/bin/gh GO111MODULE ache/go/1.25.0/xgraphql git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb --jq .object.sha /workflows/glossary-maintainer.lock.yml git /usr/bin/git --show-toplevel r /usr/bin/git git -C /setup/js/handle_agent_failure.cjs config er: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnablgraphql remote.origin.ur/usr/bin/gh go /usr/bin/git infocmp (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha -json GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env 1048213153/.github/workflows .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq .object.sha --check scripts/**/*.js 64/bin/go .prettierignore (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq .object.sha "prettier" --wriGOSUMDB git /node ref/tags/v1 ache/go/1.25.0/x-V=full run-script/lib/node-gyp-bin/node-json go /pre�� -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v2.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha --check scripts/**/*.js 64/bin/go .prettierignore (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha -mod=readonly -f 64/bin/go -d unsafe 64/bin/go s not exist yet"-buildtags env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha "prettier" --wriGOSUMDB git 64/bin/go --show-toplevel ache/go/1.25.0/x--deserialize /usr/bin/git go /pre�� -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v3.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq .object.sha --check scripts/**/*.js 64/bin/go .prettierignore (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq .object.sha "prettier" --wriGOSUMDB git 64/bin/go --show-toplevel ache/go/1.25.0/x--norc /usr/bin/git go /pre�� -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/githubnext/agentics/git/ref/tags/
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha --show-toplevel go /usr/bin/git -json GO111MODULE ache/go/1.25.0/x64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet /usr/bin/git -json GO111MODULE (http block)
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha /workflows/security-compliance.lock.yml git /usr/bin/gh l go /usr/bin/git /usr/bin/gh api js/**/*.json' --ignore-path ../../../.prettierignore -f p/bin/sh l owner=github DiscussionsEnablgraphql infocmp (http block)
  • https://api.github.com/repos/nonexistent/action/git/ref/tags/v999.999.999
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha md GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env 49/001/test-empty-frontmatter.md GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/nonexistent/repo/actions/runs/12345
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env -json .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion N files are not git GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/owner/repo/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go GOSUMDB GOWORK 64/bin/go sh -c "prettier" --che-errorsas node 64/bin/go iles formatted" --write 64/bin/go go (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go GOSUMDB GOWORK 64/bin/go sh -c "prettier" --check 'scripts/**/*GOINSECURE node 64/bin/go tierignore --write 64/bin/go go (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go --show-toplevel 64/pkg/tool/linu-c /usr/bin/git sh -c npx prettier --wGOSUMDB git 64/bin/go --show-toplevel ache/go/1.25.0/x-c /usr/bin/git go (http block)
  • https://api.github.com/repos/owner/repo/contents/file.md
    • Triggering command: /tmp/go-build2063075089/b383/cli.test /tmp/go-build2063075089/b383/cli.test -test.testlogfile=/tmp/go-build2063075089/b383/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true GOINSECURE GOMOD GOMODCACHE 1476789/b410/imp-buildtags -c k/gh-aw/gh-aw/pk-errorsas k/gh-aw/gh-aw/pk-ifaceassert 64/bin/go GOSUMDB GOWORK 64/bin/go /opt/hostedtoolc-buildtags (http block)
    • Triggering command: /tmp/go-build3212899094/b383/cli.test /tmp/go-build3212899094/b383/cli.test -test.testlogfile=/tmp/go-build3212899094/b383/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true --show-toplevel 64/pkg/tool/linuenv 86_64/node node /hom�� --write scripts/**/*.js 64/bin/go .prettierignore --log-level=erro/home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/.bin/prettier /usr/bin/git node (http block)
  • https://api.github.com/repos/test-owner/test-repo/actions/secrets
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name KTbw/oYOrFMIlkWTGOSUMDB GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE 1476789/b384/imp/tmp/go-build2063075089/b181/vet.cfg /hom�� che/go-build/c0/c02e512cf1f87624GOINSECURE **/*.cjs 64/bin/go **/*.json --ignore-path run-script/lib/n-bool /opt/hostedtoolc-buildtags (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name "prettier" --wriGOINSECURE git 64/bin/go --show-toplevel ache/go/1.25.0/x-c run-script/lib/nnpx prettier --check '**/*.cjs' '**/*.ts' '**/*.json' --ignore-path ../../../.pr**/*.json sh -c npx prettier --wGOSUMDB git 64/bin/go --show-toplevel ache/go/1.25.0/x-c /usr/bin/git /bin/sh (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

provide a dedicated error message for max patch size errors in the agent failure issue and an example of front matter to fix the issue

https://github.com/github/gh-aw/actions/runs/22900648282/job/66447284459#step:7:1


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.



✨ PR Review Safe Output Test - Run 22902962925

💥 [THE END] — Illustrated by Smoke Claude ·

…e issue

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add dedicated error message for max patch size errors Add dedicated error messages for max patch size failures in agent failure issues Mar 10, 2026
@pelikhan pelikhan marked this pull request as ready for review March 10, 2026 14:26
Copilot AI review requested due to automatic review settings March 10, 2026 14:26
Copy link
Contributor

Copilot AI left a comment

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 improves agent failure issues by detecting “max patch size exceeded” failures and rendering dedicated, actionable remediation sections (including front matter examples) for both code-push safe outputs and repo-memory pushes.

Changes:

  • Propagate a patch_size_exceeded output from push_repo_memory steps before failing, and thread it through job outputs/env vars into handle_agent_failure.
  • Add a new patch-size error bucket to buildCodePushFailureContext and introduce buildPushRepoMemoryFailureContext for repo-memory patch size failures.
  • Regenerate compiled workflow lock files to include the new outputs/env wiring.

Reviewed changes

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

Show a summary per file
File Description
pkg/workflow/repo_memory.go Exposes patch_size_exceeded_{memoryID} as a push_repo_memory job output per memory.
pkg/workflow/notify_comment.go Passes patch_size_exceeded_{memoryID} to handle_agent_failure via env vars.
actions/setup/js/push_repo_memory.cjs Sets patch_size_exceeded step output before failing on patch size limit.
actions/setup/js/handle_agent_failure.cjs Adds dedicated patch size sections for code-push failures and repo-memory failures.
actions/setup/js/handle_agent_failure.test.cjs Adds unit tests for the new patch-size failure contexts.
.github/workflows/workflow-health-manager.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/technical-doc-writer.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/security-compliance.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/security-alert-burndown.campaign.g.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/pr-triage-agent.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/metrics-collector.lock.yml Regenerated to include patch-size output exposure for repo-memory push steps.
.github/workflows/glossary-maintainer.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/firewall-escape.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/discussion-task-miner.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/developer-docs-consolidator.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/delight.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/deep-report.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/daily-testify-uber-super-expert.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/daily-news.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/daily-copilot-token-report.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/daily-code-metrics.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/daily-cli-performance.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/copilot-session-insights.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/copilot-pr-prompt-analysis.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/copilot-pr-nlp-analysis.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/copilot-cli-deep-research.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/copilot-agent-analysis.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/code-scanning-fixer.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/audit-workflows.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.
.github/workflows/agent-performance-analyzer.lock.yml Regenerated to include patch-size outputs/env wiring for repo-memory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@pelikhan pelikhan merged commit 36e5751 into main Mar 10, 2026
113 checks passed
@pelikhan pelikhan deleted the copilot/add-dedicated-error-message branch March 10, 2026 14:31
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.

3 participants