diff --git a/bench_runner/templates/_benchmark.src.yml b/bench_runner/templates/_benchmark.src.yml index 8912480..ad5fffa 100644 --- a/bench_runner/templates/_benchmark.src.yml +++ b/bench_runner/templates/_benchmark.src.yml @@ -130,9 +130,12 @@ jobs: run: | # 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 + # that any local results for this commit will override anything that + # happened in the meantime. + # https://stackoverflow.com/questions/43770520/how-to-specify-default-merge-strategy-on-git-stash-pop + git stash + git pull -s recursive --rebase + git cherry-pick -n -m1 -Xtheirs stash - name: Add data to repo if: ${{ steps.should_run.outputs.should_run != 'false' }} uses: EndBug/add-and-commit@v9 @@ -227,9 +230,12 @@ jobs: run: | # 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 + # that any local results for this commit will override anything that + # happened in the meantime. + # https://stackoverflow.com/questions/43770520/how-to-specify-default-merge-strategy-on-git-stash-pop + git stash + git pull -s recursive --rebase + git cherry-pick -n -m1 -Xtheirs stash - name: Adding data to repo if: ${{ steps.should_run.outputs.should_run != 'false' && !inputs.perf }} uses: EndBug/add-and-commit@v9 @@ -321,9 +327,12 @@ jobs: run: | # 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 + # that any local results for this commit will override anything that + # happened in the meantime. + # https://stackoverflow.com/questions/43770520/how-to-specify-default-merge-strategy-on-git-stash-pop + git stash + git pull -s recursive --rebase + git cherry-pick -n -m1 -Xtheirs stash - name: Add data to repo if: ${{ steps.should_run.outputs.should_run != 'false' }} uses: EndBug/add-and-commit@v9