Skip to content

Benchmark runners may commit results that contain merge conflicts #323

Open
@mpage

Description

@mpage

Benchmark runners may commit results that contain merge conflicts. We ran into this recently:

It looks like we try to handle this situation:

# Another benchmarking task may have created results for the same
# commit while the above was running. This "magic" incantation means
# that any local results for this commit will override anything we
# just pulled in in that case.
git pull -s recursive -X ours --autostash --rebase

However, the approach that we're using doesn't work. It looks like -X ours doesn't apply to resolving merge conflicts that result from applying stashed changes. I verified this locally by:

  1. Creating a new repo containing a single markdown file.
  2. Cloning the repo into a new directory.
  3. Editing the markdown file in a way that would generate a merge conflict.
  4. Ran git pull -s recursive -X ours --autostash --rebase. The merge conflicts are left for resolution.

I'm not sure if this is a behavior that changed in git recently. I've tested this using git versions 2.39.5 and 2.47.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions