Skip to content

[aw] PR Description Updater reported incomplete result #49438

Description

@github-actions

Workflow Failure

Workflow: PR Description Updater
Branch: main
Run: https://github.com/github/gh-aw/actions/runs/30676558583

Warning

Task Could Not Be Completed: The agent reported that the task could not be performed due to an infrastructure or tool failure.

Reasons:

  • update_pull_request call limit exhausted before body update succeeded

    An initial test invocation of update_pull_request accidentally set the PR body to a placeholder value '-' while diagnosing a sandbox issue where jq/python3/node were blocked with Permission denied errors. The subsequent retry with the correct, fully synthesized PR description was rejected with 'update_pull_request limit reached — 1 of 1 already used this run'. The correct intended PR body content is preserved below for manual application if needed.


Overview

Removes 4 unused/dead functions and their associated tests across 3 packages. All removed functions are unexported (package-private) Go identifiers with no remaining callers, so this is a non-breaking internal cleanup.

Files Changed

File Change Impact
pkg/cli/update_check.go Removed checkForUpdates() wrapper that delegated to checkForUpdatesWithContext() Internal only
pkg/cli/update_check_test.go Removed TestCheckForUpdatesWithNoCheckUpdateFlag and TestCheckForUpdatesInCIMode (tested the deleted function) Test cleanup
pkg/console/console.go Removed formatTableHeaderWithTTY and formatErrorTextWithTTY internal TTY-aware formatting helpers Internal only
pkg/console/console_formatting_test.go Removed TestFormatTableHeaderWithTTY and TestFormatErrorTextWithTTY (tested the deleted helpers) Test cleanup
pkg/workflow/permissions_factory.go Removed unused NewPermissionsIssuesWriteDiscussionsWritePRWrite() factory function Internal only

Details

  • checkForUpdates was a thin wrapper around checkForUpdatesWithContext(context.Background(), ...); callers had migrated to invoking the context-aware version directly, making the wrapper dead code.
  • formatTableHeaderWithTTY / formatErrorTextWithTTY were unused TTY-detection formatting helpers in the console package; no call sites remained after prior refactors.
  • NewPermissionsIssuesWriteDiscussionsWritePRWrite was an unused permissions-factory constructor in pkg/workflow; no workflow compiler code referenced it.
  • Corresponding unit tests for each removed function were deleted alongside the implementations.

Impact

All 5 removed symbols are lowercase (unexported) or, in the permissions factory case, exported but with zero in-repo call sites — not part of any documented public API. No behavioral change to compiled workflows or CLI commands is expected.

Commits

  • 25834e71f chore: remove dead functions
  • ec7d024e3 Merge branch 'main' into chore/dead-code-removal-1785510590-95ac5acdb6b3a671

This is a structured incompletion signal (report_incomplete), not a real task outcome. Any other safe outputs emitted alongside this signal (e.g., comments) describe the failure state, not a completed review or action.

Action Required

Assign this issue to an agent to debug and fix the issue.

Debug with 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/github/gh-aw/actions/runs/30676558583
Manually invoke the agent

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

Tip

Stop reporting this workflow as a failure

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 PR Description Updater · 51.9 AIC ·

  • expires on Aug 1, 2026, 1:00 PM UTC

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions