You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR
We are running a shipit instance wrapped around the shipit-engine gem v0.38.0. Starting on April 7, 2025, we have seen that commits are intermittently being marked as detached and as a result, not display on Shipit UI as an undeployed commit. I was wondering if the shipit-engine team has seen anything like this as well?
Details
I still haven't been able to figure out why these are being marked as detached. From what I've seen in shipit-engine code, there are a few ways that a commit will be marked as detached:
During GithubSyncJob, if there is a shared parent commit identified, then the children are marked as detached
I've used the Github REST API for commits to query the parent.sha on the detached commits' parents and children and haven't found any commits that share a parent.
If it is a Pull Request, then the head and base sha are marked as detached
The commits being marked as detached are commits merged to the master branch and not a pull request. All of our commits have NULL entries for pull_request_numbermerge_request_id
Our shipit instance wraps around shipit-engine gem v0.38.0
I don't see anything in the latest shipit-engine version v0.39.0 that would fix this: https://github.com/Shopify/shipit-engine/releases/tag/v0.39.0, plus v0.39.0 was released in Jan 2024 whereas we started seeing commits marked as detached in the database in April 2025
Only single commits (not 2+ in a row) are being marked as detached
No obvious pattern in timing for when they are marked as detached
Nothing has changed with our Github merge strategy - we use Squash and Merge
Not seeing any force pushes on the commit or on commits before it or after
@casperisfine Have you come across this before? I'm seeing different commits marked as detached for two different stacks of the same repo and branch, which makes me believe that perhaps there has been a change on the return from Github REST API that conflicts with how shipit-engine processes it.
TL;DR
We are running a shipit instance wrapped around the shipit-engine gem v0.38.0. Starting on April 7, 2025, we have seen that commits are intermittently being marked as detached and as a result, not display on Shipit UI as an undeployed commit. I was wondering if the shipit-engine team has seen anything like this as well?
Details
parent.sha
on the detached commits' parents and children and haven't found any commits that share a parent.pull_request_number
merge_request_id
Any help or insight would be appreciated! I can provide more details too, if needed.
The text was updated successfully, but these errors were encountered: