Skip to content

Suggested test: copilot/push-to-pull-request-branch-head-only-bundle #11367

Description

@github-actions

Motivation

github/gh-aw#51833 (fixes github/gh-aw#50740) — push_to_pull_request_branch failed when a filtered git bundle advertised only HEAD (no refs/heads/<branch> entry), leaving valid agent changes unapplied. The fix adds bundle-heads inspection and fallback to a validated HEAD SHA.

Proposed test

  • Workflow file: test-copilot-push-to-pull-request-branch-head-only-bundle.md
  • Trigger: workflow_dispatch
  • Engine: copilot
  • Safe output: push-to-pull-request-branch
  • Variant: standard (or nosandbox if bundle filtering requires disabling sandbox git filtering)

Minimal test prompt sketch

Have the agent make a small file change and push it via push-to-pull-request-branch against a target PR/branch, under conditions that force the git bundle to only contain a HEAD entry (e.g. via a filtered/shallow bundle triggered by the sandbox's git object filtering). Assert the push succeeds and the branch is updated.

New fixtures or secrets needed

None expected — reuses existing PR-branch push fixtures from test-copilot-push-to-pull-request-branch-using-dispatch.md.

Notes

Existing push-to-pull-request-branch tests (test-copilot-push-to-pull-request-branch-using-dispatch.md, test-copilot-nosandbox-push-to-pull-request-branch.md) exercise the normal named-ref bundle path but not the HEAD-only bundle edge case. Open question: it's unclear how to reliably force the underlying git bundle mechanism into the HEAD-only shape from a workflow prompt alone (this may be an internal sandbox/runtime condition not directly controllable via workflow_dispatch inputs) — needs feasibility triage before converting to a PR.

Generated by 🔍 Suggest New E2E Tests · auto · 19.6 AIC · ⌖ 2.19 AIC · ⊞ 8.3K · ◷

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions