pipelines: Sometimes 'git merge-base' returns nothing

#169
Opened by tazjin at 2022-01-17T14·28+00

The script that determines the drvmap to diff against runs this code:

git fetch -v origin canon
local FIRST=$(git merge-base --fork-point HEAD origin/canon)

Sometimes FIRST will end up empty for unclear reasons. No stderr seems to get printed from git merge-base. Running the command with the exact hashes locally results in the correct output.

Example run: https://buildkite.com/tvl/depot/builds/11692#951b7616-d444-44de-8e85-c0c962370988

This causes a problem where the full build is run because the drvmap can not be fetched.

  1. Could potentially be fixed by the FETCH_HEAD change in cl/5005

    tazjin at 2022-01-19T15·09+00

  2. Fixed in cl/5032

    tazjin at 2022-01-22T17·21+00

  3. tazjin closed this issue at 2022-01-22T17·21+00