[WIP] Distribute config file from primary location #739
Azure Pipelines / weecology.DeepForest
failed
Aug 11, 2024 in 27m 2s
Build #20240811.3 had test failures
Details
- Failed: 1 (0.68%)
- Passed: 145 (99.32%)
- Other: 0 (0.00%)
- Total: 146
Annotations
Check failure on line 510 in Build log
azure-pipelines / weecology.DeepForest
Build log #L510
1 test(s) failed, 146 test(s) collected.
Check failure on line 714 in Build log
azure-pipelines / weecology.DeepForest
Build log #L714
Bash exited with code '1'.
Check failure on line 1 in tests/test_multiprocessing.py::test_predict_tile_workers_config
azure-pipelines / weecology.DeepForest
tests/test_multiprocessing.py::test_predict_tile_workers_config
tmpdir = local('/tmp/pytest-of-vsts/pytest-0/test_predict_tile_workers_conf0')
def test_predict_tile_workers_config(tmpdir):
# Open config file and change workers to 1, save to tmpdir
config_file = get_data("deepforest_config.yml")
tmp_config_file = os.path.join(tmpdir, "deepforest_config.yml")
> shutil.copyfile(config_file, tmp_config_file)
tests/test_multiprocessing.py:32:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src = '/home/vsts/work/1/s/deepforest/data/deepforest_config.yml'
dst = '/tmp/pytest-of-vsts/pytest-0/test_predict_tile_workers_conf0/deepforest_config.yml'
def copyfile(src, dst, *, follow_symlinks=True):
"""Copy data from src to dst in the most efficient way possible.
If follow_symlinks is not set and src is a symbolic link, a new
symlink will be created instead of copying the file it points to.
"""
sys.audit("shutil.copyfile", src, dst)
if _samefile(src, dst):
raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
file_size = 0
for i, fn in enumerate([src, dst]):
try:
st = _stat(fn)
except OSError:
# File most likely does not exist
pass
else:
# XXX What about other special files? (sockets, devices...)
if stat.S_ISFIFO(st.st_mode):
fn = fn.path if isinstance(fn, os.DirEntry) else fn
raise SpecialFileError("`%s` is a named pipe" % fn)
if _WINDOWS and i == 0:
file_size = st.st_size
if not follow_symlinks and _islink(src):
os.symlink(os.readlink(src), dst)
else:
> with open(src, 'rb') as fsrc:
E FileNotFoundError: [Errno 2] No such file or directory: '/home/vsts/work/1/s/deepforest/data/deepforest_config.yml'
/usr/share/miniconda/lib/python3.12/shutil.py:260: FileNotFoundError
Raw output
/usr/share/miniconda/lib/python3.12/shutil.py:260: FileNotFoundError: [Errno 2] No such file or directory: '/home/vsts/work/1/s/deepforest/data/deepforest_config.yml'
Loading