17708: when crunch-run encounters an unsupported file type while copying
authorWard Vandewege <ward@curii.com>
Fri, 21 May 2021 01:30:31 +0000 (21:30 -0400)
committerWard Vandewege <ward@curii.com>
Fri, 21 May 2021 01:30:31 +0000 (21:30 -0400)
       the output of a job, do not error out, just print a warning and
       skip the offending file.

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

lib/crunchrun/copier.go

index 1b0f168b88856e8251108f11e928321b5d642c0b..132101028ea4d6d5b6b8a76df5238d7ceb0effb7 100644 (file)
@@ -331,8 +331,8 @@ func (cp *copier) walkHostFS(dest, src string, maxSymlinks int, includeMounts bo
                })
                return nil
        }
-
-       return fmt.Errorf("Unsupported file type (mode %o) in output dir: %q", fi.Mode(), src)
+       cp.logger.Printf("Skipping unsupported file type (mode %o) in output dir: %q", fi.Mode(), src)
+       return nil
 }
 
 // Return the host path that was mounted at the given path in the