Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9224

[Dev][Archery] Copy local repo on clone failure

    XMLWordPrintableJSON

Details

    Description

      `archery benchmark diff` runs "git clone --local" to clone source code
      to /tmp. If /tmp and source directory are not in same disk volume, it
      fails with below error messages because "git clone --local" uses hard
      links which only works in same volume.

      Error log:
      fatal: failed to create link '/tmp/arrow-archery-lwm7k6wm/origin_master/arrow/.git/objects/2d/80a4d2da431dbfe3c736b6349eb4a0bcb6ece5': Invalid cross-device link
      subprocess.CalledProcessError: Command '['git', 'clone', '--local', PosixPath('/home/cyb/arrow'), '/tmp/arrow-archery-lwm7k6wm/origin_master/arrow']' returned non-zero exit status 128.

      Attachments

        Issue Links

          Activity

            People

              yibocai Yibo Cai
              yibocai Yibo Cai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m