Skip to content

CI failing with Git checkout failed with exit code: 128 #736

@ericstj

Description

@ericstj

I've seen this happen in various different legs of the CI. Here's one:
https://dev.azure.com/dnceng/public/_build/results?buildId=452699

error: Could not read 8be6ae3a888131720cdebd36f27eb58be0553e27
fatal: internal error in revision walk
##[warning]Git checkout failed on shallow repository, this might because of git fetch with depth '5' doesn't include the checkout commit 'refs/remotes/pull/457/merge'. Please reference documentation (http://go.microsoft.com/fwlink/?LinkId=829603)
##[error]Git checkout failed with exit code: 128

It looks to me like this is due to the way we are merging PRs. If I understand this correctly, it looks like it's complaining that it doesn't have the commit the PR was based from. Should we increase this depth or merge PRs in a different way during CI?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions