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 · ◷
Motivation
github/gh-aw#51833 (fixes github/gh-aw#50740) —
push_to_pull_request_branchfailed when a filtered git bundle advertised onlyHEAD(norefs/heads/<branch>entry), leaving valid agent changes unapplied. The fix adds bundle-heads inspection and fallback to a validatedHEADSHA.Proposed test
test-copilot-push-to-pull-request-branch-head-only-bundle.mdworkflow_dispatchpush-to-pull-request-branchnosandboxif 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-branchagainst a target PR/branch, under conditions that force the git bundle to only contain aHEADentry (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-branchtests (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 viaworkflow_dispatchinputs) — needs feasibility triage before converting to a PR.