Shopify / Shopify/shipit-engine
Copilot coding agent breaks commit syncs
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 1.5k
- Forks
- 154
- Avg merge
- 2h 26m
- Merged PRs (30d)
- 3
Description
👋🏻 Hello from rubygems.org
We recently had our first PR generated from the new Copilot coding agent, which, when merged, caused our Shipit Stacks to immediately break and be marked as inaccessible from:
The GitHub API makes it seem like the GitHub Copilot user is a real author, but it seems as though the API to get the Copilot user will just return 404.
$ gh api repos/rubygems/rubygems.org/pulls/5929 | jq .user
{
"login": "Copilot",
"id": 198982749,
"node_id": "BOT_kgDOC9w8XQ",
"avatar_url": "https://avatars.githubusercontent.com/in/1143301?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Copilot",
"html_url": "https://github.com/apps/copilot-swe-agent",
"followers_url": "https://api.github.com/users/Copilot/followers",
"following_url": "https://api.github.com/users/Copilot/following{/other_user}",
"gists_url": "https://api.github.com/users/Copilot/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Copilot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Copilot/subscriptions",
"organizations_url": "https://api.github.com/users/Copilot/orgs",
"repos_url": "https://api.github.com/users/Copilot/repos",
"events_url": "https://api.github.com/users/Copilot/events{/privacy}",
"received_events_url": "https://api.github.com/users/Copilot/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
}
❯ gh api users/Copilot
{
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest",
"status": "404"
}
gh: Not Found (HTTP 404)
I'm not particularly sure what we could do to handle this particular scenario, and we've since disabled the Copilot agent on rubygems.org. I figured the best first step would be to get your reaction and see what happens from there.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read app/jobs/shipit/github_sync_job.rb around lines 55-61, then use the linked rubygems.org pull request and the shown gh api users/Copilot response to understand the failure. Determine how the sync handles an author lookup returning 404, and define completion as preventing this Copilot-authored merge from marking the Shipit Stack inaccessible, with regression coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, ruby
- Domain
- api, backend, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100